:root {
  --bg: #09111f;
  --bg-soft: #111a2b;
  --panel: rgba(17, 26, 43, 0.86);
  --text: #eef4ff;
  --muted: #b7c4db;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #5ea2ff;
  --accent-soft: rgba(94, 162, 255, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(94, 162, 255, 0.18), transparent 36%),
    linear-gradient(180deg, #0b1424 0%, var(--bg) 100%);
}

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

.legal-shell {
  width: min(940px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.legal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.legal-brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2876ff 0%, #66a8ff 100%);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.legal-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.legal-brand-copy strong {
  font-size: 1rem;
}

.legal-brand-copy span {
  font-size: 0.82rem;
  color: var(--muted);
}

.legal-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

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

.legal-hero {
  border-radius: 32px;
  padding: 32px;
  margin-bottom: 18px;
}

.legal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #cfe3ff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.legal-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.legal-hero p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

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

.legal-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-panel {
  border-radius: 28px;
  padding: 28px;
}

.legal-note {
  margin: 0 0 26px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  line-height: 1.7;
}

.legal-section + .legal-section {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  margin: 0 0 12px;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
}

.legal-section p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.75;
}

.legal-section ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.75;
}

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

.legal-footer {
  margin-top: 18px;
  padding: 0 8px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

@media (max-width: 720px) {
  .legal-shell {
    width: min(100vw - 20px, 940px);
    padding: 20px 0 40px;
  }

  .legal-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-hero,
  .legal-panel {
    border-radius: 24px;
    padding: 22px;
  }

  .legal-hero h1 {
    font-size: 2rem;
  }
}
