:root {
  --bg: #0f1724;
  --surface: #172235;
  --surface-soft: #1d2a40;
  --text: #f3f6ff;
  --muted: #a8b6d0;
  --line: #314462;
  --accent: #ff9a2f;
  --accent-strong: #ffd45c;
  --accent-soft: rgba(255, 154, 47, 0.16);
  --spectrum: linear-gradient(90deg, #ff4f5e 0%, #ff932f 18%, #ffd94d 36%, #71cb46 54%, #4aa2e8 74%, #9a63c8 100%);
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --max-width: 1120px;
  --font-ui: "Trebuchet MS", "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 79, 94, 0.18), transparent 24%),
    radial-gradient(circle at top right, rgba(74, 162, 232, 0.18), transparent 26%),
    radial-gradient(circle at 50% 0%, rgba(113, 203, 70, 0.12), transparent 28%),
    linear-gradient(180deg, #101827 0%, #0d1420 100%);
  color: var(--text);
  font-family: var(--font-ui);
  overflow-x: hidden;
}

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

img {
  display: block;
  width: 100%;
}

.site-header {
  background: rgba(10, 16, 28, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-inner,
.page-shell,
.site-footer__inner {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  flex-shrink: 0;
}

.brand__logo {
  display: block;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: contain;
}

.brand__name {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  background: var(--spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-shell {
  padding: 34px 0 48px;
}

.page-shell > * + * {
  margin-top: 22px;
}

.legal-hero,
.legal-nav,
.legal-content {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(27, 39, 60, 0.98) 0%, rgba(22, 34, 53, 0.98) 100%);
  box-shadow: var(--shadow);
}

.legal-hero {
  padding: 24px 20px 20px;
}

.legal-hero h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  line-height: 1.05;
}

.legal-hero p {
  margin: 12px 0 0;
  max-width: 70ch;
  color: var(--muted);
  line-height: 1.7;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 16px;
}

.legal-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface-soft);
  color: var(--text);
  font-weight: 700;
}

.legal-nav__link.is-current {
  border-color: rgba(74, 162, 232, 0.35);
  background: linear-gradient(180deg, rgba(255, 79, 94, 0.16) 0%, rgba(154, 99, 200, 0.12) 100%);
  color: #ffd45c;
}

.legal-content {
  padding: 24px 20px;
  color: var(--text);
  line-height: 1.75;
}

.legal-content > *:first-child {
  margin-top: 0;
}

.legal-content h2 {
  margin: 28px 0 12px;
  font-size: 1.3rem;
}

.legal-content h3 {
  margin: 22px 0 10px;
  font-size: 1.05rem;
}

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

.legal-content ul,
.legal-content ol {
  padding-left: 22px;
}

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

.legal-content a {
  color: #9ad2ff;
  text-decoration: underline;
}

.legal-callout {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(74, 162, 232, 0.28);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 79, 94, 0.08) 0%, rgba(154, 99, 200, 0.08) 100%),
    var(--surface-soft);
}

.legal-callout > *:first-child {
  margin-top: 0;
}

.legal-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.legal-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 107, 133, 0.34);
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, #ff6b85 0%, #e93b64 52%, #c91f4f 100%);
  color: #fff7fb;
  font-weight: 800;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
  box-shadow: 0 12px 24px rgba(201, 31, 79, 0.28);
}

.legal-cta--secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(10, 16, 28, 0.88);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 26px;
}

.site-footer__left,
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer__links a:hover,
.site-footer__left a:hover,
.site-footer__links a:focus-visible,
.site-footer__left a:focus-visible {
  color: var(--text);
}

@media (max-width: 720px) {
  .header-inner,
  .page-shell,
  .site-footer__inner {
    width: min(calc(100% - 20px), var(--max-width));
  }

  .page-shell {
    padding-top: 24px;
  }

  .legal-hero,
  .legal-content {
    padding: 20px 16px;
  }

  .legal-nav {
    padding: 12px;
  }

  .legal-nav__link {
    flex: 1 1 100%;
    justify-content: center;
  }

  .legal-hero p,
  .legal-content {
    font-size: 1rem;
    line-height: 1.7;
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
