/* ===== TOKENS (dark theme baked in, accent hue = 185) ===== */
:root {
  --bg: oklch(0.18 0.01 60);
  --bg-2: oklch(0.22 0.012 60);
  --ink: oklch(0.96 0.01 80);
  --ink-2: oklch(0.75 0.012 70);
  --line: oklch(0.32 0.012 60);
  --accent: oklch(0.72 0.16 185);
  --accent-soft: oklch(0.94 0.045 185);

  --display: "Bricolage Grotesque", Georgia, serif;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --pad: 20px;
  --max: 1240px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
img { max-width: 100%; display: block; }

::selection { background: var(--accent-soft); color: oklch(0.18 0.01 60); }

/* ===== HEADER ===== */
.hdr {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.hdr--scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in oklab, var(--bg) 92%, transparent);
}
.hdr-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: inherit;
}
.brand-mark {
  display: inline-flex;
  width: 28px; height: 28px;
}
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-name { white-space: nowrap; }

.hdr-nav { display: none; gap: 28px; }
.hdr-nav a {
  font-size: 14.5px;
  color: var(--ink-2);
  text-decoration: none;
  transition: color .15s ease;
}
.hdr-nav a:hover { color: var(--ink); }

.hdr-burger {
  width: 38px; height: 38px;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.hdr-burger span {
  display: block; width: 16px; height: 1.5px; background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
  transform-origin: center;
}
.hdr-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(2.75px) rotate(45deg); }
.hdr-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hdr-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-2.75px) rotate(-45deg); }
.hdr-drawer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .25s ease;
  background: var(--bg);
  border-bottom: 1px solid transparent;
}
.hdr-drawer--open {
  grid-template-rows: 1fr;
  border-bottom-color: var(--line);
}
.hdr-drawer > * { overflow: hidden; }
.hdr-drawer a {
  display: block;
  padding: 14px var(--pad);
  font-size: 18px;
  font-family: var(--display);
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

@media (min-width: 720px) {
  .hdr-nav { display: inline-flex; }
  .hdr-burger { display: none; }
  .hdr-drawer { display: none; }
  .brand { font-size: 19px; }
}

/* ===== LEGAL CONTENT ===== */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px var(--pad) 64px;
  position: relative;
}
.legal-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}
.legal h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 8px 0 8px;
  text-wrap: balance;
}
.legal h1 em {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}
.legal-sub {
  color: var(--ink-2);
  font-size: clamp(15px, 2.2vw, 17px);
  margin: 0 0 28px;
  text-wrap: pretty;
}
.legal-divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 28px 0;
}
.legal h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(20px, 3.4vw, 24px);
  letter-spacing: -0.01em;
  margin: 28px 0 8px;
}
.legal h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  margin: 20px 0 6px;
  color: var(--ink-2);
}
.legal p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 14px;
  text-wrap: pretty;
}
.legal a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in oklab, var(--accent) 50%, transparent);
  transition: border-color .15s ease;
  word-break: break-word;
}
.legal a:hover { border-bottom-color: var(--accent); }
.legal ul, .legal ol {
  padding-left: 22px;
  margin: 6px 0 16px;
}
.legal li {
  font-size: 16px;
  line-height: 1.6;
  margin: 4px 0;
}
.legal em.note { color: var(--ink-2); font-style: italic; font-size: 14.5px; display: block; margin: 6px 0; }

/* ===== FOOTER ===== */
.ftr { padding: 40px 0 60px; border-top: 1px solid var(--line); margin-top: 40px; }
.ftr-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ftr-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
}
.ftr-brand .brand-mark { width: 26px; height: 26px; }
.ftr-nav { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: var(--ink-2); }
.ftr-nav a { text-decoration: none; color: inherit; }
.ftr-nav a:hover { color: var(--ink); }
.ftr-meta { font-family: var(--mono); font-size: 11px; color: var(--ink-2); letter-spacing: 0.04em; }

@media (min-width: 720px) {
  .ftr-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .ftr-nav { gap: 24px; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}
