:root {
  color-scheme: dark;
  --legal-background: #202020;
  --legal-surface: #232323;
  --legal-line: #313131;
  --legal-text: #f4f4f2;
  --legal-muted: #a8a8a4;
  --legal-accent: #e94b29;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--legal-background);
  font-family: "Figtree", sans-serif;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--legal-text);
  background:
    radial-gradient(circle at 76% 4%, rgba(233, 75, 41, 0.08), transparent 28rem),
    var(--legal-background);
}

a {
  color: inherit;
}

.legal-shell {
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 52px;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.legal-brand img {
  width: 26px;
  height: 35px;
}

.legal-brand-copy {
  display: grid;
  gap: 2px;
}

.legal-brand-copy strong {
  font-size: 0.87rem;
  font-weight: 650;
}

.legal-brand-copy span {
  color: var(--legal-muted);
  font-size: 0.7rem;
}

.legal-header nav,
.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.legal-header nav a,
.legal-footer a {
  color: var(--legal-muted);
  font-size: 0.75rem;
  text-decoration: none;
}

.legal-header nav a:hover,
.legal-header nav a:focus-visible,
.legal-footer a:hover,
.legal-footer a:focus-visible {
  color: var(--legal-text);
}

.legal-card {
  overflow: hidden;
  border: 1px solid var(--legal-line);
  border-radius: 18px;
  background: var(--legal-surface);
}

.legal-hero {
  display: grid;
  gap: 13px;
  padding: clamp(26px, 5vw, 54px);
  border-bottom: 1px solid var(--legal-line);
}

.legal-eyebrow {
  color: var(--legal-accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2rem, 6vw, 4.3rem);
  font-weight: 520;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.legal-hero p {
  max-width: 700px;
  margin: 0;
  color: var(--legal-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.legal-updated {
  margin-top: 8px;
  font-size: 0.7rem;
}

.legal-content {
  display: grid;
  gap: 0;
  padding: 0 clamp(26px, 5vw, 54px);
}

.legal-section {
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 70px);
  padding: 32px 0;
  border-bottom: 1px solid var(--legal-line);
}

.legal-section:last-child {
  border-bottom: 0;
}

.legal-section h2 {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 650;
}

.legal-copy {
  display: grid;
  gap: 14px;
  min-width: 0;
  color: var(--legal-muted);
  font-size: 0.83rem;
  line-height: 1.65;
}

.legal-copy p,
.legal-copy ul {
  margin: 0;
}

.legal-copy ul {
  display: grid;
  gap: 8px;
  padding-left: 18px;
}

.legal-copy strong {
  color: var(--legal-text);
  font-weight: 600;
}

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

.legal-note {
  padding: 14px 16px;
  border-left: 2px solid var(--legal-accent);
  background: #292929;
}

.legal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 2px 0;
  color: var(--legal-muted);
  font-size: 0.72rem;
}

@media (max-width: 660px) {
  .legal-shell {
    width: min(100% - 24px, 960px);
    padding-top: 18px;
  }

  .legal-header,
  .legal-footer {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .legal-section {
    grid-template-columns: 1fr;
    gap: 13px;
  }
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --legal-background: #f2f2f0;
    --legal-surface: #ffffff;
    --legal-line: #dfdfdc;
    --legal-text: #171715;
    --legal-muted: #666660;
  }

  .legal-note {
    background: #f5f5f2;
  }
}
