:root {
  background: #020813;
  color: #eaf2ff;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  background:
    radial-gradient(circle at 22% 16%, rgba(24, 112, 255, 0.18), transparent 34rem),
    radial-gradient(circle at 78% 84%, rgba(34, 255, 106, 0.07), transparent 28rem),
    linear-gradient(135deg, #020813 0%, #04142a 48%, #01050d 100%);
  margin: 0;
  min-height: 100vh;
}

body::before {
  background:
    linear-gradient(rgba(84, 158, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(84, 158, 255, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 78%);
  pointer-events: none;
  position: fixed;
}

.language-control {
  align-items: center;
  color: #9fb7d6;
  display: inline-flex;
  gap: 8px;
  position: fixed;
  right: 16px;
  top: 16px;
  z-index: 220;
}

.language-control span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.language-control select {
  background: rgba(2, 8, 19, 0.86);
  border: 1px solid rgba(82, 150, 255, 0.42);
  border-radius: 999px;
  color: #eaf2ff;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  min-height: 34px;
  padding: 6px 28px 6px 11px;
}

.language-trigger {
  align-items: center;
  background: rgba(2, 8, 19, 0.72);
  border: 1px solid rgba(65, 145, 255, 0.5);
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  min-height: 40px;
  padding: 0;
  width: 40px;
}

.language-trigger svg {
  fill: currentColor;
  height: 21px;
  width: 21px;
}

.language-trigger [data-language-current] {
  display: none;
}

.language-menu {
  background: rgba(3, 12, 28, 0.98);
  border: 1px solid rgba(82, 150, 255, 0.42);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
  display: none;
  gap: 5px;
  min-width: 150px;
  padding: 7px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 80;
}

.language-control:hover .language-menu,
.language-control.is-open .language-menu {
  display: grid;
}

.language-menu button {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  min-height: 34px;
  padding: 7px 10px;
  text-align: left;
}

.language-menu button:hover,
.language-menu button.active {
  background: rgba(37, 99, 235, 0.42);
  border-color: rgba(125, 211, 252, 0.5);
}

.legal-language {
  margin: 0;
  position: fixed;
  right: 16px;
  top: 16px;
  width: auto;
  z-index: 220;
}

.legal-page {
  margin: 0 auto;
  max-width: 1020px;
  padding: clamp(22px, 5vw, 58px);
  position: relative;
  z-index: 1;
}

.legal-top {
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(8, 25, 49, 0.9), rgba(3, 11, 24, 0.94));
  border: 1px solid rgba(60, 140, 255, 0.38);
  border-radius: 16px;
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.055);
  margin-bottom: 22px;
  overflow: hidden;
  padding: clamp(22px, 4vw, 34px);
  position: relative;
}

.legal-top::before {
  background: linear-gradient(90deg, #34d399, #3b82f6, #7dd3fc);
  content: "";
  height: 3px;
  left: 22px;
  position: absolute;
  right: 22px;
  top: 0;
}

.legal-top a:first-child {
  align-items: center;
  color: #eaf2ff;
  display: inline-flex;
  font-size: 14px;
  font-weight: 950;
  gap: 10px;
  text-decoration: none;
}

.legal-top a:first-child::before {
  background: rgba(2, 8, 19, 0.72) url("/favicon.svg?v=20260508-1135") center / 38px 38px no-repeat;
  border: 1px solid rgba(125, 211, 252, 0.65);
  border-radius: 13px;
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.28);
  content: "";
  display: inline-block;
  height: 48px;
  width: 48px;
}

h1 {
  color: #f4f8ff;
  font-size: clamp(36px, 6vw, 68px);
  letter-spacing: 0;
  line-height: 0.95;
  margin: 24px 0 8px;
}

.updated {
  color: #8294ad;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

section {
  background: rgba(8, 25, 49, 0.62);
  border: 1px solid rgba(60, 140, 255, 0.26);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  margin: 12px 0;
  padding: 18px;
}

h2 {
  color: #f4f8ff;
  font-size: 18px;
  margin: 0 0 8px;
}

p,
li {
  color: #a9bad1;
  font-size: 14px;
  line-height: 1.65;
}

p {
  margin: 0;
}

p + p {
  margin-top: 12px;
}

ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

a {
  color: #7dd3fc;
  font-weight: 900;
}

.legal-footer {
  color: #6f819a;
  font-size: 11px;
  font-weight: 800;
  padding-top: 18px;
  text-align: center;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: center;
  margin: 0 auto 16px;
}

.legal-links a {
  color: #9db5d4;
  font-size: 12px;
  text-decoration: none;
}

.legal-links a:hover {
  color: #eaf2ff;
}

.legal-bottom {
  color: #6f819a;
}

@media (max-width: 640px) {
  .legal-page {
    padding: 16px;
  }

  .legal-top,
  section {
    border-radius: 12px;
  }
}
