:root {
  --bg: #03030a;
  --surface: #0a0a18;
  --card: #12122a;
  --cyan: #00e5ff;
  --purple: #9d7aff;
  --text: #eef0ff;
  --muted: #8b92b8;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Heebo", "Manrope", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
}

html[lang="en"] body { font-family: "Manrope", "Heebo", system-ui, sans-serif; }

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  z-index: 0;
}
.glow-1 { width: 420px; height: 420px; background: rgba(0, 229, 255, 0.12); top: -120px; inset-inline-start: -80px; }
.glow-2 { width: 360px; height: 360px; background: rgba(157, 122, 255, 0.14); bottom: 10%; inset-inline-end: -100px; }

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 22px 48px;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.logo img { border-radius: 10px; }
.logo span {
  font-size: 1.15rem;
  font-weight: 800;
  background: linear-gradient(120deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.legal-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.legal-nav a:hover,
.legal-nav a[aria-current="page"] { color: var(--cyan); }

.legal-doc h1 {
  font-size: clamp(1.75rem, 5vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(120deg, var(--text), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 28px;
}

.legal-doc section {
  margin-bottom: 28px;
  padding: 22px 20px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-doc h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--cyan);
}

.legal-doc h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 16px 0 8px;
  color: var(--text);
}

.legal-doc p { margin-bottom: 12px; color: var(--text); }
.legal-doc p:last-child { margin-bottom: 0; }
.legal-doc ul { margin: 8px 0 12px; padding-inline-start: 1.25rem; }
.legal-doc li { margin-bottom: 6px; color: var(--muted); }
.legal-doc a { color: var(--cyan); text-decoration: none; font-weight: 600; }
.legal-doc a:hover { text-decoration: underline; }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 12px 0;
}
.legal-table th,
.legal-table td {
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 12px;
  text-align: start;
}
.legal-table th {
  background: rgba(0, 229, 255, 0.08);
  color: var(--text);
  font-weight: 600;
}
.legal-table td { color: var(--muted); }

.legal-en {
  border-color: rgba(157, 122, 255, 0.25);
}

.legal-footer {
  text-align: center;
  padding: 32px 0 16px;
  color: var(--muted);
  font-size: 0.84rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 16px;
}
.legal-footer p + p { margin-top: 8px; }
.legal-footer a { color: var(--cyan); text-decoration: none; font-weight: 600; }
