.legal-page {
  background: var(--white);
  color: var(--marketing-text);
}

.legal-page__main {
  padding-block: calc(var(--space-10) + var(--space-6));
}

.legal-document {
  max-width: var(--phone-max);
}

.legal-document__eyebrow {
  margin: 0 0 var(--space-3);
  color: var(--marketing-accent);
  font-size: var(--caption-size);
  font-weight: var(--caption-weight);
  letter-spacing: var(--display-tracking);
  line-height: var(--caption-line);
  text-transform: uppercase;
}

.legal-document h1 {
  margin: 0;
  font-size: var(--display-size);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: var(--display-line);
}

.legal-document__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-block: var(--space-8) var(--space-10);
  padding: var(--space-3);
  border: thin solid var(--marketing-border);
  border-radius: var(--radius-card-marketing);
  background: var(--marketing-soft);
}

.legal-document__nav a {
  display: inline-flex;
  min-height: var(--touch-target);
  align-items: center;
  padding-inline: var(--space-4);
  border-radius: var(--radius-sm);
  color: var(--violet-700);
  font-size: var(--label-size);
  font-weight: var(--label-weight);
  line-height: var(--label-line);
  text-decoration: none;
}

.legal-document__nav a:hover {
  background: var(--white);
  color: var(--violet-800);
}

.legal-document__content {
  color: var(--marketing-secondary);
  font-size: var(--body-size);
  font-weight: var(--body-weight);
  line-height: var(--body-line);
}

.legal-document__content section + section {
  margin-top: var(--space-8);
}

.legal-document__content h2,
.legal-document__content h3 {
  margin: var(--space-10) 0 var(--space-3);
  color: var(--marketing-text);
}

.legal-document__content h2 {
  font-size: var(--h2-size);
  font-weight: var(--h2-weight);
  line-height: var(--h2-line);
}

.legal-document__content h3 {
  font-size: var(--h3-size);
  font-weight: var(--h3-weight);
  line-height: var(--h3-line);
}

.legal-document__content p,
.legal-document__content ul,
.legal-document__content ol {
  margin: 0 0 var(--space-4);
}

.legal-document__content ul,
.legal-document__content ol {
  padding-left: var(--space-6);
}

.legal-document__content li + li {
  margin-top: var(--space-2);
}

.legal-document__content a {
  color: var(--violet-700);
  font-weight: var(--body-strong-weight);
  text-decoration-thickness: from-font;
  text-underline-offset: var(--space-1);
}

.legal-page .marketing-footer {
  margin-top: var(--space-10);
}
