:root {
  color-scheme: light;
  --legal-ink: #071834;
  --legal-muted: rgba(7, 24, 52, 0.66);
  --legal-line: rgba(7, 24, 52, 0.13);
  --legal-canvas: #f7f2ea;
  --legal-paper: #fffdf9;
}
* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--legal-canvas);
  color: var(--legal-ink);
  font-family: "myriad-pro", "Myriad Pro", system-ui, sans-serif;
  font-synthesis: none;
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.92), transparent 34rem),
    var(--legal-canvas);
}

a {
  color: inherit;
}

.legal-page-header,
.legal-page-footer,
.legal-page {
  width: min(860px, calc(100% - 32px));
  margin-inline: auto;
}

.legal-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 4px 22px;
}

.legal-page-wordmark {
  display: block;
  width: clamp(142px, 21vw, 188px);
  line-height: 0;
}

.legal-page-wordmark img {
  display: block;
  width: 100%;
  height: auto;
}

.legal-page-back,
.legal-page-links a {
  padding: 9px 14px;
  border: 1px solid var(--legal-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  font-size: 0.82rem;
  text-decoration: none;
}

.legal-page-back:hover,
.legal-page-back:focus-visible,
.legal-page-links a:hover,
.legal-page-links a:focus-visible {
  border-color: var(--legal-ink);
  background: var(--legal-ink);
  color: white;
}

.legal-page {
  padding: clamp(30px, 6vw, 68px);
  border: 1px solid var(--legal-line);
  border-radius: clamp(28px, 5vw, 48px);
  background: var(--legal-paper);
  box-shadow: 0 28px 90px rgba(7, 24, 52, 0.08);
}

.legal-kicker {
  margin: 0;
  color: var(--legal-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.legal-page h1 {
  margin: 8px 0 10px;
  font-family: "ivypresto-display", Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.legal-subtitle {
  margin: 0;
  color: var(--legal-muted);
  font-size: 1rem;
}

.legal-section {
  padding-top: 28px;
  border-top: 1px solid var(--legal-line);
  margin-top: 28px;
}

.legal-section h2 {
  margin: 0 0 10px;
  font-family: "ivypresto-display", Georgia, serif;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  font-weight: 400;
}

.legal-section p,
.legal-section li {
  color: rgba(7, 24, 52, 0.82);
  font-size: 0.98rem;
  line-height: 1.66;
}

.legal-section p {
  margin: 0 0 12px;
}

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

.legal-section ul {
  margin: 0;
  padding-left: 1.35rem;
}

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

.legal-page-links {
  display: flex;
  gap: 8px;
}

@media (max-width: 620px) {
  .legal-page-header,
  .legal-page-footer {
    align-items: flex-start;
  }

  .legal-page-header {
    padding-top: 20px;
  }

  .legal-page {
    width: calc(100% - 20px);
    padding: 30px 22px;
    border-radius: 28px;
  }

  .legal-page-footer {
    flex-direction: column;
  }
}
