
:root {
  --bg: #03080e;
  --panel: rgba(142,231,255,0.055);
  --line: rgba(167,229,255,0.20);
  --text: #f2fbff;
  --muted: rgba(221,243,255,0.72);
  --accent: #8ee7ff;
  --ice-white: #f4fcff;
  --ice-blue: #7ed4ff;
  --max: 980px;
  --radius: 28px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'DM Sans', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
main { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; padding: 32px 0 64px; }
.panel {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 36px);
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
}
.topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-link {
  color: inherit;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.brand img { width: 52px; height: 52px; object-fit: cover; object-position: center; border-radius: 999px; filter: none !important; }
.brand strong { display: block; font-size: 18px; }
.brand span { display: block; color: var(--muted); font-size: 13px; }
.language-switcher {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}
.theme-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lang-btn, .theme-btn, .ghost-link {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-weight: 700;
  letter-spacing: .06em;
  font-size: 12px;
  text-transform: uppercase;
  cursor: pointer;
}
.theme-btn {
  width: 42px;
  min-width: 42px;
  padding: 0;
}
.theme-btn svg {
  width: 18px;
  height: 18px;
  display: block;
  margin: 0 auto;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lang-btn.active, .theme-btn.active {
  background: var(--accent);
  color: #03080e;
  border-color: var(--accent);
}
.hero {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}
.eyebrow {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 11px;
  font-weight: 700;
}
h1, h2, h3 {
  margin: 0;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: .02em;
  line-height: .95;
}
h1 { font-size: clamp(34px, 8vw, 60px); }
h2 { font-size: clamp(26px, 5vw, 38px); margin-top: 28px; }
p, li { color: var(--text); }
.lead { color: var(--muted); max-width: 72ch; }
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 0;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.nav-links a.active {
  color: #03080e;
  background: var(--accent);
  border-color: var(--accent);
}
.legal-content {
  display: grid;
  gap: 14px;
}
.legal-content ul { padding-left: 20px; }
.legal-content li + li { margin-top: 8px; }
.notice {
  border-left: 3px solid var(--accent);
  padding-left: 14px;
  color: var(--muted);
}
.footer {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}
code {
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 8px;
}
@media (max-width: 700px) {
  main { width: min(calc(100% - 24px), var(--max)); padding-top: 18px; }
  .topbar { align-items: stretch; }
  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }
}


/* Frost theme for legal pages */
body {
  background:
    radial-gradient(ellipse 52% 34% at 50% -10%, rgba(126,212,255,.14), transparent 64%),
    radial-gradient(ellipse 42% 30% at 8% 8%, rgba(55,160,255,.12), transparent 62%),
    linear-gradient(180deg, #02060b 0%, #04101b 48%, #02060b 100%);
}
.panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(202,244,255,.24);
  background:
    radial-gradient(circle at 16% 8%, rgba(226,248,255,.075), transparent 28%),
    radial-gradient(circle at 86% 4%, rgba(126,212,255,.085), transparent 28%),
    linear-gradient(180deg, rgba(16,40,61,.64), rgba(4,15,26,.78));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 28px 76px rgba(0,0,0,.48), 0 0 38px rgba(63,184,255,.10);
  backdrop-filter: blur(18px) saturate(1.18);
}
.panel::before {
  content: "❄";
  position: absolute;
  top: 16px;
  right: 20px;
  color: rgba(226,248,255,.34);
  text-shadow: 0 0 14px rgba(126,212,255,.38);
  pointer-events: none;
}
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(235,252,255,.38), transparent 18%, transparent 82%, rgba(126,212,255,.22)),
    linear-gradient(180deg, rgba(235,252,255,.30), transparent 16%, transparent 84%, rgba(126,212,255,.14));
  opacity: .18;
  mix-blend-mode: screen;
}
h1, h2, h3, .brand strong {
  color: var(--ice-white);
  text-shadow: 0 0 18px rgba(126,212,255,.20), 0 0 42px rgba(63,184,255,.10);
}
.lang-btn, .theme-btn, .ghost-link, .nav-links a {
  border-color: rgba(191,239,255,.22);
  background: linear-gradient(180deg, rgba(221,250,255,.065), rgba(64,158,255,.035));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 14px 34px rgba(0,0,0,.24);
}
.lang-btn.active, .theme-btn.active, .nav-links a.active {
  color: #03111b;
  border-color: rgba(226,248,255,.78);
  background: linear-gradient(180deg, rgba(244,252,255,1), rgba(126,212,255,.96) 52%, rgba(46,163,255,.92));
  box-shadow: 0 0 0 1px rgba(226,248,255,.32), 0 0 26px rgba(126,212,255,.32), 0 16px 36px rgba(34,139,255,.20);
}
.notice {
  border-left-color: var(--accent);
  box-shadow: -10px 0 22px rgba(126,212,255,.06);
}
::selection { color: #02101a; background: rgba(142,231,255,.92); }


/* v34 exact logo from supplied PNG */
.brand img {
  object-fit: cover;
  object-position: center;
  border-radius: 999px;
  filter: none !important;
}

/* Light theme for legal pages */
html[data-theme="light"] body,
body.theme-light {
  color-scheme: light;
  --bg: #f1f4f8;
  --panel: rgba(255,255,255,.84);
  --line: rgba(10,18,32,.24);
  --text: #080b10;
  --muted: rgba(20,31,48,.74);
  --accent: #080b10;
  --ice-white: #080b10;
  --ice-blue: #1d3344;
  background:
    linear-gradient(90deg, rgba(69,114,170,.075) 1px, transparent 1px),
    linear-gradient(180deg, rgba(69,114,170,.065) 1px, transparent 1px),
    radial-gradient(ellipse 78% 54% at 50% 0%, rgba(255,255,255,.92), rgba(232,240,251,.42) 52%, transparent 74%),
    linear-gradient(180deg, #f7f9fc 0%, #edf3f8 48%, #f9fbfd 100%);
  background-size: 72px 72px, 72px 72px, 100% 100%, 100% 100%;
}
html[data-theme="light"] .panel,
body.theme-light .panel {
  border-color: rgba(10,18,32,.24);
  background:
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(248,251,255,.72)),
    linear-gradient(115deg, transparent 0 38%, rgba(42,96,165,.045) 38.2% 38.6%, transparent 38.9% 100%);
  box-shadow: 0 22px 60px rgba(20,39,67,.13), inset 0 1px 0 rgba(255,255,255,.92), inset 0 0 0 1px rgba(255,255,255,.42);
  backdrop-filter: blur(16px) saturate(1.02);
}
html[data-theme="light"] .panel::before,
html[data-theme="light"] .panel::after,
body.theme-light .panel::before,
body.theme-light .panel::after {
  content: none;
  display: none;
}
html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] .brand strong,
body.theme-light h1,
body.theme-light h2,
body.theme-light h3,
body.theme-light .brand strong {
  color: #080b10;
  font-family: 'DM Sans', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.04;
  text-shadow: 0 1px 0 rgba(255,255,255,.72), 0 18px 48px rgba(38,86,145,.10);
}
html[data-theme="light"] .lang-btn,
html[data-theme="light"] .theme-btn,
html[data-theme="light"] .ghost-link,
html[data-theme="light"] .nav-links a,
body.theme-light .lang-btn,
body.theme-light .theme-btn,
body.theme-light .ghost-link,
body.theme-light .nav-links a {
  color: rgba(8,14,23,.78);
  border-color: rgba(10,18,32,.24);
  background: rgba(255,255,255,.74);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86), 0 10px 26px rgba(20,39,67,.09);
}
html[data-theme="light"] .lang-btn.active,
html[data-theme="light"] .theme-btn.active,
html[data-theme="light"] .nav-links a.active,
body.theme-light .lang-btn.active,
body.theme-light .theme-btn.active,
body.theme-light .nav-links a.active {
  color: #ffffff;
  border-color: rgba(8,11,16,.92);
  background: linear-gradient(180deg, #172033, #070b12);
  box-shadow: 0 14px 32px rgba(8,11,16,.18), 0 0 0 1px rgba(255,255,255,.35) inset;
}
html[data-theme="light"] .notice,
body.theme-light .notice {
  box-shadow: none;
}
html[data-theme="light"] .nav-links a,
body.theme-light .nav-links a {
  font-size: 13px;
}
html[data-theme="light"] p,
html[data-theme="light"] li,
body.theme-light p,
body.theme-light li {
  color: rgba(20,31,48,.82);
}
html[data-theme="light"] .lead,
html[data-theme="light"] .brand span,
html[data-theme="light"] .eyebrow,
html[data-theme="light"] .footer,
body.theme-light .lead,
body.theme-light .brand span,
body.theme-light .eyebrow,
body.theme-light .footer {
  color: rgba(20,31,48,.70);
}
html[data-theme="light"] ::selection,
body.theme-light ::selection {
  color: #ffffff;
  background: rgba(8,11,16,.86);
}
