:root {
  color-scheme: dark;
  --ink: #f4f0fa;
  --muted: #bcb2c9;
  --accent: #b7a0f4;
  --line: #b7a0f42b;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-weight: 500;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: #050408; }
body { margin: 0; min-height: 100svh; color: var(--ink); font-size: 1rem; line-height: 1.8; isolation: isolate; }
.space-background { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: #050408; }
.space-layer { position: absolute; left: -40px; top: -40px; width: calc(100% + 80px); height: calc(100% + 80px); max-width: none; object-fit: cover; will-change: transform; }
.nebula-layer { opacity: 0.55; transform: translate3d(var(--nebula-x, 0px), var(--nebula-y, 0px), 0); }
.stars-layer { opacity: 0.86; transform: translate3d(var(--stars-x, 0px), var(--stars-y, 0px), 0); }
.space-lens { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.space-background[data-lensing="ready"] .space-lens { opacity: 1; }
.space-background[data-lensing="ready"] .space-layer { visibility: hidden; }
.space-background::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, #05040800 20%, #05040860 100%); }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
h1, h2, p { margin: 0; }
.legal-shell { width: min(calc(100% - 3rem), 52rem); margin: 0 auto; padding: 32px 0 64px; }
.legal-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.legal-brand { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; text-decoration: none; }
.legal-brand img { display: block; height: 34px; width: auto; }
.legal-content { padding: clamp(20px, 4vw, 36px); border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(150deg, #110b1bf2, #09070ef5); box-shadow: 0 16px 60px #0005; }
.legal-content h1 { color: var(--ink); font-size: clamp(1.5rem, 4.5vw, 2.25rem); font-weight: 700; line-height: 1.35; margin-bottom: 8px; }
.legal-updated { color: #9991a6; font-size: 0.875rem; margin-bottom: 28px; }
.legal-content section { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 24px; }
.legal-content h2 { color: #ded5ec; font-size: 1rem; font-weight: 700; line-height: 1.5; text-transform: uppercase; letter-spacing: 0.035em; margin-bottom: 12px; }
.legal-content section p { color: var(--muted); margin-top: 12px; overflow-wrap: anywhere; }
.legal-content a { color: #ded5ec; text-decoration-color: #c1a5ff60; text-underline-offset: 4px; }
.legal-content a:hover { color: var(--accent); text-decoration-color: var(--accent); }
@media (max-width: 480px) {
  .legal-shell { width: calc(100% - 2rem); padding-top: 20px; padding-bottom: 32px; }
  .legal-header { gap: 12px; margin-bottom: 20px; }
  .legal-brand img { height: 24px; }
  .legal-brand { gap: 6px; }
  .legal-content { padding: 20px 18px; }
}
@media (prefers-reduced-motion: reduce) { .space-layer { will-change: auto; } }
