/* Legal pages (/privacy/, /terms/). Tokens match the homepage (Mission R Figma theme handoff). */
:root {
  --canvas: #fbfbfc;
  --surface: #ffffff;
  --subtle: #f6f7f9;
  --text: #08090b;
  --text-2: #535d6d;
  --border: #e1e4e8;
  --border-subtle: #eef0f3;
  --accent: #4859f2;
  --accent-subtle: #eef0ff;
  --action: #08090b;
  --action-text: #ffffff;
  --action-hover: #333842;
  --focus: #4859f2;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #08090b;
    --surface: #111318;
    --subtle: #20242d;
    --text: #f6f7f9;
    --text-2: #c8cdd3;
    --border: #333842;
    --border-subtle: #20242d;
    --accent: #8b98ff;
    --accent-subtle: #232b50;
    --action: #eef0f3;
    --action-text: #08090b;
    --action-hover: #c8cdd3;
    --focus: #a5b0ff;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1080px; margin: 0 auto; padding-inline: max(20px, 5vw); }

header.top { padding-block: 24px; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--text); }
.brand img, .brand svg { display: block; height: 28px; width: auto; }
header.top nav { display: flex; gap: 20px; font-size: 15px; }
header.top nav a { color: var(--text-2); text-decoration: none; }
header.top nav a:hover, header.top nav a[aria-current] { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

.doc { padding-block: clamp(32px, 6vw, 72px) clamp(48px, 8vw, 96px); }
.doc article { max-width: 720px; }
.doc h1 { font-size: clamp(34px, 5.6vw, 52px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; margin: 0 0 12px; text-wrap: balance; }
.doc .meta { color: var(--text-2); font-size: 15px; margin: 0 0 32px; }
.doc .summary { background: var(--accent-subtle); border: 1px solid var(--border-subtle); border-radius: 16px; padding: 20px 24px; margin: 0 0 40px; }
.doc .summary p { margin: 0; }
.doc .summary p + p { margin-top: 10px; }
.doc h2 { font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 650; margin: 44px 0 12px; padding-top: 28px; border-top: 1px solid var(--border); scroll-margin-top: 16px; }
.doc h2:first-of-type { border-top: 0; padding-top: 0; }
.doc h3 { font-size: 18px; letter-spacing: -0.01em; font-weight: 600; margin: 28px 0 8px; }
.doc p, .doc ul, .doc ol { margin: 0 0 16px; }
.doc ul, .doc ol { padding-left: 1.4em; }
.doc li { margin-bottom: 6px; }
.doc li::marker { color: var(--text-2); }
.doc strong { font-weight: 600; }
.doc code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; background: var(--subtle); padding: 1px 6px; border-radius: 6px; }

.toc { margin: 0 0 40px; padding: 0; list-style: none; columns: 2 240px; column-gap: 32px; font-size: 15px; }
.toc li { margin: 0 0 6px; break-inside: avoid; }
.toc a { color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--text); text-decoration: underline; }

.table-wrap { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--border); border-radius: 12px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--border-subtle); }
.doc th { background: var(--subtle); font-weight: 600; }
.doc tr:last-child td { border-bottom: 0; }

footer { padding-block: 40px 56px; color: var(--text-2); font-size: 14px; border-top: 1px solid var(--border); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a, footer button.linklike { color: inherit; text-decoration: none; }
footer a:hover, footer button.linklike:hover { text-decoration: underline; text-underline-offset: 3px; }
footer button.linklike { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { header.top nav, footer .links, .toc { display: none; } body { background: #fff; color: #000; } }
