:root {
  color-scheme: dark;
  --page-bg: #09111f;
  --panel: rgba(10, 18, 33, 0.84);
  --panel-soft: rgba(255, 255, 255, 0.04);
  --border: rgba(148, 163, 184, 0.18);
  --border-strong: rgba(56, 189, 248, 0.26);
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-soft: #94a3b8;
  --accent: #38bdf8;
  --shadow: 0 32px 120px rgba(2, 6, 23, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.12), transparent 28%),
    radial-gradient(circle at bottom right, rgba(249, 115, 22, 0.09), transparent 24%),
    linear-gradient(180deg, #07101c 0%, #09111f 52%, #0b1425 100%);
  color: var(--text-main);
}

a {
  color: var(--accent);
}

.legal-shell {
  width: min(1160px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 48px 0 80px;
}

.hero,
.card,
.legal-footer {
  border: 1px solid var(--border);
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero {
  border-radius: 32px;
  padding: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #bae6fd;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 0;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-copy {
  margin: 18px 0 0;
  max-width: 760px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.85;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 24px;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.legal-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}

.legal-sidebar {
  display: grid;
  gap: 18px;
}

.card {
  border-radius: 28px;
  padding: 22px;
}

.card-kicker {
  margin: 0 0 14px;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.summary-card {
  border-color: var(--border-strong);
  background: rgba(56, 189, 248, 0.08);
}

.summary-list,
.detail-list,
.toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.summary-list li,
.detail-list li {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  line-height: 1.75;
}

.identity-lines p,
.contact-lines p,
.legal-section p {
  margin: 0 0 14px;
  color: var(--text-muted);
  line-height: 1.82;
}

.identity-lines p:last-child,
.contact-lines p:last-child,
.legal-section p:last-child {
  margin-bottom: 0;
}

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

.toc-list a {
  display: block;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: #dbeafe;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.toc-list a:hover {
  transform: translateX(4px);
  border-color: rgba(56, 189, 248, 0.36);
  background: rgba(56, 189, 248, 0.11);
}

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

.legal-section {
  scroll-margin-top: 24px;
}

.section-number {
  margin: 0 0 8px;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.legal-section h2 {
  margin: 0 0 18px;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.section-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(251, 191, 36, 0.18);
  background: rgba(251, 191, 36, 0.08);
  color: #fde68a;
  line-height: 1.7;
}

.contact-card {
  border-color: rgba(52, 211, 153, 0.2);
}

.cross-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.cross-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #dbeafe;
  text-decoration: none;
}

.legal-footer {
  margin-top: 24px;
  border-radius: 28px;
  padding: 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 28px;
}

.footer-grid p,
.footer-copy {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.75;
}

.footer-copy {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-shell {
    width: min(100vw - 24px, 1160px);
    padding-top: 20px;
    padding-bottom: 40px;
  }

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

@media (max-width: 640px) {
  .hero,
  .card,
  .legal-footer {
    border-radius: 24px;
  }

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