* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: #0A1628;
  color: #F1F5FB;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(45,123,255,0.08), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(44,216,213,0.05), transparent 50%);
  pointer-events: none;
  z-index: 0;
}
a { color: #28C2E5; text-decoration: none; transition: color 200ms; }
a:hover { color: #6EE7D0; }
::selection { background: rgba(40,194,229,0.3); color: #fff; }

/* Header (fixed, mirrors main site nav spirit) */
.legal-header {
  position: fixed; top: 0; left: 0; right: 0;
  padding: 20px 40px;
  z-index: 50;
  background: linear-gradient(180deg, rgba(10,22,40,0.92), rgba(10,22,40,0.7));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.legal-header .brand-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; font-size: 17px;
  letter-spacing: -0.02em;
  color: #F1F5FB;
}
.legal-header .brand-link:hover { color: #F1F5FB; }
.legal-header img {
  width: 28px; height: 28px;
  border-radius: 6px;
  object-fit: cover;
}
.legal-header .grad {
  background: linear-gradient(90deg, #2D7BFF, #2CD8D5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Main container */
.wrap {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  padding: 140px 24px 80px;
}

/* Back to home */
.back-home {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 14px; color: #9BAAC2;
  margin-bottom: 48px;
  transition: color 200ms;
}
.back-home:hover { color: #28C2E5; }
.back-home svg { transition: transform 200ms; }
.back-home:hover svg { transform: translateX(-3px); }

/* Eyebrow */
.eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.14em;
  color: #28C2E5;
  margin-bottom: 16px;
}

/* Typography */
h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #F1F5FB;
  margin: 0 0 14px;
  text-wrap: balance;
}
.meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #5F7089;
  letter-spacing: 0.08em;
  margin-bottom: 56px;
}

h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #F1F5FB;
  margin: 44px 0 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}
h2 .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(45,123,255,0.18), rgba(44,216,213,0.18));
  border: 1px solid rgba(40,194,229,0.25);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; font-weight: 700;
  color: #28C2E5;
  flex-shrink: 0;
}

p {
  font-size: 15.5px;
  line-height: 1.75;
  color: #9BAAC2;
  margin: 0 0 18px;
  text-wrap: pretty;
}

p strong { color: #F1F5FB; font-weight: 600; }

/* Nested description lists (used in cookies) */
.inline-list {
  margin: 10px 0 18px;
  padding: 0;
  list-style: none;
}
.inline-list li {
  position: relative;
  padding: 14px 18px 14px 20px;
  margin-bottom: 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.65;
  color: #9BAAC2;
}
.inline-list li strong {
  display: block;
  color: #F1F5FB;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}

/* Related docs footer */
.related {
  margin-top: 88px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.related-label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #5F7089;
  margin-bottom: 18px;
}
.related-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.related-grid a {
  padding: 12px 18px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  font-size: 14px;
  color: #E4EAF4;
  transition: background 200ms, border-color 200ms, color 200ms;
}
.related-grid a:hover {
  background: rgba(40,194,229,0.06);
  border-color: rgba(40,194,229,0.25);
  color: #28C2E5;
}

/* Site footer minimal */
.legal-footer {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px;
  border-top: 1px solid rgba(255,255,255,0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #5F7089;
  letter-spacing: 0.08em;
}

@media (max-width: 640px) {
  .legal-header { padding: 16px 20px; }
  .wrap { padding: 110px 20px 60px; }
  h1 { font-size: 32px; }
  h2 { font-size: 20px; }
  .meta { margin-bottom: 40px; }
}
