/* Shared styles for the document pages (privacy, terms, legal notice, support).
   Same tokens and header/footer as the home page; a single readable column for text. */
:root {
  --bg: #f5f8fa;
  --surface: #ffffff;
  --surface-2: #edf2f6;
  --ink: #0a1b2a;
  --muted: #526577;
  --line: #dde5eb;
  --blue: #1e6fd9;
  --green: #2e9b4f;
  --night: #071826;
  --night-ink: #eaf2f7;
  --night-muted: #93abbb;
  --night-line: rgb(255 255 255 / .1);
  --font-display: "Inter Tight", "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
  --font-body: "Inter", "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.7 var(--font-body); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* header */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: auto; }
.wordmark { font: 700 1.5rem/1 var(--font-body); letter-spacing: -.02em; color: var(--blue); }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .9375rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.btn { display: inline-flex; align-items: center; height: 44px; padding-inline: 20px; border-radius: 999px; background: var(--ink); color: var(--surface); font-weight: 600; font-size: .9375rem; text-decoration: none; margin-left: 12px; }
@media (max-width: 900px) { .nav-links { display: none; } .btn { margin-left: auto; } }

/* document */
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); padding-block: clamp(40px, 7vw, 88px); align-items: start; }
.doc-head { grid-column: 1 / -1; display: grid; gap: 14px; max-width: 760px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 .8125rem/1.2 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--blue), var(--green)); }
h1 { margin: 0; font: 600 clamp(2.25rem, 1.4rem + 3vw, 3.5rem)/1.05 var(--font-display); letter-spacing: -.04em; text-wrap: balance; }
.meta { color: var(--muted); font-size: .9375rem; }
.toc { position: sticky; top: 96px; display: grid; gap: 2px; font-size: .875rem; }
.toc b { font: 500 .6875rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc a { color: var(--muted); text-decoration: none; padding: 6px 0; border-left: 2px solid var(--line); padding-left: 12px; }
.toc a:hover { color: var(--ink); border-left-color: var(--blue); }
.prose { max-width: 70ch; min-width: 0; }
.prose h2 { font: 600 1.5rem/1.2 var(--font-display); letter-spacing: -.02em; margin: 48px 0 12px; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font: 600 1.125rem/1.3 var(--font-display); letter-spacing: -.01em; margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin-bottom: 6px; }
.prose strong { font-weight: 600; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; margin-bottom: 36px; }
.summary ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.summary li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; margin: 0; }
.summary li::before { content: ""; width: 16px; height: 16px; margin-top: 5px; border-radius: 50%; background: color-mix(in srgb, var(--green) 18%, transparent); box-shadow: inset 0 0 0 5px var(--green); }
.table-wrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .875rem; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
th { font-weight: 600; background: var(--surface-2); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0 0 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.card small { font: 500 .6875rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.card b { font-size: 1.0625rem; font-weight: 600; overflow-wrap: anywhere; }
.card span { color: var(--muted); font-size: .9375rem; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 12px; margin-bottom: 12px; }
.steps li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font: 600 .8125rem/1 var(--font-body); color: var(--ink); margin-top: 1px; }
@media (max-width: 900px) { .doc { grid-template-columns: minmax(0, 1fr); } .toc { display: none; } .card-grid { grid-template-columns: minmax(0, 1fr); } }

/* footer */
.site-foot { background: var(--night); color: var(--night-ink); margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 56px; }
.foot-about { display: grid; gap: 14px; align-content: start; max-width: 34ch; }
.foot-about .brand img { width: 26px; }
.foot-about .wordmark { color: var(--night-ink); font-size: 1.3125rem; }
.foot-about p { margin: 0; color: var(--night-muted); font-size: .9375rem; }
.foot-col h2 { font: 500 .75rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--night-muted); margin: 0 0 18px; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.foot-col a { color: var(--night-ink); text-decoration: none; font-size: .9375rem; opacity: .86; }
.foot-col a:hover { opacity: 1; color: #8cc4ff; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 24px; border-top: 1px solid var(--night-line); color: var(--night-muted); font-size: .8125rem; }
.foot-bottom a { color: var(--night-muted); text-decoration: none; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-about { grid-column: 1 / -1; } }
.inline-link { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
