:root {
  --legal-bg: #050810;
  --legal-bg-elevated: rgba(12, 18, 36, 0.92);
  --legal-surface: rgba(255, 255, 255, 0.04);
  --legal-border: rgba(148, 163, 184, 0.16);
  --legal-border-strong: rgba(167, 139, 250, 0.28);
  --legal-text: #e8edf5;
  --legal-muted: #94a3b8;
  --legal-accent: #c4b5fd;
  --legal-accent-soft: rgba(139, 92, 246, 0.18);
  --legal-link: #93c5fd;
  --legal-link-hover: #bfdbfe;
  --legal-radius: 18px;
  --legal-max: 46rem;
  --legal-header-h: 4.25rem;
  --legal-font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  font-family: var(--legal-font);
  line-height: 1.65;
  color: var(--legal-text);
  background: var(--legal-bg);
  background-image:
    radial-gradient(ellipse 120% 70% at 50% -25%, rgba(109, 40, 217, 0.28), transparent 58%),
    radial-gradient(ellipse 55% 40% at 100% 20%, rgba(14, 165, 233, 0.08), transparent 52%),
    linear-gradient(180deg, #030508 0%, var(--legal-bg) 42%, #030508 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    radial-gradient(1px 1px at 10% 14%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 28% 38%, rgba(255, 255, 255, 0.28), transparent),
    radial-gradient(1px 1px at 62% 18%, rgba(255, 255, 255, 0.32), transparent),
    radial-gradient(1px 1px at 84% 62%, rgba(255, 255, 255, 0.24), transparent);
}

a {
  color: var(--legal-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--legal-link-hover);
}

.legal-page {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--legal-border);
  background: rgba(5, 8, 16, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.legal-header__inner {
  max-width: calc(var(--legal-max) + 3rem);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  min-height: var(--legal-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f8fafc;
  text-decoration: none;
}

.legal-brand__mark {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #a78bfa, #38bdf8);
  box-shadow: 0 0 14px rgba(167, 139, 250, 0.65);
}

.legal-brand:hover {
  color: var(--legal-accent);
}

.legal-header__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.legal-home {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--legal-muted);
  text-decoration: none;
}

.legal-home__icon {
  font-size: 1rem;
  line-height: 1;
  color: var(--legal-accent);
}

.legal-home:hover {
  color: var(--legal-accent);
}

.legal-home:hover .legal-home__text {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-lang {
  display: inline-flex;
  padding: 0.2rem;
  border-radius: 999px;
  border: 1px solid var(--legal-border);
  background: rgba(255, 255, 255, 0.03);
}

.legal-lang__link {
  min-width: 2.65rem;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  text-decoration: none;
  color: var(--legal-muted);
}

.legal-lang__link:hover {
  color: var(--legal-text);
  text-decoration: none;
}

.legal-lang__link--active {
  color: #ede9fe;
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.55), rgba(79, 70, 229, 0.45));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.legal-main {
  flex: 1 1 auto;
  padding: 2rem 1.25rem 3.5rem;
}

.legal-container {
  max-width: var(--legal-max);
  margin: 0 auto;
}

.legal-hero {
  margin-bottom: 1.75rem;
}

.legal-hero__eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--legal-accent);
}

.legal-hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 5vw, 2.45rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #f8fafc;
}

.legal-hero__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  border: 1px solid var(--legal-border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.82rem;
  color: var(--legal-muted);
}

.legal-content {
  padding: 1.35rem 1.35rem 1.1rem;
  border-radius: var(--legal-radius);
  border: 1px solid var(--legal-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    var(--legal-bg-elevated);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.legal-content .privacy-section,
.legal-content section {
  margin: 0 0 1.35rem;
  padding: 0 0 1.35rem;
  border-bottom: 1px solid var(--legal-border);
}

.legal-content .privacy-section:last-of-type,
.legal-content section:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.legal-content h2 {
  position: relative;
  margin: 0 0 0.75rem;
  padding-left: 0.85rem;
  font-size: 1.08rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: #f1f5f9;
}

.legal-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #a78bfa, #6366f1);
}

.legal-content p {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  color: rgba(226, 232, 240, 0.94);
}

.legal-content p:last-child {
  margin-bottom: 0;
}

.legal-content ul {
  margin: 0 0 0.85rem;
  padding-left: 1.15rem;
}

.legal-content li {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: rgba(226, 232, 240, 0.92);
}

.legal-content li:last-child {
  margin-bottom: 0;
}

.legal-content strong {
  color: #f8fafc;
  font-weight: 650;
}

.legal-content code {
  padding: 0.12rem 0.38rem;
  border-radius: 6px;
  border: 1px solid var(--legal-border);
  background: rgba(2, 6, 18, 0.55);
  font-size: 0.86em;
  color: #cbd5e1;
}

.legal-footer {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--legal-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  font-size: 0.82rem;
  color: var(--legal-muted);
}

.legal-footer a {
  color: var(--legal-accent);
  text-decoration: none;
  font-weight: 600;
}

.legal-footer a:hover {
  text-decoration: underline;
}

@media (min-width: 640px) {
  .legal-content {
    padding: 1.75rem 1.85rem 1.45rem;
  }

  .legal-main {
    padding-top: 2.5rem;
  }
}

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