/* ============ TOKENS ============ */
:root {
  --primary:        oklch(0.38 0.09 245);
  --primary-hover:  oklch(0.32 0.10 245);
  --primary-soft:   oklch(0.95 0.025 245);
  --accent:         oklch(0.55 0.13 245);

  --bg:             oklch(0.985 0.005 75);
  --bg-alt:         oklch(0.955 0.010 75);
  --bg-deep:        oklch(0.20 0.015 245);

  --ink:            oklch(0.22 0.015 245);
  --ink-2:          oklch(0.38 0.012 245);
  --ink-3:          oklch(0.55 0.010 245);
  --line:           oklch(0.88 0.008 75);
  --line-strong:    oklch(0.78 0.008 75);

  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 16px;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);

  --font-display: 'Newsreader', 'Times New Roman', serif;
  --font-body:    'Geist', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --font-mono:    'Geist Mono', ui-monospace, monospace;
}

/* ============ BASE ============ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); text-decoration: underline; text-underline-offset: 3px; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--primary);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

.h-section {
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.lead {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 12px 0;
  background: oklch(0.985 0.005 75 / 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.logo { display: flex; align-items: center; }
.logo-img {
  height: 38px;
  width: auto;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  padding: 8px 16px;
  border-radius: 999px;
  transition: background 200ms ease, color 200ms ease;
  position: relative;
  white-space: nowrap;
  text-decoration: none;
}
.nav-link:hover {
  background: oklch(0 0 0 / 0.04);
  text-decoration: none;
  color: var(--ink);
}

.menu-toggle { display: none; }

/* ============ LEGAL PAGE ============ */
.legal {
  padding: 140px 0 96px;
}
.legal-head {
  max-width: 760px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.legal-head .eyebrow { margin-bottom: 20px; }
.legal-head h1 { margin: 0 0 28px; }
.legal-head .lead { margin: 0 0 24px; }
.legal-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin: 0;
}

.legal-body {
  max-width: 760px;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-2);
}
.legal-body section {
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.legal-body section:first-child { border-top: none; padding-top: 0; }
.legal-body h2 {
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 18px;
  letter-spacing: -0.015em;
}
.legal-body h3 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 28px 0 12px;
}
.legal-body p { margin: 0 0 16px; text-wrap: pretty; }
.legal-body ul {
  margin: 0 0 16px;
  padding-left: 22px;
}
.legal-body li {
  margin-bottom: 8px;
}
.legal-body li::marker {
  color: var(--primary);
}
.legal-body strong { color: var(--ink); font-weight: 500; }
.legal-body code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-alt);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--primary);
}

/* ============ COOKIE TABLE ============ */
.cookie-table-wrap {
  margin: 12px 0 24px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.5;
  min-width: 560px;
}
.cookie-table th,
.cookie-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.cookie-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  background: var(--bg-alt);
}
.cookie-table tbody tr:last-child td { border-bottom: none; }
.cookie-table-empty {
  color: var(--ink-3);
  font-style: italic;
  text-align: center;
  padding: 22px 18px;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--bg-deep);
  color: oklch(1 0 0 / 0.6);
  padding: 60px 0 32px;
  border-top: 1px solid oklch(1 0 0 / 0.08);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-legal {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer a {
  color: oklch(1 0 0 / 0.6);
  text-decoration: none;
}
.footer a:hover { color: white; text-decoration: none; }

::selection { background: var(--primary); color: white; }

/* ============ MOBILE ============ */
@media (max-width: 768px) {
  .nav {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 96px var(--gutter) 40px calc(var(--gutter) + 28px);
    z-index: 90;
    transform: translateX(100%);
    transition: transform 300ms cubic-bezier(.2,.8,.2,1);
    overflow-y: auto;
  }
  .nav.open { transform: translateX(0); }
  .nav .nav-link {
    color: var(--ink) !important;
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 400;
    letter-spacing: -0.015em;
    padding: 18px 0;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
  }
  .nav .nav-link:hover { background: transparent; }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 110;
    position: relative;
  }
  .menu-toggle span {
    width: 22px; height: 1.5px;
    background: var(--ink);
    transition: transform 250ms ease, opacity 250ms ease, background 250ms ease;
    transform-origin: center;
  }
  body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  body.menu-open { overflow: hidden; }
  body.menu-open .site-header {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
  }
}
