:root {
  --bg-deep: #0a0d1a;
  --bg-primary: #12101f;
  --bg-card: #1a1730;
  --bg-elevated: #221f38;
  --bg-input: #2a2745;
  --lime: #a8ff3b;
  --lime-dim: rgba(168, 255, 59, 0.1);
  --lime-border: rgba(168, 255, 59, 0.25);
  --lime-glow: rgba(168, 255, 59, 0.18);
  --lavender: #a78bfa;
  --lavender-dim: rgba(167, 139, 250, 0.12);
  --pink: #fa3b78;
  --pink-dim: rgba(250, 59, 120, 0.12);
  --pink-border: rgba(250, 59, 120, 0.24);
  --text-primary: #f5f3ff;
  --text-secondary: #9b95b0;
  --text-muted: #5e587a;
  --border: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.1);
  --font-display: 'Nunito', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius-full: 999px;
  --shadow-glow: 0 0 40px rgba(168, 255, 59, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-display);
  color: var(--text-primary);
  background:
    radial-gradient(circle at top right, rgba(168, 255, 59, 0.08), transparent 28%),
    radial-gradient(circle at bottom left, rgba(250, 59, 120, 0.08), transparent 26%),
    linear-gradient(180deg, var(--bg-card) 0%, var(--bg-primary) 38%, var(--bg-deep) 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

a {
  color: inherit;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(10, 13, 26, 0.72);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.nav-logo-f,
.nav-logo-b,
.footer-logo-f,
.footer-logo-b {
  display: inline-block;
  height: 1.8em;
  object-fit: contain;
  vertical-align: -0.45em;
}

.nav-logo-f,
.footer-logo-f {
  margin-left: -0.15em;
  margin-right: -0.35em;
}

.nav-logo-b,
.footer-logo-b {
  margin-left: -0.4em;
  margin-right: -0.45em;
}

.nav-logo-text,
.footer-logo-text {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.text-lime {
  color: var(--lime);
}

.text-pink {
  color: var(--pink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-link,
.nav-pill {
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.nav-link {
  color: var(--text-secondary);
}

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

.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--lime-border);
  background: var(--lime-dim);
  color: var(--lime);
  box-shadow: var(--shadow-glow);
}

.hero {
  position: relative;
  padding: 88px 0 36px;
}

.hero-card,
.toc-card,
.section-card,
.summary-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(26, 23, 48, 0.82);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.hero-card::before,
.toc-card::before,
.section-card::before,
.summary-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.07),
    transparent 36%,
    rgba(168, 255, 59, 0.03)
  );
  pointer-events: none;
}

.hero-card {
  padding: 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--lime-border);
  background: var(--lime-dim);
  color: var(--lime);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 16px 0 14px;
  max-width: 820px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 760px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: rgba(18, 16, 31, 0.62);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 26px 0 40px;
}

.summary-card {
  padding: 18px;
}

.summary-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.summary-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  padding-bottom: 72px;
}

.toc-card {
  position: sticky;
  top: 100px;
  align-self: start;
  padding: 22px 20px;
}

.toc-title {
  margin: 0 0 14px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc-list {
  display: grid;
  gap: 10px;
}

.toc-list a {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.45;
  text-decoration: none;
}

.toc-list a:hover {
  color: var(--lime);
}

.content-stack {
  display: grid;
  gap: 18px;
}

.section-card {
  padding: 24px;
}

.section-card h2 {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.section-card p,
.section-card li {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.75;
}

.section-card p {
  margin: 0 0 14px;
}

.section-card p:last-child {
  margin-bottom: 0;
}

.section-card ul {
  margin: 0;
  padding-left: 20px;
}

.section-card li + li {
  margin-top: 8px;
}

.section-card strong {
  color: var(--text-primary);
}

.callout {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--lime-border);
  background: linear-gradient(135deg, rgba(168, 255, 59, 0.12), rgba(167, 139, 250, 0.08));
}

.callout.warning {
  border-color: var(--pink-border);
  background: linear-gradient(135deg, rgba(250, 59, 120, 0.12), rgba(167, 139, 250, 0.08));
}

.callout p {
  margin: 0;
}

.fine-print {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 44px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.footer-links a:hover,
.footer-links a.active {
  color: var(--lime);
}

.footer-note {
  color: var(--text-muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .toc-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .nav-inner {
    min-height: 72px;
  }

  .nav-links {
    gap: 10px;
  }

  .nav-link {
    display: none;
  }

  .hero {
    padding-top: 64px;
  }

  .hero-card,
  .toc-card,
  .section-card,
  .summary-card {
    border-radius: 24px;
  }

  .hero-card,
  .section-card {
    padding: 20px;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .section-card h2 {
    font-size: 22px;
  }

  .section-card p,
  .section-card li {
    font-size: 15px;
  }
}
