/* ---- Legal pages: content styles only ----
   Shared chrome (tokens, sheet, bar, fine print) comes from site.css, so the
   legal pages use the exact same frame as the rest of the site. This file
   styles only the document: a masthead and the text. The sticky index beside
   it (.doc / .toc) is shared with the docs page and lives in site.css. */

.mast {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 40px;
  padding: clamp(34px, 5.4vw, 80px) var(--gut) clamp(26px, 3.4vw, 46px);
  border-bottom: 1px solid var(--rule);
}
.mast .display {
  margin-top: clamp(14px, 1.6vw, 22px);
  font-size: clamp(40px, 6.6vw, 100px);
}
.mast .updated {
  margin: 0 0 0.5em;
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
}

/* ---- the text ---- */
.prose {
  min-width: 0;
  max-width: calc(74ch + 2 * var(--gut));
  padding: clamp(24px, 3vw, 40px) var(--gut) clamp(48px, 6vw, 88px);
  line-height: 1.7;
}
.prose > :first-child {
  margin-top: 0;
}
.prose h2 {
  margin: 2.1em 0 0.55em;
  font: 700 clamp(21px, 1.9vw, 26px) / 1.2 var(--display);
  font-variation-settings: "opsz" 28;
  letter-spacing: -0.025em;
  scroll-margin-top: 24px;
}
.prose h3 {
  margin: 1.7em 0 0.4em;
  font: 600 17px/1.3 var(--sans);
}
.prose p,
.prose li {
  color: var(--ink-2);
  font-size: 16px;
}
.prose p {
  margin: 0 0 1em;
}
.prose ul {
  margin: 0 0 1em;
  padding-left: 20px;
}
.prose li {
  margin: 6px 0;
}
.prose li::marker {
  color: var(--mute);
}
.prose strong {
  font-weight: 600;
  color: var(--ink);
}
.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--rule-2);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.16s ease;
}
.prose a:hover {
  text-decoration-color: var(--heal);
}
.prose code {
  padding: 0.12em 0.4em;
  border-radius: 5px;
  border: 1px solid var(--rule);
  background: var(--sheet-2);
  font: 0.86em var(--mono);
  color: var(--ink);
}

.callout {
  margin: 0 0 2em;
  padding: 18px 20px 18px 22px;
  border: 1px solid var(--rule-2);
  border-left: 3px solid var(--heal);
  border-radius: 14px;
  background: var(--sheet-2);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}

@media (max-width: 860px) {
  .mast {
    padding-block: 30px 24px;
  }
  .mast .display {
    font-size: clamp(38px, 11.4vw, 72px);
  }
  .prose {
    padding-block: 24px 48px;
  }
  .prose p,
  .prose li {
    font-size: 15.5px;
  }
}
