:root {
  --legal-bg: #080a0f;
  --legal-surface: #11141b;
  --legal-text: #f8f7f3;
  --legal-muted: #9ba2ae;
  --legal-line: rgba(255, 255, 255, 0.1);
  --legal-gold: #efbd55;
  --legal-red: #e5435b;
  --legal-cyan: #49b7df;
  color-scheme: dark;
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
}

html[data-theme="light"] {
  --legal-bg: #f4f6f8;
  --legal-surface: #ffffff;
  --legal-text: #16191f;
  --legal-muted: #626a76;
  --legal-line: rgba(22, 25, 31, 0.12);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 84% 3%, rgba(73, 183, 223, 0.1), transparent 28%),
    radial-gradient(circle at 14% 0%, rgba(229, 67, 91, 0.08), transparent 24%),
    var(--legal-bg);
  color: var(--legal-text);
  letter-spacing: 0;
}

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

.legal-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--legal-line);
  background: color-mix(in srgb, var(--legal-bg) 88%, transparent);
  backdrop-filter: blur(18px);
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.legal-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.legal-header nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legal-header nav a {
  padding: 11px 16px;
  border-radius: 12px;
  color: var(--legal-muted);
  font-size: 14px;
  font-weight: 700;
}

.legal-header nav a:hover,
.legal-header nav a[aria-current="page"] {
  background: var(--legal-surface);
  color: var(--legal-text);
}

.legal-header .support-link {
  border: 1px solid var(--legal-line);
  color: var(--legal-text);
}

.legal-shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
  padding: 74px 0 100px;
}

.legal-hero {
  max-width: 900px;
  padding-bottom: 54px;
  border-bottom: 1px solid var(--legal-line);
}

.legal-eyebrow {
  display: block;
  margin-bottom: 16px;
  color: var(--legal-gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.legal-hero h1 {
  max-width: 860px;
  margin: 0;
  font-family: "Geologica", "Segoe UI", Arial, sans-serif;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.04;
}

.legal-lead {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--legal-muted);
  font-size: 19px;
  line-height: 1.65;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 30px;
  color: var(--legal-muted);
  font-size: 14px;
}

.legal-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legal-meta span::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--legal-gold);
  content: "";
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 760px);
  gap: 80px;
  padding-top: 54px;
}

.legal-toc {
  position: sticky;
  top: 108px;
  align-self: start;
}

.legal-toc strong {
  display: block;
  margin-bottom: 15px;
  font-size: 13px;
  text-transform: uppercase;
}

.legal-toc a {
  display: block;
  padding: 8px 0;
  color: var(--legal-muted);
  font-size: 14px;
  line-height: 1.4;
}

.legal-toc a:hover {
  color: var(--legal-text);
}

.legal-content section {
  padding: 0 0 42px;
}

.legal-content section + section {
  padding-top: 42px;
  border-top: 1px solid var(--legal-line);
}

.legal-content h2 {
  margin: 0 0 18px;
  font-family: "Geologica", "Segoe UI", Arial, sans-serif;
  font-size: 27px;
  line-height: 1.2;
}

.legal-content p,
.legal-content li {
  color: var(--legal-muted);
  font-size: 16px;
  line-height: 1.75;
}

.legal-content p {
  margin: 0 0 14px;
}

.legal-content ul {
  margin: 14px 0 0;
  padding-left: 21px;
}

.legal-content li + li {
  margin-top: 8px;
}

.legal-content a {
  color: var(--legal-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-note {
  margin-top: 8px;
  padding: 20px 22px;
  border-left: 3px solid var(--legal-gold);
  border-radius: 0 14px 14px 0;
  background: color-mix(in srgb, var(--legal-gold) 9%, transparent);
}

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

.legal-contact {
  margin-top: 36px;
  padding: 28px;
  border-radius: 18px;
  background: var(--legal-surface);
}

.legal-contact strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Geologica", "Segoe UI", Arial, sans-serif;
  font-size: 22px;
}

.legal-contact p {
  margin-bottom: 18px;
}

.legal-contact a {
  display: inline-flex;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--legal-red);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.legal-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
  padding: 28px 0 42px;
  border-top: 1px solid var(--legal-line);
  color: var(--legal-muted);
  font-size: 13px;
}

.legal-footer div {
  display: flex;
  gap: 20px;
}

@media (max-width: 820px) {
  .legal-header {
    min-height: 68px;
    padding-inline: 16px;
  }

  .legal-header nav a:not(.support-link) {
    display: none;
  }

  .legal-shell {
    width: min(100% - 32px, 680px);
    padding-top: 48px;
  }

  .legal-hero {
    padding-bottom: 40px;
  }

  .legal-hero h1 {
    font-size: 40px;
  }

  .legal-lead {
    font-size: 17px;
  }

  .legal-layout {
    display: block;
    padding-top: 36px;
  }

  .legal-toc {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
    margin-bottom: 42px;
    padding: 18px 0;
    border-block: 1px solid var(--legal-line);
  }

  .legal-toc strong {
    grid-column: 1 / -1;
  }

  .legal-content h2 {
    font-size: 24px;
  }

  .legal-footer {
    display: block;
    width: calc(100% - 32px);
  }

  .legal-footer div {
    margin-top: 14px;
  }
}

@media (max-width: 440px) {
  .legal-brand span {
    display: none;
  }

  .legal-hero h1 {
    font-size: 29px;
  }

  .legal-toc {
    grid-template-columns: 1fr;
  }

  .legal-contact {
    padding: 22px;
  }
}
