/* Shared styles for secondary pages (privacy notice, 404). Tokens mirror index.html. */
:root {
  --ink: #15142a;
  --navy: #0e0d22;
  --navy-2: #1a1936;
  --paper: #f6f4ee;
  --paper-2: #ecebe4;
  --muted: #66657a;
  --line: rgba(21,20,42,.12);
  --purple: #7955d9;
  --purple-ink: #5f3dc4;
  --purple-light: #b6a0ff;
  --lilac: #ece6ff;
  --lime: #d7f36b;
  --max: 1200px;
  --ease: cubic-bezier(.22,1,.36,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --f-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --f-body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--f-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
::selection { background: var(--lime); color: var(--navy); }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--lime); color: var(--navy); font-weight: 600; }
.skip:focus { top: 12px; }

/* Header */
.page-header { position: sticky; top: 0; z-index: 50; background: rgba(246,244,238,.85); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-bottom: 1px solid var(--line); }
.page-header.dark { background: rgba(14,13,34,.6); border-color: rgba(255,255,255,.08); color: white; }
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 700; letter-spacing: -.04em; font-size: 20px; white-space: nowrap; }
.brand b { font-weight: 400; }
.brand-mark { display: block; width: 36px; height: 36px; object-fit: contain; transition: transform .6s var(--ease-spring); }
.dark .brand-mark { filter: brightness(1.3) saturate(1.1) drop-shadow(0 0 10px rgba(182,160,255,.4)); }
.brand:hover .brand-mark { transform: rotate(-12deg) scale(1.08); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; border-radius: 999px; padding: 13px 20px; font-size: 14px; font-weight: 600; transition: transform .35s var(--ease), background .3s, box-shadow .35s var(--ease), border-color .3s; }
.button:hover { transform: translateY(-2px); }
.button .arr { display: inline-block; transition: transform .45s var(--ease); }
.button:hover .arr { transform: translate(3px,-3px); }
.button:hover .arr.back { transform: translateX(-3px); }
.button-dark { background: var(--navy); color: white; }
.button-dark:hover { box-shadow: 0 14px 40px -10px rgba(14,13,34,.5); }
.button-lime { background: var(--lime); color: var(--navy); }
.button-lime:hover { box-shadow: 0 14px 40px -8px rgba(215,243,107,.5); }
.button-ghost { border: 1px solid var(--line); }
.dark .button-ghost, .button-ghost.on-dark { border-color: rgba(255,255,255,.22); color: white; }
.button-ghost.on-dark:hover { background: rgba(255,255,255,.08); }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--purple-ink); font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 500; }
.kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6; }

