/* Privacy Policy & Terms of Use pages only: long-form prose styling for
   the content below the shared .page-header banner (base.css). Unlike the
   rest of the site's sections, this is plain running text rather than
   design-heavy blocks, so it's styled as a "prose" scope directly on
   child elements instead of a component class per element. Loads after
   base.css. */

/* Privacy Policy, Terms of Use and Safeguarding headers: banner photo right-aligned at full header
   height, masked so it fades out to the ink background towards the left,
   beneath the header text. */
.page-header--privacy::before,
.page-header--terms::before,
.page-header--safeguarding::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  aspect-ratio: 3 / 1;
  max-width: 100%;
  background: right center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 65%);
  mask-image: linear-gradient(to right, transparent 0%, #000 65%);
}
.page-header--privacy::before { background-image: url("../media/privacy-header-1600.webp"); }
.page-header--terms::before { background-image: url("../media/terms-header-1600.webp"); }
.page-header--safeguarding::before { background-image: url("../media/safeguarding-header-1600.webp"); }
@media (max-width: 900px) {
  .page-header--privacy::before { background-image: url("../media/privacy-header-900.webp"); }
  .page-header--terms::before { background-image: url("../media/terms-header-900.webp"); }
  .page-header--safeguarding::before { background-image: url("../media/safeguarding-header-900.webp"); }
}
@media (max-width: 520px) {
  .page-header--privacy::before, .page-header--terms::before, .page-header--safeguarding::before { opacity: 0.4; }
}

/* Faint pre-faded watermark behind the top of the *content* area (not the
   whole page) - .legal-body wraps everything after the dark .page-header
   banner, so the image's top edge (its least-faded, most visible point)
   lines up with where the white content actually starts, rather than
   sitting behind the page-header/site-header where it'd be invisible and
   only the already-half-faded rest of the image would show through below.
   Fades to plain white by itself (baked into the image) further down. */
.legal-body {
  background: var(--white) url("../media/background-02-subtle-fade.webp") top center / 100% auto no-repeat;
}

.legal-content {
  /* top/bottom only: the shorthand `3rem 0 4rem` used to zero out the side
     padding that .content-width (base.css) provides, so text touched the
     screen edge on narrow viewports */
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.legal-updated {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(11, 18, 32, 0.65);
  margin: 0 0 2.5rem 0;
}

.legal-content section + section { margin-top: 2.75rem; }

.legal-content h2 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.4rem;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 1rem 0;
}

.legal-content h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  margin: 1.5rem 0 0.6rem 0;
}

.legal-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(11, 18, 32, 0.78);
  margin: 0 0 1rem 0;
}

.legal-content ul, .legal-content ol {
  margin: 0 0 1rem 0;
  padding-left: 1.4rem;
}

.legal-content li {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(11, 18, 32, 0.78);
  margin-bottom: 0.5rem;
}

.legal-content a {
  color: var(--royal-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-thickness 0.15s ease;
}
.legal-content a:hover, .legal-content a:focus-visible { color: var(--royal-blue-dark); text-decoration-thickness: 2px; }

.legal-content strong { color: var(--ink); }
