:root {
  --navy: #07152b;
  --navy-light: #0d2040;
  --navy-card: #0f2645;
  --gold: #d4a84f;
  --gold-light: #e8c070;
  --gold-dark: #b8922a;
  --blue: #1b5cb8;
  --blue-light: #2470e0;
  --white: #ffffff;
  --white-70: rgba(255,255,255,0.7);
  --border: rgba(255,255,255,0.08);
  --text-body: rgba(255,255,255,0.82);
  --text-muted: rgba(255,255,255,0.46);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  background:
    radial-gradient(ellipse 90% 55% at 50% -8%, rgba(36,112,224,0.22), transparent),
    radial-gradient(ellipse 45% 35% at 85% 85%, rgba(27,92,184,0.09), transparent),
    linear-gradient(180deg, #07152b 0%, #060f22 100%);
  color: var(--white);
  min-height: 100vh;
  line-height: 1.8;
  padding: 64px 24px 96px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.container {
  max-width: 820px;
  margin: 0 auto;
}

/* ── Topbar ─────────────────────────────────────────── */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 52px;
  gap: 20px;
  flex-wrap: wrap;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: -0.01em;
}

/* ── Language switcher ──────────────────────────────── */

.language-switcher {
  display: flex;
  gap: 8px;
}

.language-switcher button {
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.11);
  color: rgba(255,255,255,0.72);
  padding: 8px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.03em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.language-switcher button:hover,
.language-switcher button.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #07152b;
}

.language-switcher button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(212,168,79,0.28);
}

/* ── Legal card ─────────────────────────────────────── */

.legal-card {
  background: rgba(13, 32, 62, 0.68);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 32px;
  padding: 68px 76px;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 4px 8px rgba(0,0,0,0.12),
    0 24px 64px rgba(0,0,0,0.52),
    0 0 130px rgba(27,92,184,0.13),
    inset 0 1px 0 rgba(255,255,255,0.07);
}

/* ── Typography ─────────────────────────────────────── */

h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.13;
  margin-bottom: 14px;
  color: var(--gold-light);
}

.updated {
  color: var(--text-muted);
  margin-bottom: 48px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

h2 {
  margin-top: 60px;
  margin-bottom: 20px;
  color: var(--gold-light);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

h2::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-dark), transparent);
  margin-bottom: 16px;
  border-radius: 2px;
  opacity: 0.9;
}

p,
li {
  color: var(--text-body);
  margin-bottom: 18px;
  font-size: 15px;
  line-height: 1.88;
}

ul {
  padding-left: 22px;
}

li {
  padding-left: 5px;
}

li::marker {
  color: var(--gold-dark);
  font-size: 0.85em;
}

/* ── Footer ─────────────────────────────────────────── */

.footer {
  margin-top: 60px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}

.footer a {
  color: var(--gold-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer a:hover {
  color: #fff;
  opacity: 0.9;
}

/* ── Language visibility ────────────────────────────── */

.lang-section {
  display: none;
}

.lang-section.active {
  display: block;
}

/* ── Responsive ─────────────────────────────────────── */

@media (max-width: 768px) {
  body {
    padding: 40px 16px 64px;
  }

  .legal-card {
    padding: 36px 28px;
    border-radius: 24px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 36px;
  }

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 18px;
    margin-top: 44px;
  }

  p,
  li {
    font-size: 14.5px;
  }

  .legal-nav {
    gap: 8px 14px;
  }

  .legal-nav a {
    padding: 4px 10px;
  }

  .legal-nav a + a::before {
    display: none;
  }
}

/* ── Legal navigation ───────────────────────────────── */

.legal-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 0;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.legal-nav a {
  color: rgba(255,255,255,0.38);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.025em;
  padding: 4px 22px;
  position: relative;
  transition: color 0.22s ease;
  white-space: nowrap;
}

.legal-nav a + a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 11px;
  background: rgba(255,255,255,0.14);
}

.legal-nav a:hover {
  color: var(--gold-light);
}

/* ── Scrollbar ──────────────────────────────────────── */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #07152b;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    #d4a84f,
    #8c7020
  );
  border-radius: 999px;
}
