/* Privacy and Terms pages. Same tokens, fonts, header and footer as the homepage (index.html). */
@font-face { font-family: "Satoshi"; src: url("/fonts/Satoshi-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/fonts/Satoshi-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/fonts/Satoshi-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
:root {
  color-scheme: light;
  --bg: #f6f6f2; --surface: #ffffff; --subtle: #ecece6;
  --ink: #0b0b0c; --ink-2: #55565b; --ink-3: #9a9ba1;
  --line: #0b0b0c; --hair: #e8e8eb; --on-ink: #ffffff;
  --olive: #3e4a2b; --olive-soft: #e6e9dc;
  --font-title: "Satoshi", "General Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-text: "Quicksand", "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow-card: 0 1px 2px rgba(11,11,12,.04), 0 8px 24px rgba(11,11,12,.06);
  --shadow-lift: 0 2px 6px rgba(11,11,12,.06), 0 16px 36px rgba(11,11,12,.10);
  --spring: cubic-bezier(.3,1.45,.5,1); --settle: cubic-bezier(.22,1,.36,1);
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 16px/1.65 var(--font-text); -webkit-font-smoothing: antialiased; }
::selection { background: var(--olive-soft); }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 500; letter-spacing: -.03em; text-wrap: balance; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1248px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.eyebrow { font: 700 12px/16px var(--font-title); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); font: 500 13px/1 var(--font-title); text-decoration: none; white-space: nowrap; background: var(--ink); color: var(--on-ink); transition: transform .22s var(--spring), box-shadow .22s var(--settle); }
.btn:hover { transform: translateY(-1px) scale(1.03); box-shadow: var(--shadow-lift); }

/* Header */
.header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(246,246,242,.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--hair); }
.header .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; flex: 0 0 auto; }
.brand img { height: 26px; width: auto; display: block; }
.nav { display: flex; gap: 2px; flex: 1 1 auto; min-width: 0; }
.nav a { position: relative; padding: 8px 12px; font: 500 14px/20px var(--font-title); color: var(--ink-2); text-decoration: none; border-radius: 999px; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--settle); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

/* Document */
.doc { padding-block: 88px 120px; }
.doc__head { display: grid; gap: 16px; max-width: 760px; padding-bottom: 40px; border-bottom: 1px solid var(--hair); }
.doc__head h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.04; letter-spacing: -.035em; }
.doc__meta { font: 500 14px/20px var(--font-title); color: var(--ink-2); }
.doc__lead { font-size: 19px; line-height: 30px; color: var(--ink-2); }
.doc__grid { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: 64px; margin-top: 48px; align-items: start; }
.toc { position: sticky; top: 100px; display: grid; gap: 2px; font: 500 14px/20px var(--font-title); }
.toc a { padding: 6px 12px; border-radius: 999px; color: var(--ink-2); text-decoration: none; }
.toc a:hover { background: var(--subtle); color: var(--ink); }
.doc section { padding-block: 32px; border-top: 1px solid var(--hair); scroll-margin-top: 88px; }
.doc section:first-child { border-top: 0; padding-top: 0; }
.doc h2 { font-size: clamp(24px, 3vw, 30px); line-height: 1.15; letter-spacing: -.02em; margin-bottom: 16px; }
.doc h3 { font-size: 18px; line-height: 24px; letter-spacing: -.01em; margin: 24px 0 8px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p, .doc ul + p { margin-top: 12px; }
.doc strong { color: var(--ink); font-weight: 700; }
.doc ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.doc a { text-decoration-color: var(--ink-3); text-underline-offset: 3px; }
.doc a:hover { text-decoration-color: var(--ink); }
.doc code { font: 500 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); background: var(--subtle); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.callout { margin-top: 20px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-card); color: var(--ink); }
.callout p { color: var(--ink); }
.table { margin-top: 16px; border: 1px solid var(--hair); border-radius: 20px; background: var(--surface); overflow: hidden; }
.table table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 21px; }
.table th, .table td { text-align: left; vertical-align: top; padding: 14px 16px; border-top: 1px solid var(--hair); color: var(--ink-2); }
.table thead th { border-top: 0; background: var(--subtle); color: var(--ink); font: 700 12px/16px var(--font-title); letter-spacing: .06em; text-transform: uppercase; }
.table td:first-child { color: var(--ink); font-weight: 700; }
.table code { font-size: 12px; display: inline-block; margin: 2px 0; white-space: nowrap; }
@media (min-width: 721px) { .table td:nth-child(2) { white-space: nowrap; } .table th, .table td { padding: 14px 14px; } }

/* Footer */
.footer { border-top: 1px solid var(--hair); padding-block: 48px 64px; }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer img { height: 22px; width: auto; display: block; }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; font: 500 14px/20px var(--font-title); }
.footer nav a { text-decoration: none; color: var(--ink-2); }
.footer nav a:hover, .footer nav a[aria-current="page"] { color: var(--ink); }
.footer small { color: var(--ink-2); font-size: 13px; }

@media (max-width: 1000px) {
  .doc__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .toc { position: static; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); padding: 12px; border: 1px solid var(--hair); border-radius: 20px; background: var(--surface); }
}
@media (max-width: 720px) {
  .header .wrap { gap: 12px; }
  .nav { display: none; }
  .header .btn { margin-left: auto; }
  .doc { padding-block: 56px 80px; }
  .table { border: 0; background: transparent; border-radius: 0; }
  .table thead { display: none; }
  .table table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { border: 1px solid var(--hair); border-radius: 16px; background: var(--surface); margin-bottom: 12px; overflow: hidden; }
  .table td { border-top: 1px solid var(--hair); }
  .table td:first-child { border-top: 0; background: var(--subtle); }
  .table td[data-label]::before { content: attr(data-label); display: block; font: 700 11px/16px var(--font-title); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
