/* ─────────────────────────────────────────────────────────────────────────
   Shared shell for the secondary pages (privacy, 404).

   The landing page is generated by tools/bake.mjs and carries its own inlined
   CSS. These pages are hand-written, so they share this stylesheet instead —
   same tokens, same type, same square-edged black-and-blue language, so the
   site reads as one thing.

   Self-hosted Archivo, declared at the same three discrete weights the design
   system uses. Do not add a 700 face: the design asks for font-weight 700 and
   relies on it resolving to the 800 cut.
   ───────────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/archivo-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/archivo-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/archivo-latin.woff2) format('woff2');
}

:root {
  --accent: #1D5FFA;
  --accent-600: #1A4FD0;
  --link: #8fb2ff;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --ink: #ffffff;
  --ink-muted: rgba(255, 255, 255, 0.55);
  --ink-faint: rgba(255, 255, 255, 0.4);
}

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

html, body {
  margin: 0;
  padding: 0;
  background: #000000;
  color: var(--ink);
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body { overflow-x: clip; }

a { color: var(--link); text-decoration: none; }
a:hover { color: #ffffff; }
::selection { background: rgba(29, 95, 250, 0.45); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img { display: block; max-width: 100%; }

/* — nav — */
.nav {
  position: sticky; top: 0; z-index: 80;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 clamp(14px, 3vw, 28px);
  height: 58px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 9px; color: #ffffff; }
.brand img { height: 26px; width: 26px; object-fit: contain; }
.brand span { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; color: #ffffff; }
.nav-link {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.82);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 8px 13px; white-space: nowrap;
  transition: background 140ms ease, color 140ms ease;
}
.nav-link:hover { background: rgba(255, 255, 255, 0.12); color: #ffffff; }

/* — page frame, mirroring the landing page's bordered column — */
.frame {
  max-width: 1280px; margin: 0 auto;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: #030304;
  min-height: calc((100vh / var(--cw-zoom)) - 58px);
}
.wrap { max-width: 760px; padding: clamp(40px, 6vw, 76px) clamp(20px, 3.4vw, 44px) clamp(60px, 8vw, 100px); }

/* — type — */
.badge {
  display: inline-block; background: var(--accent); color: #ffffff;
  font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 6px 10px; margin-bottom: 20px;
}
h1 {
  font-size: clamp(30px, 4.2vw, 52px); font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.08; margin: 0 0 14px; color: #ffffff;
}
h2 {
  font-size: 15px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: #ffffff; margin: 44px 0 14px; padding-top: 26px;
  border-top: 1px solid var(--line);
}
h2:first-of-type { margin-top: 34px; }
p { font-size: 14.5px; line-height: 1.7; color: var(--ink-muted); margin: 0 0 16px; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(29, 95, 250, 0.18); padding: 1px 5px; font-size: 12.5px;
}
.meta {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 34px;
}

/* — callout — */
.callout {
  border: 1px solid rgba(29, 95, 250, 0.5);
  background: rgba(29, 95, 250, 0.07);
  padding: 18px 20px; margin-bottom: 8px;
  font-size: 14.5px; line-height: 1.7; color: rgba(255, 255, 255, 0.78);
}
.callout strong { color: #ffffff; font-weight: 700; }

/* — table — */
table { width: 100%; border-collapse: collapse; margin: 4px 0 24px; }
th {
  text-align: left; font-size: 9.5px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-faint);
  padding: 10px 12px; border-bottom: 1px solid var(--line-strong);
}
td {
  padding: 14px 12px; border-bottom: 1px solid var(--line);
  font-size: 13.5px; line-height: 1.6; color: var(--ink-muted); vertical-align: top;
}
td:first-child { color: #ffffff; font-weight: 700; }

/* — buttons — */
.actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: clamp(26px, 3.4vw, 38px); }
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 12px 15px; white-space: nowrap;
  transition: background 140ms ease, opacity 140ms ease;
}
.btn-primary { background: var(--accent); color: #ffffff; border: 1px solid var(--accent); }
.btn-primary:hover { background: var(--accent-600); color: #ffffff; }
.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.55); color: #ffffff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); color: #ffffff; }

/* — footer — */
.foot {
  border-top: 1px solid var(--line);
  padding: 22px clamp(20px, 3.4vw, 44px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  font-size: 11.5px; color: var(--ink-faint);
}
.foot a { color: var(--ink-faint); text-decoration: underline; text-underline-offset: 3px; }
.foot a:hover { color: #ffffff; }

/* — wide-screen scaling, matching the landing page (see design/overrides.css) — */
/* The reference width the canvas is scaled against. The design itself is a
   1280px canvas; scaling against a slightly wider reference leaves the frame
   sitting in a column with air either side, at ~89% of the viewport, rather
   than pressed edge to edge. THIS IS THE DIAL: lower it to make the site
   bigger, raise it to make it smaller. */
:root { --cw-canvas: 1920px; }

:root { --cw-zoom: 1; }
@media (min-width: 1500px) { :root { --cw-zoom: 1.05; } }
@media (min-width: 1750px) { :root { --cw-zoom: 1.20; } }
@media (min-width: 1900px) { :root { --cw-zoom: 1.32; } }
@media (min-width: 2300px) { :root { --cw-zoom: 1.60; } }
@media (min-width: 2800px) { :root { --cw-zoom: 2.00; } }

/* Preferred: scale continuously so the canvas maps onto the viewport at every
   width, with no banding between steps. Capped at 2 so an ultrawide gets a
   large canvas rather than an absurd one, and floored at 1 so narrow viewports
   are never scaled DOWN. @supports gates it on the engine actually computing
   length / length; anything that cannot falls back to the stepped values. */
@supports (width: calc(100vw / 1440px * 1px)) {
  :root { --cw-zoom: clamp(1, calc(100vw / var(--cw-canvas)), 2); }
}

:root { zoom: var(--cw-zoom); }

@media (prefers-reduced-motion: reduce) { * { animation-duration: 0.001ms !important; } }
