/* Legal pages: /privacy-policy/ and /terms-of-use/.
   One shared look for the site's legal documents (Jonathan, 2026-10-28), so the pages cannot
   drift apart. Loaded only on those pages, via is_page() in functions/scripts.php; add a slug
   there to bring another legal page under it.

   The page content supplies the markup, in a Custom HTML block:
     <div class="container"><div class="legal-page-content"> h1, Last Updated line, h2s, p, ul </div></div>
   For the terms page that content is built from Legal's Word file by scripts/legal/ (README there).

   Section 1 is the privacy policy's original inline <style> block, its rules moved here
   unchanged except for the class name (.online-privacy-policy-page-content became .legal-page-content). Until
   2026-10-28 that block lived in the privacy page's own content, in no repo
   (docs/architecture.md, "The fifth source").

   Colour values are the Equity Trust system tokens, written literally because
   assets/css/design-tokens.css is scoped to the Crypto IRA family and is not loaded here.
     #002F5F  navy, headings
     #4E5056  body copy
     #1C74B5  link blue (same as /cookie-policy/) */


/* ---------------------------------------------------------------------------
   1. From the privacy policy's inline block
   --------------------------------------------------------------------------- */

.legal-page-content {
  font-family: 'Open Sans', sans-serif;
  padding: 40px 0;
}

.legal-page-content h1 {
  color: #002F5F;
  font-family: 'Frank Ruhl Libre', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.legal-page-content h2 {
  color: #002F5F;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.legal-page-content p,
.legal-page-content li {
  color: #4e5056;
}

.legal-page-content a {
  color: #1c74b5;
  text-decoration: none;
}

.legal-page-content a:hover,
.legal-page-content a:active,
.legal-page-content a:focus {
  text-decoration: underline;
}


/* ---------------------------------------------------------------------------
   2. Added for the terms page (none of it changes how the privacy policy looks,
      which has no in-page links and no paragraphs inside list items)
   --------------------------------------------------------------------------- */

/* "See Section 15" links jump to a heading; keep it clear of the fixed site header. */
.legal-page-content h2[id] {
  scroll-margin-top: 140px;
}

/* Terms clauses: each list item holds whole paragraphs, sometimes two. Space them like
   paragraphs. Scoped to the class the converter puts on these lists, so the privacy
   policy's short bullet lists keep their spacing. */
.legal-page-content .legal-page-clauses > li > p:last-child {
  margin-bottom: 0;
}

.legal-page-content .legal-page-clauses > li + li {
  margin-top: 12px;
}

/* Long unbroken strings (the custodial-agreement URL) must wrap at phone width. */
.legal-page-content a {
  overflow-wrap: anywhere;
}
