:root {
  --white-color: #ffffff;
  --dark-color: #252525;
  --primary-color: #5575a1;
  --secondary-color: #4a6ef5;
  --light-pink-color: #faf4f5;
  --medium-gray-color: #cccccc;

  --font-size-s: 0.9rem;
  --font-size-n: 1rem;
  --font-size-m: 1.12rem;
  --font-size-l: 1.15rem;
  --font-size-xl: 2rem;
  --font-size-xxl: 2.3rem;

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --border-radius-s: 8px;
  --border-radius-m: 30px;
  --border-radius-circle: 50%;

  --site-max-width: 1300px;

  --body-bg: #07111f;
  --surface-1: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(255, 255, 255, 0.04);
  --border-glass: rgba(255, 255, 255, 0.15);
  --text-main: rgba(255,255,255,0.95);
  --text-soft: rgba(255,255,255,0.72);
  --text-fade: rgba(255,255,255,0.55);
  --shadow-lg: 0 25px 80px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.22);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(85,117,161,0.30), transparent 35%),
    radial-gradient(circle at top right, rgba(74,110,245,0.18), transparent 30%),
    linear-gradient(180deg, #04101d 0%, #07111f 45%, #091827 100%);
  color: var(--text-main);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  padding-left: 20px;
}

li {
  margin-bottom: 10px;
  color: var(--text-soft);
  line-height: 1.7;
}

.container {
  width: min(100% - 32px, var(--site-max-width));
  margin-inline: auto;
}

.section-space {
  padding: 90px 0;
}

.glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-md);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9db7ff;
}

.legal-page {
  min-height: 100vh;
  position: relative;
}

.legal-hero {
  min-height: 72vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 90px 0 70px;
}

.legal-hero-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
}

.legal-title {
  font-size: clamp(2.6rem, 6vw, 6.2rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  max-width: 980px;
}

.legal-subtitle {
  margin-top: 24px;
  color: var(--text-soft);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.7;
  max-width: 820px;
}

.legal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.legal-badges span {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--white-color);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  font-weight: 600;
  font-size: 0.92rem;
}

.hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.7;
}

.orb-1 {
  width: 460px;
  height: 460px;
  left: -120px;
  top: 80px;
  background: radial-gradient(circle, rgba(85,117,161,0.34), transparent 70%);
  animation: floatOrb 8s ease-in-out infinite;
}

.orb-2 {
  width: 380px;
  height: 380px;
  right: -100px;
  top: 120px;
  background: radial-gradient(circle, rgba(74,110,245,0.28), transparent 70%);
  animation: floatOrb 10s ease-in-out infinite reverse;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.4), transparent 85%);
  opacity: 0.18;
}

.legal-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  align-items: start;
}

.legal-sidebar {
  position: sticky;
  top: 28px;
  border-radius: 28px;
  padding: 24px;
  z-index: 5;
}

.legal-sidebar h3 {
  font-size: 1.1rem;
  margin-bottom: 18px;
}

.legal-sidebar a {
  display: block;
  color: var(--text-soft);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: 0.25s ease;
}

.legal-sidebar a:hover,
.legal-sidebar a.active {
  color: #a8c0ff;
  padding-left: 8px;
}

.legal-docs {
  display: grid;
  gap: 24px;
}

.legal-card {
  border-radius: 30px;
  padding: clamp(24px, 4vw, 44px);
  scroll-margin-top: 30px;
}

.doc-label {
  display: inline-block;
  margin-bottom: 16px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(74,110,245,0.18);
  border: 1px solid rgba(168,192,255,0.22);
  color: #b7cbff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-card h2 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
}

.legal-card h3 {
  font-size: 1.25rem;
  margin: 28px 0 12px;
  color: var(--white-color);
}

.legal-card p {
  color: var(--text-soft);
  line-height: 1.85;
  margin-bottom: 14px;
}

.legal-card strong {
  color: var(--white-color);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 22px 0;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
}

table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  background: rgba(255,255,255,0.04);
}

th,
td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  color: var(--text-soft);
}

th {
  color: var(--white-color);
  font-weight: 700;
  background: rgba(255,255,255,0.07);
}

tr:last-child td {
  border-bottom: none;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: white;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  box-shadow: 0 10px 25px rgba(74,110,245,0.45);
  font-size: 1.3rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: 0.25s ease;
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.cursor-glow {
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(74,110,245,0.12), transparent 70%);
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: transform 0.06s linear;
}

.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatOrb {
  0%, 100% {
    transform: translateY(0px) translateX(0px);
  }

  50% {
    transform: translateY(-24px) translateX(18px);
  }
}

.legal-lang-switch {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 999;
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(5, 15, 28, 0.65);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(14px);
}

.lang-btn {
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
  color: var(--white-color);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 700;
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-bg-orb,
  .reveal {
    animation: none;
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1000px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-sidebar {
    position: relative;
    top: auto;
  }
}

@media (max-width: 700px) {
  .legal-hero {
    min-height: auto;
    padding: 80px 0 50px;
  }

  .section-space {
    padding: 60px 0;
  }

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

  .cursor-glow {
    display: none;
  }

  .legal-lang-switch {
    top: 14px;
    right: 14px;
  }
}
