:root {
  color-scheme: light;
  --legal-bg: #f4efe7;
  --legal-panel: rgba(255, 255, 255, 0.92);
  --legal-panel-strong: rgba(255, 252, 247, 0.98);
  --legal-line: rgba(100, 81, 63, 0.14);
  --legal-text: #1f2937;
  --legal-muted: #5f6674;
  --legal-accent: #b85c30;
  --legal-accent-strong: #8f4725;
  --legal-shadow: 0 22px 60px rgba(44, 35, 25, 0.08);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --legal-bg: #121722;
  --legal-panel: rgba(19, 24, 35, 0.9);
  --legal-panel-strong: rgba(25, 32, 45, 0.96);
  --legal-line: rgba(255, 255, 255, 0.12);
  --legal-text: #ece7df;
  --legal-muted: #b5ad9f;
  --legal-accent: #ffb27d;
  --legal-accent-strong: #ffd1ac;
  --legal-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

.site-legal-footer {
  padding: 12px 24px 22px;
}

.site-legal-footer__inner {
  width: fit-content;
  max-width: min(1180px, 100%);
  margin: 0 auto;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--legal-line) 78%, rgba(224, 206, 188, 0.92));
  border-radius: 999px;
  padding: 10px 18px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--legal-panel-strong) 90%, white 10%), color-mix(in srgb, var(--legal-panel) 92%, #fff4ea 8%));
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--legal-panel-strong) 82%, white 18%),
    0 10px 22px rgba(77, 54, 34, 0.05);
  color: var(--legal-muted);
  font: 500 0.84rem/1.45 "Avenir Next", "Segoe UI", sans-serif;
  text-align: center;
}

.site-legal-footer__links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.site-legal-footer__links::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--legal-accent) 38%, transparent);
}

.site-legal-footer__links a {
  color: var(--legal-accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 180ms ease, opacity 180ms ease;
}

.site-legal-footer__links a:hover,
.site-legal-footer__links a:focus-visible {
  color: var(--legal-accent-strong);
  text-decoration: underline;
}

html[data-theme="dark"] .site-legal-footer__inner {
  border-color: rgba(134, 150, 180, 0.18);
  background: linear-gradient(180deg, rgba(28, 35, 48, 0.94), rgba(18, 24, 36, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 34px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .site-legal-footer__links::before {
  background: rgba(255, 178, 125, 0.42);
}

.legal-page {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(211, 111, 61, 0.12), transparent 32%),
    radial-gradient(circle at bottom right, rgba(15, 118, 110, 0.12), transparent 30%),
    var(--legal-bg);
  color: var(--legal-text);
  font: 16px/1.7 "Avenir Next", "Segoe UI", sans-serif;
}

.legal-page__shell {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.legal-page__topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.legal-page__home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--legal-accent);
  text-decoration: none;
  font-weight: 700;
}

.legal-page__home:hover,
.legal-page__home:focus-visible {
  color: var(--legal-accent-strong);
}

.legal-page__switcher {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
}

.legal-page__switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--legal-line);
  border-radius: 999px;
  background: var(--legal-panel);
  color: var(--legal-text);
  text-decoration: none;
  font-weight: 600;
}

.legal-page__switcher a[aria-current="page"] {
  border-color: rgba(184, 92, 48, 0.28);
  background: rgba(184, 92, 48, 0.12);
  color: var(--legal-accent-strong);
}

.legal-page__hero,
.legal-page__section {
  border: 1px solid var(--legal-line);
  border-radius: 28px;
  background: var(--legal-panel);
  box-shadow: var(--legal-shadow);
}

.legal-page__hero {
  padding: 34px 34px 30px;
  margin-bottom: 18px;
}

.legal-page__eyebrow {
  margin: 0 0 10px;
  color: var(--legal-accent-strong);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-page__title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.legal-page__summary {
  margin: 16px 0 0;
  max-width: 62ch;
  color: var(--legal-muted);
  font-size: 1rem;
}

.legal-page__meta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--legal-muted);
  font-size: 0.93rem;
}

.legal-page__content {
  display: grid;
  gap: 16px;
}

.legal-page__section {
  padding: 28px 30px;
}

.legal-page__section h2 {
  margin: 0 0 12px;
  font-size: 1.24rem;
  line-height: 1.2;
}

.legal-page__section p,
.legal-page__section li {
  color: var(--legal-muted);
}

.legal-page__section p:last-child,
.legal-page__section ul:last-child {
  margin-bottom: 0;
}

.legal-page__section ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.legal-page__section a {
  color: var(--legal-accent);
}

.legal-page__section a:hover,
.legal-page__section a:focus-visible {
  color: var(--legal-accent-strong);
}

.legal-page__callout {
  border: 1px solid var(--legal-line);
  border-radius: 20px;
  padding: 16px 18px;
  background: var(--legal-panel-strong);
}

@media (max-width: 720px) {
  .site-legal-footer {
    padding: 10px 16px 18px;
  }

  .site-legal-footer__inner {
    width: min(100%, calc(100vw - 32px));
    border-radius: 22px;
    padding: 10px 14px;
    gap: 6px 10px;
    font-size: 0.78rem;
  }

  .site-legal-footer__links::before {
    display: none;
  }

  .legal-page__shell {
    width: min(100%, calc(100% - 20px));
    padding: 18px 0 36px;
  }

  .legal-page__hero,
  .legal-page__section {
    border-radius: 22px;
  }

  .legal-page__hero {
    padding: 26px 20px 22px;
  }

  .legal-page__section {
    padding: 22px 20px;
  }
}
