/* Shared chrome for the standalone pages — privacy, terms, cookies, links.
   These are plain HTML rather than React routes (they must render with no JS,
   and a policy page has no business shipping a 400KB bundle), but they are the
   same COMPANY, and the footer links to them from every page of the site.

   Before this file they each carried their own inline <style> in Syne/Outfit
   off Google Fonts, so /privacy read as a different business than the page it
   was linked from. Tokens below are lifted from src/site.css — the real ones,
   not approximations.

   Fonts are self-hosted from /fonts/. The React app fingerprints its copies
   (geist-latin-<hash>.woff2) so a static page cannot reference them, hence the
   second copy under public/. It also means the site now contacts no third
   party at all — which is what the Cookie Policy claims, and what
   test-compliance.mjs enforces. */

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/geist-latin.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter-latin.woff2') format('woff2-variations');
}

:root {
  --bg: #070b0a;
  --ink: #06100e;
  --teal: #00c9a7;
  --cyan: #22d3ee;
  --green: #059669;
  --fg: #f2fbf8;
  --fg-2: rgba(214, 240, 233, 0.72);
  --fg-3: rgba(190, 225, 216, 0.5);
  --hair: rgba(122, 255, 226, 0.1);
  --hair-lift: rgba(122, 255, 226, 0.18);
  --shell: rgba(122, 255, 226, 0.035);
  --display: 'Geist', 'Segoe UI', Helvetica, Arial, sans-serif;
  --body: 'Inter', 'Segoe UI', Helvetica, Arial, sans-serif;
  --spring: cubic-bezier(0.32, 0.72, 0, 1);
  --gut: clamp(20px, 5vw, 64px);
  color-scheme: dark;
}

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

body {
  background: var(--bg);
  color: var(--fg-2);
  font-family: var(--body);
  font-size: 15.5px;
  line-height: 1.72;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* The same mesh wash the home page opens with, so arriving here from the
   footer does not feel like leaving the site. Fixed and behind everything. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 15% 0%, rgba(0, 201, 167, 0.09), transparent 70%),
    radial-gradient(50% 40% at 92% 8%, rgba(34, 211, 238, 0.06), transparent 72%);
}

/* ── Nav ─────────────────────────────────────────────────────────────────
   The floating pill from the main site, cut down: mark, wordmark, one way
   back. No section links — there are no sections here to link to. */
.nav {
  max-width: 1240px;
  margin: 22px auto 0;
  padding: 0 var(--gut);
}
.nav-in {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px 11px 18px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: rgba(6, 18, 16, 0.62);
  backdrop-filter: blur(18px);
}
.mark {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-decoration: none;
  white-space: nowrap;
}
.mark i {
  width: 24px;
  height: 24px;
  flex: none;
  background: url('/logo-nav.svg') center / contain no-repeat;
}
.nav .back {
  margin-left: auto;
  font-size: 13.5px;
  color: var(--fg-3);
  text-decoration: none;
  padding: 7px 15px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  transition: color 0.5s var(--spring), border-color 0.5s var(--spring);
}
.nav .back:hover { color: var(--fg); border-color: var(--hair-lift); }

/* ── Document ────────────────────────────────────────────────────────── */
main {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(52px, 8vw, 96px) var(--gut) 96px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(160, 240, 220, 0.7);
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 5px 13px;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
}

h1 {
  font-family: var(--display);
  font-size: clamp(34px, 5.4vw, 54px);
  font-weight: 600;
  letter-spacing: -0.038em;
  line-height: 1.02;
  color: var(--fg);
  text-wrap: balance;
  margin-bottom: 14px;
}

.updated { font-size: 13.5px; color: var(--fg-3); margin-bottom: 56px; }

h2 {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--fg);
  margin: 46px 0 12px;
  scroll-margin-top: 90px;
}

p { margin-bottom: 14px; }
strong { color: var(--fg); font-weight: 600; }

ul { padding-left: 20px; margin-bottom: 14px; }
ul li { margin-bottom: 7px; }
ul li::marker { color: rgba(0, 201, 167, 0.55); }

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  color: var(--fg);
  background: var(--shell);
  border: 1px solid var(--hair);
  border-radius: 5px;
  padding: 1px 5px;
}

/* Tables carry the cookie disclosure and are the widest thing on these pages,
   so they scroll inside their own box rather than pushing the body sideways. */
.tablewrap { overflow-x: auto; margin: 18px 0 22px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
th, td {
  text-align: left;
  padding: 11px 14px;
  border: 1px solid var(--hair);
  vertical-align: top;
}
th {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
  background: var(--shell);
}

.divider { border: none; border-top: 1px solid var(--hair); margin: 52px 0 22px; }
.fineprint { font-size: 13.5px; color: var(--fg-3); }

footer {
  border-top: 1px solid var(--hair);
  padding: 26px var(--gut) 40px;
  text-align: center;
  font-size: 13px;
  color: var(--fg-3);
}
footer a { color: var(--fg-3); }
footer a:hover { color: var(--teal); text-decoration: none; }
.footlinks { display: flex; gap: 18px; justify-content: center; margin-top: 9px; flex-wrap: wrap; }

:where(a, .back):focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
