:root {
  color-scheme: dark;
  --bg: #0b0914;
  --panel: rgba(24, 18, 39, 0.82);
  --panel-strong: #1b142b;
  --text: #f4efff;
  --muted: #b9adc9;
  --line: rgba(214, 183, 255, 0.16);
  --accent: #d8b7ff;
  --accent-strong: #f0d9ff;
  --gold: #f0d6a4;
  font-family: Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html {
  width: 100%;
  min-width: 0;
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
}

#privacy-root {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
}

.cosmic-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.cosmic-background__base,
.cosmic-background__nebula,
.cosmic-background__stars {
  position: absolute;
}

.cosmic-background__base {
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% -8%, rgba(124, 77, 219, 0.3), transparent 60%),
    radial-gradient(ellipse 70% 50% at 85% 18%, rgba(84, 48, 168, 0.22), transparent 60%),
    radial-gradient(ellipse 60% 45% at 8% 70%, rgba(184, 100, 60, 0.1), transparent 60%),
    linear-gradient(180deg, #120d20 0%, #0e0a18 45%, #08060f 100%);
}

.cosmic-background__nebula {
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform;
}

.cosmic-background__nebula--1 {
  top: -6%;
  left: -10%;
  width: max(55vw, 320px);
  height: max(55vw, 320px);
  opacity: 0.5;
  background: radial-gradient(circle, rgba(124, 77, 219, 0.55), transparent 65%);
}

.cosmic-background__nebula--2 {
  top: 30%;
  right: -18%;
  width: max(60vw, 360px);
  height: max(60vw, 360px);
  opacity: 0.4;
  background: radial-gradient(circle, rgba(216, 106, 140, 0.3), transparent 62%);
}

.cosmic-background__nebula--3 {
  bottom: -10%;
  left: 5%;
  width: max(50vw, 300px);
  height: max(50vw, 300px);
  opacity: 0.35;
  background: radial-gradient(circle, rgba(232, 184, 82, 0.18), transparent 60%);
}

.cosmic-background__stars {
  inset: 0;
  width: 100%;
  height: 100%;
}

a { color: inherit; }
button, select { font: inherit; }

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid rgba(216, 183, 255, 0.18);
  background:
    linear-gradient(90deg, rgba(47, 31, 76, 0.78), rgba(25, 18, 43, 0.7)),
    rgba(15, 10, 27, 0.68);
  box-shadow:
    0 10px 32px rgba(5, 3, 12, 0.2),
    inset 0 -1px rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
}

.header-inner,
.page,
.picker {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: clamp(10px, 3vw, 16px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 50%;
  clip-path: circle(49% at 50% 50%);
  filter: drop-shadow(0 0 18px rgba(216, 183, 255, 0.35));
}

.brand strong,
h1,
h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
}

.brand strong { font-size: 26px; letter-spacing: 0.04em; }
.language-switch {
  min-width: 148px;
  padding: 10px 14px;
  color: var(--text);
  border: 1px solid rgba(216, 183, 255, 0.24);
  border-radius: 999px;
  outline: none;
  background-color: rgba(35, 24, 57, 0.86);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}

.language-switch:hover,
.language-switch:focus-visible {
  border-color: rgba(240, 217, 255, 0.56);
  box-shadow: 0 0 0 3px rgba(216, 183, 255, 0.1);
}

.picker {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding-block: clamp(20px, 8vh, 64px);
}

.picker-card {
  width: 100%;
  max-width: 760px;
  min-width: 0;
  padding: clamp(28px, 6vw, 64px);
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(35, 25, 55, 0.92), rgba(17, 13, 29, 0.92));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
}

.picker-logo {
  width: 84px;
  height: 84px;
  object-fit: contain;
  border-radius: 50%;
  clip-path: circle(49% at 50% 50%);
  filter: drop-shadow(0 0 22px rgba(216, 183, 255, 0.28));
}
.eyebrow {
  margin: 18px 0 6px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.picker h1,
.hero h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 0.98;
}

.picker-copy,
.hero-copy {
  color: var(--muted);
  line-height: 1.7;
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 32px;
}

.language-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  transition: 160ms ease;
}

.language-card:hover,
.language-card:focus-visible {
  border-color: rgba(216, 183, 255, 0.52);
  background: rgba(216, 183, 255, 0.1);
  transform: translateY(-2px);
}

.language-card span { color: var(--muted); font-size: 12px; }
.page { padding-block: 56px 96px; }
.hero {
  padding: clamp(28px, 6vw, 60px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(40, 28, 61, 0.9), rgba(18, 14, 31, 0.9));
}

.acceptance {
  margin-top: 28px;
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  border-radius: 8px 16px 16px 8px;
  color: var(--accent-strong);
  background: rgba(216, 183, 255, 0.08);
  line-height: 1.6;
}

.updated { color: var(--muted); font-size: 13px; }
.document-layout {
  min-width: 0;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 28px;
  margin-top: 28px;
}

.toc {
  position: sticky;
  top: 96px;
  align-self: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.toc strong { display: block; margin-bottom: 10px; color: var(--gold); }
.toc a {
  display: block;
  padding: 8px 10px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.35;
}
.toc a:hover { color: var(--text); background: rgba(255,255,255,.05); }

.sections {
  min-width: 0;
  display: grid;
  gap: 18px;
}
.legal-section {
  scroll-margin-top: 96px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
}

.legal-section h2 {
  margin: 0 0 16px;
  color: var(--accent-strong);
  font-size: clamp(25px, 4vw, 34px);
}

.legal-section p,
.legal-section li {
  color: #d9d0e4;
  line-height: 1.72;
}
.legal-section ul { padding-left: 22px; }
.legal-section li + li { margin-top: 7px; }
.footer-note {
  margin-top: 26px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

@media (max-width: 760px) {
  .language-grid { grid-template-columns: repeat(2, 1fr); }
  .document-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .header-inner { min-height: 64px; }
  .brand strong { font-size: 22px; }
}

@media (max-width: 440px) {
  .language-grid { grid-template-columns: 1fr; }
  .language-switch { max-width: 132px; }
  .picker-card { border-radius: 22px; }
  .page { padding-block: 24px 64px; }
  .hero { border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cosmic-background__nebula { will-change: auto; }
  .language-card { transition: none; }
}
