/* Focused Scopes — legal documents (privacy, terms, refund, delete-account).
   New design system (2026-07-21): builds on homepage.css shared components
   (nav, footer, scrollbar); tokens only. Legal COPY is untouched — this file
   restyles the chrome and reading surface only.

   Typography: like the blog, legal reading copy is upright; headings keep
   the brand italic. */

main { max-width: 840px; margin: 0 auto; padding: calc(var(--space-10) + var(--space-6)) var(--gutter) var(--space-9);
  font-style: normal; font-size: 15.5px; color: var(--text-secondary); line-height: 1.75; }

.doc-badge { display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-dim); border: 1px solid var(--glass-border); border-radius: var(--radius-pill);
  padding: 6px 15px; font-size: 11px; color: var(--accent-light); font-weight: var(--weight-extrabold);
  letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; box-shadow: var(--ring-subtle); }

main h1 { font-style: italic; font-weight: var(--weight-black); font-size: var(--step-4);
  letter-spacing: var(--tracking-display); line-height: var(--leading-heading);
  margin: var(--space-4) 0 var(--space-2); color: var(--text-primary); }
.effective { color: var(--text-muted); font-size: 13.5px; margin-bottom: var(--space-6); }
.effective strong { color: var(--text-secondary); }
.lead { color: var(--text-secondary); font-size: var(--step-0); margin-bottom: var(--space-6); }
.lead strong { color: var(--text-primary); }

main section { margin-bottom: var(--space-6); }
main h2 { font-style: italic; font-weight: var(--weight-extrabold); font-size: var(--step-1);
  color: var(--accent-light); margin-bottom: var(--space-3); letter-spacing: -.01em; }
main h3 { font-style: italic; font-weight: var(--weight-bold); font-size: var(--step-0);
  color: var(--text-primary); margin: var(--space-4) 0 var(--space-2); }
main p { margin-bottom: var(--space-3); }
main ul, main ol { margin: 0 0 var(--space-3) 22px; }
main li { margin-bottom: 8px; }
main li strong, main p strong { color: var(--accent-light); font-weight: var(--weight-semibold); }
main a { color: var(--accent-light); }
main a:hover { color: var(--accent); }

.callout { background: var(--bg-card); border-left: 3px solid var(--accent);
  border-radius: var(--radius); padding: var(--space-4) var(--space-5); margin: var(--space-4) 0;
  box-shadow: var(--elev-1); }
.callout p { margin-bottom: 0; }
.callout.warn { border-left-color: var(--amber); }

/* Contents card (terms) */
.toc { background: var(--bg-card); border-radius: var(--radius-lg); padding: var(--space-5);
  box-shadow: var(--elev-1); margin-bottom: var(--space-6); }
.toc h2 { font-size: var(--step-0); color: var(--text-primary); margin-bottom: var(--space-3); }
.toc ol { margin: 0 0 0 20px; columns: 2; column-gap: var(--space-6); }
.toc li { margin-bottom: 6px; break-inside: avoid; font-size: 13.5px; }
.toc a { color: var(--text-secondary); }
.toc a:hover { color: var(--accent-light); }

/* Data tables (privacy) */
.table-wrap { overflow-x: auto; margin: var(--space-4) 0; border-radius: var(--radius-lg);
  box-shadow: var(--elev-1); background: var(--bg-card); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table-wrap th { background: var(--bg-elevated); color: var(--text-primary); text-align: left;
  font-weight: var(--weight-extrabold); padding: 11px 15px; white-space: nowrap; }
.table-wrap td { padding: 10px 15px; border-top: 1px solid var(--border-subtle);
  color: var(--text-secondary); }
.table-wrap td:first-child { color: var(--text-primary); font-weight: var(--weight-semibold); }

@media (max-width: 620px) {
  .toc ol { columns: 1; }
  main { padding-top: var(--space-10); }
}
