/*
 * Styles for the static privacy policy pages (e.g. /privacy/arrowbop/).
 * These pages are plain HTML served straight from /public, so the tokens
 * below mirror the jkg-* colours and fonts in tailwind.config.ts by hand.
 */
:root {
  --bg: oklch(0.13 0.012 280);
  --panel: oklch(0.16 0.014 280);
  --raised: oklch(0.18 0.015 280);
  --line: oklch(0.3 0.015 280);
  --line-faint: oklch(0.24 0.015 280);
  --line-strong: oklch(0.4 0.015 280);
  --fg: oklch(0.97 0.005 100);
  --body: oklch(0.88 0.008 280);
  --muted: oklch(0.72 0.012 280);
  --ink: oklch(0.15 0.02 280);
  --lime: oklch(0.9 0.19 125);
  --violet: oklch(0.7 0.19 295);
  --violet-text: oklch(0.8 0.14 295);
  --gutter: clamp(16px, 3vw, 40px);
  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-mono: "DM Mono", ui-monospace, monospace;
  --font-sans: "Hanken Grotesk", system-ui, sans-serif;
  color-scheme: dark;
}

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  background:
    radial-gradient(900px 600px at 85% 0%, oklch(0.7 0.19 295 / 0.13), transparent 70%),
    radial-gradient(700px 500px at 0% 100%, oklch(0.9 0.19 125 / 0.07), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}

a {
  color: var(--lime);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

svg {
  flex: none;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Header and footer (same shell as the main site) ---------- */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 18px var(--gutter);
}

.logo {
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
}

.logo:hover {
  color: var(--lime);
}

.mono-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
}

.mono-link:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: auto;
  padding: 16px var(--gutter);
  border-top: 1px solid var(--line-faint);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a[aria-current="page"] {
  color: var(--lime);
}

/* ---------- Shared pieces ---------- */

main {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(20px, 5vh, 56px) var(--gutter) clamp(48px, 9vh, 96px);
}

.eyebrow {
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1 {
  color: var(--fg);
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8.5vw, 5.25rem);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 0.95;
  text-transform: uppercase;
  text-wrap: balance;
}

h2 {
  color: var(--fg);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.2vw, 2.1rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.1;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s;
}

.button:hover {
  background: var(--fg);
}

/* ---------- Policy page ---------- */

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 8px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover,
.breadcrumb [aria-current="page"] {
  color: var(--lime);
}

.policy-head {
  padding: clamp(20px, 4vh, 40px) 0 clamp(28px, 5vh, 48px);
  border-bottom: 1px solid var(--line-faint);
}

.policy-head h1 {
  font-size: clamp(2.4rem, 7.5vw, 4.5rem);
}

.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 24px;
  max-width: 720px;
  margin-top: 28px;
}

.facts dt {
  padding-top: 0.4em;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.facts dd {
  color: var(--fg);
}

@media (max-width: 480px) {
  .facts {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .facts dd {
    margin-bottom: 12px;
  }
}

.policy-layout {
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  margin-top: clamp(28px, 5vh, 48px);
}

.toc {
  padding: 20px 22px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.toc h2 {
  margin-bottom: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
}

.toc ol {
  padding-left: 1.6em;
  font-size: 0.98rem;
  line-height: 1.4;
}

.toc li {
  padding: 5px 0;
}

.toc li::marker {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.8em;
}

.toc a {
  color: var(--body);
  text-decoration: none;
}

.toc a:hover {
  color: var(--lime);
  text-decoration: underline;
}

@media (min-width: 900px) {
  .policy-layout {
    grid-template-columns: 270px minmax(0, 1fr);
    align-items: start;
  }
  .toc {
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
  }
}

.policy {
  max-width: 70ch;
}

.policy section + section {
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--line-faint);
}

.policy h2 {
  margin-bottom: 16px;
}

.policy h2 .num {
  display: block;
  margin-bottom: 6px;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
}

.policy p + p,
.policy p + ul,
.policy ul + p {
  margin-top: 14px;
}

.policy ul {
  padding-left: 1.25em;
}

.policy li {
  padding-left: 0.25em;
}

.policy li + li {
  margin-top: 10px;
}

.policy li > ul {
  margin-top: 10px;
}

.policy li::marker {
  color: var(--lime);
}

.policy li li::marker {
  color: var(--muted);
}

.policy strong,
.policy .path {
  color: var(--fg);
  font-weight: 600;
}

.policy .path {
  white-space: nowrap;
}

@media (max-width: 480px) {
  .policy .path {
    white-space: normal;
  }
}

.summary-box {
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  border-left: 4px solid var(--lime);
  background: var(--panel);
}

.back {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line-faint);
}

.back a {
  font-weight: 600;
}
