/* Shared legal pages — matches site tokens, no redesign of landing */
:root {
  --bg: #07090C;
  --panel: #12171F;
  --line: rgba(255, 255, 255, 0.1);
  --text: #F3F1EA;
  --muted: #9AA3B0;
  --accent: #00E5A8;
  --font: "Heebo", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: clamp(16.5px, 0.35vw + 15.5px, 17.5px);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #5ff0c4; }

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

.skip {
  position: absolute;
  top: -100px;
  right: 12px;
  z-index: 9999;
  background: var(--accent);
  color: #04140f;
  padding: 10px 14px;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.shell {
  width: min(100% - 40px, 720px);
  margin-inline: auto;
}

.legal-top {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
  position: sticky;
  top: 0;
  background: rgba(7, 9, 12, 0.92);
  backdrop-filter: blur(10px);
  z-index: 20;
}

.legal-top__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.legal-top a.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}

.legal h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); line-height: 1.2; }
.legal h2 { font-size: 1.2rem; margin-top: 1.75rem; }
.legal p, .legal li { font-size: 1.02em; }
.legal .meta { font-size: 0.95rem; }

.legal-nav {
  display: flex;
  gap: 0.85rem 1.1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}
.legal-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}
.legal-nav a:hover,
.legal-nav a[aria-current="page"] {
  color: var(--accent);
}

main.legal {
  padding: 2.5rem 0 4rem;
}

.legal h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.legal .meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 2rem;
}

.legal h2 {
  font-size: 1.15rem;
  margin: 2rem 0 0.65rem;
  letter-spacing: -0.02em;
}

.legal h3 {
  font-size: 1rem;
  margin: 1.25rem 0 0.4rem;
}

.legal p, .legal li {
  color: var(--muted);
  max-width: 65ch;
}

.legal p { margin: 0 0 0.85rem; }
.legal ul, .legal ol {
  margin: 0 0 1rem;
  padding-right: 1.25rem;
}
.legal li { margin-bottom: 0.35rem; }
.legal strong { color: var(--text); font-weight: 600; }

.legal-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.legal-footer a { margin-left: 0.75rem; }
