/* Legal pages: the privacy policy and the SMS terms (the SMS terms page was added
   for the text-message carrier registration, October 2026). Both are long-form
   reading, so they get real headings and lists instead of the single bold-italic
   paragraph the privacy policy used to be. The column measure matches
   .paragraph-2 (60%) so they sit like every other content page.

   Colours are plain declarations on purpose: accessibility.css forces its
   high-contrast palette with !important, and that has to keep winning here. */
.legal {
  width: 60%;
  max-width: 820px;
  margin: 20px 0 48px;
  font-size: 20px;
  line-height: 1.55;
  color: #1a1a1a;
}

.legal h2 {
  color: #00437f;
  font-family: Libre Franklin, sans-serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
  margin: 36px 0 10px;
}

.legal h3 {
  color: #1a1a1a;
  font-size: 20px;
  line-height: 1.4;
  margin: 22px 0 6px;
}

.legal p { margin: 0 0 14px; }

.legal ul { margin: 0 0 14px; padding-left: 1.3em; }

/* The site-wide li rule is 14px IBM Plex Mono, meant for nav lists. */
.legal li {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  margin: 4px 0;
}

.legal a { color: #00437f; text-decoration: underline; }

.legal__dates { color: #555; font-size: 17px; }

/* The short version a carrier reviewer (or a patient) looks for first. */
.legal__summary {
  background: #f2f6fa;
  border-left: 4px solid #00437f;
  margin: 18px 0 8px;
  padding: 16px 20px 6px;
}

.legal__summary h2 { margin-top: 0; }

@media screen and (max-width: 767px) {
  .legal { width: calc(100% - 40px); font-size: 18px; margin-bottom: 24px; }
  .legal h2 { font-size: 22px; margin-top: 28px; }
  .legal h3 { font-size: 18px; }
  .legal__dates { font-size: 15px; }
  .legal__summary { padding: 14px 16px 4px; }
}

@media print {
  .legal { width: 100% !important; max-width: none; font-size: 11pt; }
  .legal__summary { border-left: 2px solid #000 !important; }
}
