/* Long-form legal pages (privacy, terms). Loaded after styles.css, which
   supplies the colour tokens, fonts, page background, eyebrow and footer. */

.page-shell.legal-shell {
  width: min(720px, calc(100vw - 40px));
}

.legal-header {
  padding: 28px 0 30px;
  border-bottom: 1px solid var(--line);
}

.legal-header .eyebrow a {
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease;
}

.legal-header .eyebrow a:hover {
  color: var(--text);
}

.legal-header h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.6rem, 9vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.legal-meta {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.legal-body {
  --body: #d8d0c3;
  --link: #ecd9b4;
  padding-top: 30px;
  color: var(--body);
  font-size: 1.02rem;
  line-height: 1.78;
  overflow-wrap: break-word;
}

.legal-body p,
.legal-body ul {
  margin: 0 0 1.15em;
}

.legal-body h2 {
  margin: 2.1em 0 0.5em;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.6rem, 5vw, 1.95rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--text);
  text-wrap: balance;
}

.legal-body h3 {
  margin: 1.8em 0 0.5em;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.legal-body ul {
  padding-left: 1.2em;
}

.legal-body li {
  padding-left: 0.2em;
}

.legal-body li + li {
  margin-top: 0.55em;
}

.legal-body li::marker {
  color: var(--muted);
}

.legal-body a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: rgba(236, 217, 180, 0.4);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: text-decoration-color 160ms ease;
}

.legal-body a:hover {
  text-decoration-color: currentColor;
}

.legal-header a:focus-visible,
.legal-body a:focus-visible {
  outline: 2px solid var(--line-strong);
  outline-offset: 3px;
  border-radius: 2px;
}

.legal-shell .site-footer {
  border-top: 1px solid var(--line);
}

.legal-shell .site-footer [aria-current="page"] {
  color: var(--text);
}

@media (min-width: 720px) {
  .page-shell.legal-shell {
    width: min(720px, calc(100vw - 44px));
  }

  .legal-header {
    padding-top: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .legal-header .eyebrow a,
  .legal-body a {
    transition: none;
  }
}
