/* Document reading surface (legal, support, compliance, how-it-works) —
   consumes site-tokens.css (load it first). Light-first with automatic
   graphite dark, same theme rule as the blog. One stylesheet for every
   document page; page-specific rules belong here, not inline. */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.doc { max-width: 760px; margin: 0 auto; padding: 48px 20px 40px; }

.doc h1 { font-size: var(--fs-hero); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; margin-bottom: 10px; text-wrap: balance; }
.doc-meta { color: var(--muted); font-size: var(--fs-secondary); margin-bottom: 28px; }
.doc h2 { font-size: var(--fs-title); font-weight: 700; letter-spacing: -0.01em; margin: 40px 0 10px; scroll-margin-top: 24px; text-wrap: balance; }
.doc h3 { font-size: var(--fs-heading); font-weight: 650; margin: 24px 0 8px; }
.doc p { margin-bottom: 12px; }
.doc a { color: var(--blue); }
.doc a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 3px; }
.doc strong { color: var(--strong); }
.doc ul, .doc ol { margin: 0 0 14px 22px; }
.doc li { margin-bottom: 8px; }
.doc hr { border: none; border-top: 1px solid var(--line); margin: 28px 0; }

.note-card { background: var(--panel-top); box-shadow: var(--card-shadow); border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: var(--r-card); padding: 16px 18px; margin: 18px 0; }
.note-card > :last-child { margin-bottom: 0; }
.note-card strong { display: block; margin-bottom: 6px; }
.note-card.warn { border-left-color: var(--amber); }

.doc table { width: 100%; border-collapse: collapse; font-size: var(--fs-secondary); margin: 14px 0 20px; }
.doc th { text-align: left; color: var(--muted); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: 0.08em; padding: 0 12px 8px 0; font-weight: 700; }
.doc td { border-top: 1px solid var(--line); padding: 10px 12px 10px 0; vertical-align: top; }
.table-scroll { overflow-x: auto; }

.doc .toc-list { background: var(--panel-top); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--card-shadow); padding: 14px 18px 14px 34px; margin: 18px 0 26px; font-size: var(--fs-secondary); }
.doc .toc-list li { margin-bottom: 4px; }
.doc .toc-list a { text-decoration: none; }
.doc .toc-list a:hover { text-decoration: underline; }

@media (max-width: 700px) {
  .doc { padding: 26px 16px 32px; }
  .doc h1 { margin-bottom: 8px; }
  .doc h2 { margin: 32px 0 8px; }
}
