:root {
  color-scheme: dark;
  --bg: #17141b;
  --surface: #221e2a;
  --surface-2: #2b2535;
  --text: #f0edf5;
  --muted: #beb8c9;
  --accent: #7b5ef8;
  --border: rgba(240, 237, 245, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 85% 0%, rgba(123, 94, 248, 0.18), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

a { color: #ae9cff; }
a:hover { color: #d0c7ff; }

.legal-header {
  border-bottom: 1px solid var(--border);
  background: rgba(23, 20, 27, 0.9);
}

.legal-nav,
.legal-main,
.legal-footer {
  width: min(100% - 2rem, 900px);
  margin-inline: auto;
}

.legal-nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.legal-logo { width: 118px; height: auto; display: block; }
.back-link { text-decoration: none; font-weight: 700; }

.legal-main { padding: 72px 0 88px; }

.legal-kicker {
  color: #ae9cff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1, h2, h3 { font-family: "Space Grotesk", Inter, sans-serif; line-height: 1.2; }
h1 { max-width: 760px; margin: 0.45rem 0 1rem; font-size: clamp(2.2rem, 7vw, 4.7rem); letter-spacing: -0.045em; }
h2 { margin: 2.4rem 0 0.75rem; font-size: clamp(1.35rem, 3vw, 1.8rem); }
h3 { margin: 1.4rem 0 0.55rem; font-size: 1.05rem; }
p, li { color: var(--muted); }
strong { color: var(--text); }
ul, ol { padding-left: 1.35rem; }
li + li { margin-top: 0.4rem; }

.updated { color: var(--muted); margin-bottom: 2rem; }

.notice {
  margin: 1.75rem 0;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(123, 94, 248, 0.45);
  border-radius: 16px;
  background: rgba(123, 94, 248, 0.09);
}

.card {
  margin-top: 1rem;
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(34, 30, 42, 0.75);
}

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { position: relative; padding: 0 0 1.25rem 3rem; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-weight: 800;
}

.legal-footer {
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-footer-links { display: flex; flex-wrap: wrap; gap: 0.8rem 1.2rem; margin-bottom: 0.65rem; }

@media (max-width: 620px) {
  .legal-nav { min-height: 66px; }
  .legal-logo { width: 102px; }
  .legal-main { padding-top: 50px; }
}
