:root {
  color-scheme: dark;
  --bg: #07070d;
  --panel: #11121b;
  --panel-soft: #0c0d14;
  --text: #f4f5fb;
  --muted: #b7bbca;
  --line: rgba(255,255,255,.1);
  --accent: #db64ff;
  --accent-2: #ff4166;
  --max: 980px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 5%, rgba(83,111,255,.15), transparent 30%),
    radial-gradient(circle at 90% 12%, rgba(255,54,103,.12), transparent 26%),
    var(--bg);
}
a { color: #dca7ff; }
a:hover { color: #fff; }
button, a { -webkit-tap-highlight-color: transparent; }
.legal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(7,7,13,.88);
  backdrop-filter: blur(16px);
}
.legal-nav {
  width: min(calc(100% - 32px), var(--max));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.legal-brand { color: #fff; text-decoration: none; font-weight: 900; letter-spacing: .08em; }
.legal-actions { display: flex; align-items: center; gap: 12px; }
.back-link { text-decoration: none; color: var(--muted); }
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0d0e16;
}
.language-switch button {
  border: 0;
  color: #777d91;
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.language-switch button.is-active { color: #fff; }
.legal-main { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; padding: 72px 0 110px; }
.legal-hero { margin-bottom: 36px; }
.eyebrow { margin: 0 0 12px; color: #aebcff; text-transform: uppercase; letter-spacing: .17em; font-size: .76rem; font-weight: 900; }
h1, h2, h3 { font-family: "Trebuchet MS", "Segoe UI", sans-serif; letter-spacing: -.035em; }
h1 { margin: 0; font-size: clamp(2.8rem, 8vw, 5.8rem); line-height: .95; }
.lead { max-width: 720px; color: var(--muted); line-height: 1.75; font-size: 1.05rem; }
.legal-panel {
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(18,19,30,.96), rgba(8,8,14,.98));
  box-shadow: 0 30px 80px rgba(0,0,0,.32);
}
.legal-panel + .legal-panel { margin-top: 22px; }
.legal-panel h2 { margin: 38px 0 10px; font-size: clamp(1.45rem, 3vw, 2.3rem); }
.legal-panel h2:first-child { margin-top: 0; }
.legal-panel h3 { margin: 28px 0 8px; font-size: 1.2rem; }
.legal-panel p, .legal-panel li { color: var(--muted); line-height: 1.75; }
.legal-panel strong { color: var(--text); }
.legal-panel address { color: var(--muted); font-style: normal; line-height: 1.8; }
.legal-note { padding: 16px 18px; border-left: 3px solid var(--accent); border-radius: 0 14px 14px 0; background: rgba(218,100,255,.07); }
[data-legal-language][hidden] { display: none !important; }
.legal-footer { border-top: 1px solid var(--line); padding: 28px 0; color: #858a9b; }
.legal-footer-inner { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
:focus-visible { outline: 3px solid rgba(219,100,255,.8); outline-offset: 4px; }
@media (max-width: 620px) {
  .legal-nav { min-height: 66px; }
  .back-link span { display: none; }
  .legal-main { padding-top: 48px; }
  .legal-panel { border-radius: 22px; }
}
