:root {
  color-scheme: dark;
  --bg: #050b14;
  --bg-soft: #0a1423;
  --panel: rgba(255, 255, 255, 0.065);
  --panel-strong: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f7f9ff;
  --muted: #9ca9bc;
  --muted-strong: #c3ccda;
  --teal: #9cebd8;
  --blue: #a8c6ff;
  --gold: #f3cf8d;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
  --radius-lg: 34px;
  --radius-md: 22px;
  --max-width: 1160px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(156, 235, 216, 0.13), transparent 34rem),
    radial-gradient(circle at top right, rgba(168, 198, 255, 0.1), transparent 32rem),
    linear-gradient(180deg, #050b14 0%, #081321 48%, #04080f 100%);
  font-family: var(--font, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif);
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image: linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

a {
  color: inherit;
  text-decoration: none;
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.brand img {
  border-radius: 12px;
}

img {
  display: block;
  max-width: 100%;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

.section-shell {
  width: min(var(--max-width), calc(100% - 40px));
  margin-inline: auto;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 720;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #06101d;
  background: linear-gradient(135deg, var(--teal), #d8fff4);
  box-shadow: 0 16px 34px rgba(156, 235, 216, 0.18);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.legal-page {
  background:
    radial-gradient(circle at top left, rgba(143, 232, 208, 0.12), transparent 28rem),
    linear-gradient(180deg, #06101d 0%, #050a12 100%);
}

.legal-shell {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 72px;
}

.legal-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 20px 0 44px;
}

.legal-card {
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow);
}

.legal-card h1 {
  margin-bottom: 12px;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.legal-card h2,
.legal-card h3 {
  margin: 34px 0 10px;
  font-size: 1.25rem;
}

.legal-card h4 {
  margin: 24px 0 8px;
  font-size: 1rem;
}

.legal-card p,
.legal-card li,
.legal-card pre {
  color: var(--muted-strong);
}

.legal-card ul,
.legal-card ol {
  padding-left: 1.35rem;
}

.legal-card a {
  color: var(--teal);
}

.legal-example {
  overflow-x: auto;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.9rem;
  line-height: 1.6;
}

.placeholder-note {
  padding: 14px 16px;
  border: 1px solid rgba(255, 213, 138, 0.3);
  border-radius: 16px;
  color: #ffe6b0;
  background: rgba(255, 213, 138, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