/* Legal / long-form pages */
.legal-hero { padding: 88px 0 56px; border-bottom: 1px solid var(--line); }
.legal-hero h1 { font-family: var(--f-display); font-size: clamp(44px, 6vw, 80px); line-height: .98; letter-spacing: -.045em; font-weight: 600; margin: 18px 0 20px; }
.legal-hero h1 .serif { color: var(--purple); }
.legal-hero p { max-width: 620px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.meta-line { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 28px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.meta-line b { color: var(--ink); font-weight: 500; }
.draft-note { display: flex; gap: 14px; align-items: flex-start; margin-top: 32px; max-width: 760px; padding: 16px 18px; border-radius: 16px; background: #fbf8dc; border: 1px solid #e6df9c; color: #4a4520; font-size: 14px; line-height: 1.6; }
.draft-note b { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--lime); color: var(--navy); white-space: nowrap; }
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 72px; padding: 64px 0 120px; align-items: start; }
.toc { position: sticky; top: 104px; }
.toc h2 { margin: 0 0 14px; font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; font-size: 14px; color: var(--muted); transition: color .25s, border-color .25s; }
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--purple-ink); border-left-color: var(--purple); font-weight: 600; }
.legal-body { max-width: 720px; }
.legal-body section { scroll-margin-top: 96px; padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.legal-body section:last-child { border-bottom: 0; }
.legal-body h2 { display: flex; gap: 14px; align-items: baseline; margin: 0 0 16px; font-family: var(--f-display); font-size: 28px; font-weight: 600; letter-spacing: -.035em; line-height: 1.15; }
.legal-body h2 span { font-family: var(--f-mono); font-size: 12px; font-weight: 500; color: var(--purple-ink); letter-spacing: .05em; }
.legal-body p, .legal-body li { color: #3b3a52; font-size: 16px; line-height: 1.75; }
.legal-body p { margin: 0 0 14px; }
.legal-body ul { margin: 0 0 14px; padding-left: 20px; }
.legal-body li { margin-bottom: 6px; }
.legal-body li::marker { color: var(--purple); }
.legal-body a { color: var(--purple-ink); text-decoration: underline; text-underline-offset: 3px; }
.legal-body strong { color: var(--ink); font-weight: 600; }
.confirm { padding: 1px 6px; border-radius: 6px; background: #fbf8dc; border: 1px dashed #d6cd76; color: #5a541e; font-size: .92em; }
.data-table { width: 100%; border-collapse: collapse; margin: 6px 0 16px; font-size: 14.5px; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.data-table th { font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.data-table td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.contact-card { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 28px; border-radius: 24px; background: var(--navy); color: white; }
.contact-card p { margin: 6px 0 0; color: #bebcd3; }
.contact-card strong { color: white; font-family: var(--f-display); font-size: 22px; letter-spacing: -.03em; }

/* Footer */
.page-footer { background: var(--navy); color: #8f8da8; padding: 28px 0; font-family: var(--f-mono); font-size: 11px; }
.page-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.page-footer a:hover { color: var(--lime); }

/* 404 */
.notfound { position: relative; overflow: clip; min-height: 100svh; display: flex; flex-direction: column; background: var(--navy); color: white; }
.notfound main { flex: 1; display: grid; place-items: center; padding: 48px 0 80px; position: relative; z-index: 1; }
.notfound .bg { position: absolute; inset: 0; pointer-events: none; }
.notfound .blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.notfound .b1 { width: 600px; height: 600px; right: -160px; top: -200px; background: radial-gradient(circle, #7955d9, transparent 65%); animation: drift 18s ease-in-out infinite alternate; }
.notfound .b2 { width: 420px; height: 420px; left: -140px; bottom: -160px; background: radial-gradient(circle, #4b36a6, transparent 65%); animation: drift 22s ease-in-out infinite alternate-reverse; }
.notfound .grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 45%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 60% 55% at 50% 45%, #000 20%, transparent 75%); }
@keyframes drift { to { transform: translate(-70px, 80px) scale(1.1); } }
.nf-inner { text-align: center; max-width: 640px; }
.nf-code { position: relative; display: inline-block; font-family: var(--f-display); font-weight: 700; font-size: clamp(120px, 26vw, 260px); line-height: .85; letter-spacing: -.07em; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.28); user-select: none; }
.nf-code .zero { display: inline-block; color: transparent; -webkit-text-stroke-color: var(--lime); animation: wobble 6s ease-in-out infinite; }
@keyframes wobble { 0%,100% { transform: rotate(0) } 25% { transform: rotate(-8deg) translateY(-6px) } 75% { transform: rotate(6deg) translateY(4px) } }
.nf-orbit { position: absolute; left: 50%; top: 50%; width: 120%; aspect-ratio: 1; translate: -50% -50%; border: 1px dashed rgba(255,255,255,.1); border-radius: 50%; animation: spin 40s linear infinite; pointer-events: none; }
.nf-orbit::before { content: ""; position: absolute; top: 50%; left: -5px; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 18px 3px rgba(215,243,107,.6); }
@keyframes spin { to { transform: rotate(360deg); } }
.nf-inner h1 { font-family: var(--f-display); font-size: clamp(34px, 5vw, 56px); font-weight: 600; letter-spacing: -.045em; line-height: 1.02; margin: 28px 0 16px; }
.nf-inner h1 .serif { color: var(--purple-light); }
.nf-inner p { color: #c5c3da; font-size: 17px; line-height: 1.7; margin: 0 auto; max-width: 500px; }
.nf-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.nf-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.nf-links a { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); font-size: 13px; color: #dedcf0; transition: background .3s, border-color .3s, color .3s; }
.nf-links a:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); color: white; }
.rise { opacity: 0; transform: translateY(22px); animation: rise 1s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .rise { opacity: 1; transform: none; }
}
@media (max-width: 860px) {
  .wrap { width: min(100% - 32px, var(--max)); }
  .legal-hero { padding: 56px 0 40px; }
  .legal-layout { grid-template-columns: 1fr; gap: 32px; padding: 40px 0 80px; }
  .toc { position: static; padding: 20px; border-radius: 20px; background: white; border: 1px solid var(--line); }
  .legal-body h2 { font-size: 24px; }
  .data-table td:first-child { white-space: normal; }
  .header-cta { display: none; }
}
