/* exscor.com document pages (biaya, layanan, kebijakan) on tokens.css + ui.css + home.css. */
.legal {
  position: relative; max-width: 900px; margin: 24px auto 96px; padding: clamp(28px, 5vw, 64px);
  background: linear-gradient(180deg, rgba(23,30,44,.78), rgba(13,17,23,.9));
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow);
  backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur));
}
.legal::before { content: ""; position: absolute; left: 10%; right: 10%; top: -1px; height: 1px; background: var(--highlight); }
.legal h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; margin: 14px 0 22px; }
.legal h2 { font-size: 1.45rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.35; margin: 48px 0 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.legal h3 { font-size: 1.08rem; font-weight: 500; color: var(--accent); margin: 26px 0 8px; }
.legal p, .legal li { color: var(--text-2); font-size: 1rem; line-height: 1.7; }
.legal strong { color: var(--text); font-weight: 600; }
.legal .lead { font-size: 1.2rem; color: var(--text); max-width: none; }
.legal a { color: var(--accent); text-decoration: none; }
.legal a:hover { text-decoration: underline; }
.legal-list { padding-left: 22px; }
.legal-list li { padding-left: 6px; margin-bottom: 14px; }
.legal-list li::marker { color: var(--accent); font-weight: 600; }

.legal .notice { background: var(--glass); border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: var(--r-md); padding: 20px 24px; margin-top: 28px; }
.legal .notice p { margin: 8px 0 0; }
.legal .pricing-status { border-left-color: var(--warn); }
.legal .pricing-status strong { color: #FFD28A; }

/* rate tables */
.rate-table { margin: 24px 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow-x: auto; background: rgba(255,255,255,.025); }
.rate-table table { width: 100%; border-collapse: collapse; font-size: .85rem; line-height: 1.5; }
.rate-table caption { text-align: left; padding: 14px 16px; color: var(--text); font-weight: 600; background: rgba(0,178,255,.06); border-bottom: 1px solid var(--line); }
.rate-table th, .rate-table td { padding: 13px 12px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.rate-table thead th { color: var(--accent); font-weight: 600; border-top: 0; font-size: .78rem; letter-spacing: .02em; }
.rate-table tbody th { color: var(--text); font-weight: 600; min-width: 120px; }
.rate-table tbody tr { transition: background var(--t-fast); }
.rate-table tbody tr:hover { background: rgba(0,178,255,.05); }
.rate-table td { white-space: nowrap; color: var(--text-2); font-variant-numeric: tabular-nums; }
.rate-table small { display: block; color: var(--text-3); font-size: .72rem; font-weight: 400; margin-top: 4px; }

/* buttons used inside documents (old class names) */
.legal .actions { justify-content: flex-start; margin-top: 36px; gap: 18px; }
.legal .button {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: var(--r-sm);
  font-weight: 600; font-size: .92rem; background: var(--accent); color: #031019; text-decoration: none;
  transition: box-shadow var(--t-fast), transform var(--t-fast) var(--ease);
}
.legal .button:hover { box-shadow: var(--glow); transform: translateY(-1px); text-decoration: none; }
.legal .text-link { font-weight: 600; font-size: .92rem; }
.nav .links a[aria-current="page"] { color: var(--text); }

@media (max-width: 680px) {
  .legal { margin: 12px var(--gutter) 64px; padding: 24px 18px; border-radius: var(--r-md); }
  .rate-table { overflow: hidden; }
  .rate-table table, .rate-table tbody, .rate-table tr, .rate-table th, .rate-table td { display: block; width: 100%; }
  .rate-table thead { display: none; }
  .rate-table tbody th { font-size: 1rem; background: rgba(0,178,255,.06); padding: 14px 16px; }
  .rate-table td { display: flex; justify-content: space-between; gap: 16px; white-space: normal; border-top: 0; padding: 8px 16px; }
  .rate-table td::before { content: attr(data-label); color: var(--text-3); max-width: 55%; }
  .rate-table tr { padding-bottom: 10px; }
  .rate-table caption { display: block; }
}
@media print {
  .aurora, .top, footer { display: none; }
  body { background: #fff; color: #000; }
  .legal { background: none; box-shadow: none; border: 0; backdrop-filter: none; }
  .legal p, .legal li, .rate-table td { color: #222; }
}
