/* =========================================================================
   Legal pages — /privacy-policy/ and /terms-and-conditions/
   2026 Ash pass. Both pages are long-form reading, so they take the reading
   treatment: a dark masthead (.lg-mast: black under the indigo glow, white
   Publico H1 with its accent word in brand red) over the light reading surface
   (.lg-reading, --color-background-reading) carrying the Webflow rich-text
   block in Ash type — Publico H2, Calibre H3 and body at a ~70-character
   measure. One sheet for the two pages rather than a <style> block in each,
   so they cannot drift.

   The rich-text block keeps its migrated `is-white` class; this sheet sets it
   in ink. Its links carry no class, so they are styled here (ink, underlined
   in the red fill — the underline is load-bearing, colour alone may not tell
   a link from its sentence). interactions.css still styles
   `.surface-dark .w-richtext a` for the dark version these pages used to be;
   the reading band no longer carries `.surface-dark`, so that rule no longer
   reaches it.
   ========================================================================= */

.lg-mast {
  background-color: var(--color-neutral-black);
  background-image:
    linear-gradient(to bottom, rgb(0 0 0 / 0) 0%, rgb(0 0 0 / 0) 55%, var(--color-neutral-black) 100%),
    url("/images/home/hero-glow.webp");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
}
.lg-mast.margin-top-80 { margin-top: 0; }
/* Aligned to the reading column below it rather than the wide container. */
.lg-mast > .container-standard { margin-top: 0; max-width: calc(720px + 48px); padding-top: calc(var(--hero-pad-top) + 24px); padding-bottom: 96px; }
.lg-mast .heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--hero-h1-size); font-weight: 500; line-height: var(--hero-h1-lh); letter-spacing: var(--hero-h1-ls);
  color: var(--color-neutral-white); text-wrap: balance;
}
.lg-mast .text-span-5 { color: var(--color-brand-red); }

.lg-reading { background-color: var(--color-background-reading); padding-bottom: 0; }
/* The white notch that pointed out of the old light hero into the dark band. */
.lg-reading > .dark-caret { display: none; }
.lg-reading > .container-standard.is-reading { max-width: calc(720px + 48px); padding-bottom: 96px; }

.lg-reading .w-richtext.is-white,
.lg-reading .w-richtext.is-white p,
.lg-reading .w-richtext.is-white li {
  font-family: var(--font-sans);
  font-size: 1.125rem; line-height: 1.6; color: var(--ink-strong);
}
.lg-reading .w-richtext.is-white { padding-top: 80px; }
.lg-reading .w-richtext p { margin: 0 0 18px; }
.lg-reading .w-richtext ul, .lg-reading .w-richtext ol { margin: 0 0 22px; padding-left: 24px; }
.lg-reading .w-richtext li { margin-bottom: 8px; padding-left: 4px; }
.lg-reading .w-richtext li::marker { color: var(--color-brand-red-fill); }
.lg-reading .w-richtext strong { font-weight: 600; color: var(--ink); }
.lg-reading .w-richtext h2 {
  margin: 56px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.5vw, 2.25rem); font-weight: 500; line-height: 1.2; letter-spacing: 0.01em;
  color: var(--ink); text-wrap: balance;
}
.lg-reading .w-richtext h3 {
  margin: 36px 0 12px;
  font-family: var(--font-sans);
  font-size: 1.375rem; font-weight: 600; line-height: 1.3; color: var(--ink);
}
.lg-reading .w-richtext h4 {
  margin: 28px 0 10px;
  font-family: var(--font-sans);
  font-size: 1.125rem; font-weight: 600; line-height: 1.35; color: var(--ink);
}
.lg-reading .w-richtext a {
  color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--color-brand-red-fill);
  text-decoration-thickness: 1px; text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.lg-reading .w-richtext a:hover { color: var(--color-brand-red-fill); }
.lg-reading .w-richtext a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* The "Last updated" line leads the document. */
.lg-reading .w-richtext > p:first-child strong {
  display: inline-block; font-size: 0.875rem; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink-soft);
}

/* The marquee nested at the foot of the reading band stays a dark band (its
   logos are white), but it eases out of the light page rather than starting
   on a hard edge: the reading band's own colour fades to black over the
   band's first 120px, then the logos sit on black. The selector out-ranks
   interactions.css, which clears the marquee's ground everywhere else. */
.lg-reading .surface-dark,
.lg-reading .surface-dark:has(> .full-bleed-section > .marquee-mask-wrapper) {
  background: linear-gradient(to bottom, var(--color-background-reading) 0, var(--color-neutral-black) 120px) var(--color-neutral-black);
  padding-top: 72px;
}

@media (max-width: 767px) {
  .lg-mast > .container-standard { padding-bottom: 56px; }
  .lg-reading .w-richtext.is-white { padding-top: 56px; }
  .lg-reading .w-richtext h2 { margin-top: 44px; }
}

/* Large-desktop tier (see tokens.css): from 1680px the column is 1344px and
   the root type 18px, so what this sheet draws in px takes the same step —
   layout widths x1.2, px type x1.125, the 1118/1164 column measures to 1344.
   Keep a value here in step with its base rule above. */
@media (min-width: 1680px) {
  .lg-mast > .container-standard { max-width: calc(864px + 48px); }
  .lg-reading > .container-standard.is-reading { max-width: calc(864px + 48px); }
}
