/* ==========================================================================
   Drroo — legal.css
   The Terms & Conditions and Privacy Policy reading experience.
   Builds on base.css (tokens, header, footer, buttons, chips, reveals).

   Structure (see _build/legal/template.html):
     .legal-hero      dark hero with parallax decor (route network, outline icon, papers)
     .legal-glance    "At a glance" — six summary cards ({{SUMMARY}} → .glance / .glance__item)
     .legal-sheet     cream reading sheet: .legal-toc (desktop rail) · .legal-mtoc (tablet/phone)
                      · .legal-article ({{SECTIONS}} → .legal-section, .legal-callout, .legal-table…)
     .legal-end       related document + contact cards
     .legal-top       floating back-to-top button with page-progress ring
   Breakpoints: ≤640 phone · 641–1020 tablet · ≥1021 desktop.
   ========================================================================== */

/* ---------- 0. Page tokens ---------- */
.page-legal {
  --legal-toc-w: clamp(240px, 21vw, 288px);
  --legal-gap: clamp(44px, 5.2vw, 92px);
  /* ≈ 70–72 characters per line. Manrope's "0" (what `ch` measures) is ~0.61em wide while an average
     character of running English is ~0.47em, so 55ch of Manrope sets about 71 characters per line. */
  --legal-measure: 55ch;
  --legal-rule: rgba(26, 20, 36, 0.09);
  --legal-rule-2: rgba(26, 20, 36, 0.15);
  --legal-link: #b2470c;      /* orange that passes AA (5.3:1) on cream */
  --legal-link-2: #9a3a08;    /* --orange-800 */
  --legal-dock: calc(var(--header-h) + 10px); /* where the phone/tablet contents bar docks */
}

/* ==========================================================================
   1. Hero
   ========================================================================== */
.legal-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(660px, 94svh, 920px);
  padding: calc(var(--header-h) + clamp(40px, 6vw, 88px)) 0 clamp(88px, 10vw, 136px);
  overflow: clip;
  background:
    radial-gradient(70% 60% at 82% 18%, rgba(139, 124, 248, 0.09), transparent 62%),
    radial-gradient(60% 50% at 8% 100%, rgba(250, 126, 56, 0.07), transparent 70%),
    var(--ink-950);
}

/* Bottom fade so the hero melts into the glance section */
.legal-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  height: 180px;
  background: linear-gradient(180deg, transparent, var(--ink-950));
  pointer-events: none;
}

.legal-hero__inner {
  position: relative;
  z-index: 2;
}

.legal-hero__content {
  display: grid;
  justify-items: start;
  max-width: 700px;
  /* Drift up + fade as the hero scrolls away (--p from data-progress="exit") */
  opacity: calc(1 - var(--p, 0) * 1.3);
  translate: 0 calc(var(--p, 0) * -70px);
}

.legal-hero__kicker {
  gap: 0.55em;
  padding: 0.5em 1em 0.5em 0.8em;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.legal-hero__kicker .icon {
  width: 1.15em;
  height: 1.15em;
}

.legal-ico-privacy,
.page-privacy .legal-ico-terms {
  display: none;
}

.page-privacy .legal-ico-privacy {
  display: block;
}

.legal-hero__title {
  margin-top: 26px;
  font-size: clamp(2.75rem, 1.2rem + 5.3vw, 6rem);
  line-height: 0.98;
}

.legal-hero__dot {
  display: inline-block;
  width: 0.15em;
  height: 0.15em;
  margin-left: 0.05em;
  border-radius: 50%;
  background: var(--grad-brand);
  box-shadow: 0 0 0.35em rgba(250, 126, 56, 0.65);
}

.js .legal-hero__dot {
  scale: 0;
  transition: scale 0.7s var(--ease-spring) 0.55s;
}

.js .legal-hero__title.is-in .legal-hero__dot {
  scale: 1;
}

.legal-hero__intro {
  margin-top: 26px;
  max-width: 54ch;
}

/* Meta row: Effective · Last updated · Reading time · Sections */
.legal-meta {
  display: grid;
  grid-template-columns: repeat(4, auto);
  margin: 40px 0 0;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.legal-meta > div {
  display: grid;
  gap: 5px;
  padding: 14px clamp(16px, 1.8vw, 24px) 15px;
}

.legal-meta > div + div {
  border-left: 1px solid var(--line);
}

.legal-meta dt {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-3);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.legal-meta dt .icon {
  width: 14px;
  height: 14px;
  color: var(--orange-400);
}

.legal-meta dd {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.legal-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.legal-hero__actions .icon {
  width: 18px;
  height: 18px;
}

.legal-btn-jump .icon {
  transition: transform 0.4s var(--ease-out);
}

.legal-btn-jump:hover .icon {
  transform: translateY(3px);
}

/* Scroll cue */
.legal-hero__cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 2;
  width: 1px;
  height: 52px;
  overflow: hidden;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.22));
  opacity: calc(1 - var(--p, 0) * 4);
}

.legal-hero__cue span {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 18px;
  background: var(--orange-400);
  animation: legal-cue 2.2s var(--ease-in-out) infinite;
}

@keyframes legal-cue {
  0% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(56px);
  }
}

/* ---------- 1b. Hero scene (decorative, parallax) ---------- */
.legal-hero__scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Pointer parallax: legal.js sets --mx/--my (-1..1) on the hero; each layer moves by its --depth */
.legal-hero__scene [data-speed] {
  translate: calc(var(--mx, 0) * var(--depth, 0) * 1px) calc(var(--my, 0) * var(--depth, 0) * 1px);
}

.legal-hero__orb {
  position: absolute;
  border-radius: 50%;
  --depth: 8;
}

.legal-hero__orb--a {
  top: -260px;
  right: -200px;
  width: min(900px, 90vw);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(250, 126, 56, 0.3), rgba(250, 126, 56, 0.08) 52%, transparent 74%);
}

.legal-hero__orb--b {
  bottom: -300px;
  left: -260px;
  width: min(720px, 90vw);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(139, 124, 248, 0.2), rgba(139, 124, 248, 0.05) 55%, transparent 74%);
  --depth: 12;
}

.legal-hero__dots {
  position: absolute;
  inset: 0 0 0 30%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.17) 1px, transparent 1.6px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(55% 60% at 62% 48%, #000 15%, transparent 72%);
  mask-image: radial-gradient(55% 60% at 62% 48%, #000 15%, transparent 72%);
  --depth: 10;
}

/* The illustration "stage" sits right of the copy; the mark is positioned from the same numbers */
.legal-hero {
  --stage-w: clamp(460px, 45vw, 670px);
  --stage-r: max(calc(var(--gutter) - 32px), calc((100% - var(--maxw)) / 2 - 64px));
}

.legal-hero__stage {
  position: absolute;
  top: 50%;
  right: var(--stage-r);
  width: var(--stage-w);
  aspect-ratio: 760 / 560;
  translate: 0 calc(-50% + var(--header-h) / 2);
}

/* Big outlined Drroo vehicle, like a watermark */
.legal-hero__mark {
  position: absolute;
  top: calc(50% + var(--header-h) / 2 - var(--stage-w) * 0.355);
  right: calc(var(--stage-r) + var(--stage-w) * 0.15);
  width: calc(var(--stage-w) * 0.66);
  --depth: 14;
  -webkit-mask-image: linear-gradient(180deg, #000 35%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 35%, transparent 100%);
}

.legal-hero__mark .drroo-icon__body,
.legal-hero__mark .drroo-icon__tyre {
  fill: none;
  stroke: rgba(250, 126, 56, 0.34);
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
}

.legal-hero__mark .drroo-icon__hub,
.legal-hero__mark .drroo-icon__valve {
  fill: rgba(250, 126, 56, 0.22);
}

/* Route network */
.legal-hero__routes {
  position: absolute;
  inset: 0;
  --depth: 20;
}

.legal-hero__routes svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.legal-routes__net path {
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 1.4;
  stroke-dasharray: 1.5 9;
  stroke-linecap: round;
}

.legal-routes__glow {
  stroke: rgba(250, 126, 56, 0.16);
  stroke-width: 12;
  stroke-linecap: round;
}

.legal-routes__main {
  stroke: url(#legal-route-grad);
  stroke-width: 3;
  stroke-linecap: round;
}

.legal-routes__flow {
  stroke: #fff3e8;
  stroke-width: 1.4;
  stroke-dasharray: 3 15;
  stroke-linecap: round;
  opacity: 0.65;
  animation: legal-dash 1.6s linear infinite;
}

@keyframes legal-dash {
  to {
    stroke-dashoffset: -36;
  }
}

.legal-pin__halo {
  fill: rgba(250, 126, 56, 0.22);
  transform-box: fill-box;
  transform-origin: center;
  animation: legal-pin 2.8s var(--ease-out) infinite;
}

.legal-routes__pins g:nth-child(2) .legal-pin__halo {
  animation-delay: -0.7s;
}

.legal-routes__pins g:nth-child(3) .legal-pin__halo {
  animation-delay: -1.4s;
}

.legal-routes__pins g:nth-child(4) .legal-pin__halo {
  animation-delay: -2.1s;
}

.legal-routes__pins g:nth-child(5) .legal-pin__halo {
  animation-delay: -1s;
}

@keyframes legal-pin {
  0% {
    transform: scale(0.35);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.legal-pin__ring {
  fill: var(--ink-950);
  stroke: var(--orange-400);
  stroke-width: 2;
}

.legal-pin__dot {
  fill: var(--orange-300);
}

.legal-routes__labels text {
  fill: rgba(246, 243, 250, 0.42);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-routes__beam {
  fill: url(#legal-beam-grad);
}

/* Papers: a little stack of documents with the Drroo seal */
.legal-hero__papers {
  position: absolute;
  top: 2%;
  right: 3%;
  width: 37%;
  aspect-ratio: 3 / 3.9;
  --depth: 30;
}

.legal-paper {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 9% 10%;
  border-radius: 18px;
}

.legal-paper i {
  display: block;
  height: 6px;
  border-radius: 6px;
}

.legal-paper--back {
  translate: -22% 9%;
  rotate: -9deg;
  border: 1px solid var(--line-2);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-lg);
  padding-top: 16%;
}

.legal-paper--back i {
  background: rgba(255, 255, 255, 0.14);
}

.legal-paper--back i:nth-child(3n + 1) {
  width: 62%;
}

.legal-paper--back i:nth-child(3n + 2) {
  width: 88%;
}

.legal-paper--front {
  rotate: 4deg;
  background: linear-gradient(170deg, #fffaf5, #fbe6d4);
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
  animation: legal-float 7s var(--ease-in-out) infinite alternate;
}

@keyframes legal-float {
  from {
    transform: translateY(-6px) rotate(-0.6deg);
  }
  to {
    transform: translateY(8px) rotate(0.6deg);
  }
}

.legal-paper--front i {
  background: rgba(26, 20, 36, 0.12);
}

.legal-paper--front i:nth-of-type(2) {
  width: 86%;
}

.legal-paper--front i:nth-of-type(4) {
  width: 58%;
}

.legal-paper__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(26, 20, 36, 0.16);
}

.legal-paper__seal {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  padding: 7px;
  border-radius: 50%;
  background: var(--ink-900);
  --car-hub: var(--ink-900);
  --car-valve: var(--ink-900);
}

.legal-paper__meta {
  display: grid;
  min-width: 0;
  line-height: 1.2;
}

.legal-paper__meta b {
  display: -webkit-box;
  overflow: hidden;
  color: var(--on-cream);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.01em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.legal-paper__meta small {
  color: var(--on-cream-3);
  font-size: 0.66rem;
  font-weight: 600;
}

.legal-paper__ticks {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.legal-paper__ticks span {
  position: relative;
  display: block;
  height: 14px;
  padding-left: 22px;
}

.legal-paper__ticks span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--orange-500)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a0d05' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 10px no-repeat;
}

.legal-paper__ticks span::after {
  content: "";
  display: block;
  height: 6px;
  margin-top: 4px;
  border-radius: 6px;
  background: rgba(26, 20, 36, 0.12);
}

.legal-paper__ticks span:nth-child(1)::after {
  width: 74%;
}

.legal-paper__ticks span:nth-child(2)::after {
  width: 90%;
}

.legal-paper__ticks span:nth-child(3)::after {
  width: 60%;
}

.legal-paper__sign {
  width: 46%;
  margin-top: auto;
  stroke: var(--orange-700);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: legal-sign 2.4s var(--ease-out) 0.9s forwards;
}

@keyframes legal-sign {
  to {
    stroke-dashoffset: 0;
  }
}

/* Floating chips */
.legal-hero__chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px 10px 13px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: rgba(22, 18, 32, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.legal-hero__chip .icon {
  width: 16px;
  height: 16px;
  color: var(--orange-400);
  stroke-width: 2.4;
}

.legal-hero__chip--a {
  left: 2%;
  top: 14%;
  --depth: 34;
}

.legal-hero__chip--b {
  right: 6%;
  bottom: 8%;
  --depth: 40;
}

/* Foreground bokeh */
.legal-hero__bokeh {
  position: absolute;
  inset: 0;
  --depth: 48;
}

.legal-hero__bokeh i {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 184, 137, 0.55), rgba(250, 126, 56, 0.12) 60%, transparent);
  animation: legal-twinkle 5s var(--ease-in-out) infinite alternate;
}

.legal-hero__bokeh i:nth-child(1) {
  left: 54%;
  top: 74%;
  width: 26px;
  height: 26px;
}

.legal-hero__bokeh i:nth-child(2) {
  left: 88%;
  top: 22%;
  width: 14px;
  height: 14px;
  animation-delay: -1.5s;
}

.legal-hero__bokeh i:nth-child(3) {
  left: 70%;
  top: 92%;
  width: 40px;
  height: 40px;
  opacity: 0.6;
  animation-delay: -3s;
}

.legal-hero__bokeh i:nth-child(4) {
  left: 46%;
  top: 18%;
  width: 10px;
  height: 10px;
  animation-delay: -2.2s;
}

.legal-hero__bokeh i:nth-child(5) {
  left: 96%;
  top: 64%;
  width: 22px;
  height: 22px;
  animation-delay: -0.8s;
}

@keyframes legal-twinkle {
  from {
    opacity: 0.25;
    transform: scale(0.85);
  }
  to {
    opacity: 0.9;
    transform: scale(1.1);
  }
}

/* Pause the decor loops while the hero is off screen (legal.js toggles .is-offscreen) */
.legal-hero.is-offscreen .legal-hero__scene *,
.legal-hero.is-offscreen .legal-hero__cue span {
  animation-play-state: paused;
}

/* ==========================================================================
   2. At a glance
   ========================================================================== */
.legal-glance {
  position: relative;
  z-index: 1;
  padding: clamp(8px, 2vw, 24px) 0 calc(var(--r-xl) + clamp(80px, 10vw, 136px));
  overflow: clip;
  background: var(--ink-950);
}

.legal-glance > .container {
  position: relative;
}

/* Slow warm glow drifting behind the cards (parallax) */
.legal-glance__glow {
  position: absolute;
  top: 18%;
  left: 50%;
  width: min(1100px, 130vw);
  aspect-ratio: 1.6;
  margin-left: calc(min(1100px, 130vw) / -2);
  border-radius: 50%;
  background:
    radial-gradient(closest-side at 70% 40%, rgba(250, 126, 56, 0.12), transparent 70%),
    radial-gradient(closest-side at 25% 70%, rgba(139, 124, 248, 0.08), transparent 70%);
  pointer-events: none;
}

.legal-glance__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 27rem);
  align-items: end;
  gap: 18px 56px;
  margin-bottom: clamp(30px, 4vw, 48px);
}

.legal-glance__titles {
  display: grid;
  gap: 16px;
  justify-items: start;
}

.legal-glance__title {
  font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.6rem);
  font-weight: 650;
  letter-spacing: -0.034em;
}

.legal-glance__note {
  color: var(--text-3);
  font-size: 0.98rem;
  line-height: 1.6;
}

.glance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.3vw, 18px);
  counter-reset: glance;
}

/* The whole list is a reveal target; its items stagger in instead of the list itself */
.js .glance[data-reveal] {
  opacity: 1;
  transform: none;
}

.glance__item {
  --gi: 0;
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: clamp(22px, 2.3vw, 30px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  counter-increment: glance;
  transition: border-color 0.35s, background-color 0.35s;
}

.glance__item:nth-child(2) {
  --gi: 1;
}

.glance__item:nth-child(3) {
  --gi: 2;
}

.glance__item:nth-child(4) {
  --gi: 3;
}

.glance__item:nth-child(5) {
  --gi: 4;
}

.glance__item:nth-child(6) {
  --gi: 5;
}

.js .glance__item {
  opacity: 0;
  translate: 0 28px;
  transition: opacity 0.8s var(--ease-out) calc(var(--gi) * 85ms), translate 1s var(--ease-out) calc(var(--gi) * 85ms),
    border-color 0.35s;
}

.js .glance.is-in .glance__item {
  opacity: 1;
  translate: 0 0;
}

/* Pointer spotlight (legal.js sets --gx/--gy) */
.glance__item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(320px circle at var(--gx, 50%) var(--gy, 0%), rgba(250, 126, 56, 0.16), transparent 62%);
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
}

.glance__item:hover {
  border-color: rgba(250, 126, 56, 0.3);
}

.glance__item:hover::before {
  opacity: 1;
}

/* Card number, top right */
.glance__item::after {
  content: counter(glance, decimal-leading-zero);
  position: absolute;
  top: clamp(22px, 2.3vw, 30px);
  right: clamp(22px, 2.3vw, 30px);
  color: var(--text-3);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.glance__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
  border: 1px solid rgba(250, 126, 56, 0.24);
  border-radius: 15px;
  background: linear-gradient(160deg, rgba(250, 126, 56, 0.2), rgba(250, 126, 56, 0.06));
  color: var(--orange-300);
  transition: transform 0.6s var(--ease-spring);
}

.glance__item:hover .glance__icon {
  transform: rotate(-6deg) scale(1.06);
}

.glance__icon .icon {
  width: 23px;
  height: 23px;
}

.glance__title {
  color: var(--text);
  font-size: var(--fs-h4);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.015em;
}

.glance__item p {
  color: var(--text-2);
  font-size: 0.97rem;
  line-height: 1.6;
}

/* ==========================================================================
   3. Reading sheet + layout
   ========================================================================== */
.legal-sheet {
  position: relative;
  z-index: 2;
  padding: clamp(56px, 7vw, 104px) 0 clamp(88px, 10vw, 140px);
  overflow-x: clip;
  background: linear-gradient(180deg, var(--cream-100), var(--cream-50) 520px);
}

/* Focus rings need 3:1 against cream: use a deeper orange than the dark-theme default */
.legal-sheet :focus-visible {
  outline-color: var(--orange-700);
}

.legal-related :focus-visible {
  outline-color: var(--orange-400);
}

.legal-layout {
  display: grid;
  grid-template-columns: var(--legal-toc-w) minmax(0, 1fr);
  column-gap: var(--legal-gap);
}

.legal-toc {
  grid-column: 1;
  grid-row: 1;
}

.legal-article {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.legal-mtoc,
.legal-mtoc-sentinel {
  display: none;
}

/* ==========================================================================
   4. Contents — desktop rail (sticky, scroll-spy)
   ========================================================================== */
.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  align-self: start;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - var(--header-h) - 56px);
  padding: 22px 10px 10px;
  border: 1px solid var(--legal-rule);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 34px 60px -46px rgba(80, 40, 10, 0.5);
}

.legal-toc.is-flash {
  animation: legal-toc-flash 1.4s var(--ease-out);
}

@keyframes legal-toc-flash {
  0%,
  35% {
    box-shadow: 0 0 0 4px rgba(250, 126, 56, 0.28), 0 34px 60px -46px rgba(80, 40, 10, 0.5);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(250, 126, 56, 0), 0 34px 60px -46px rgba(80, 40, 10, 0.5);
  }
}

.legal-toc__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px 12px;
}

.legal-toc__label {
  color: var(--on-cream);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.legal-toc__pct {
  color: var(--on-cream-3);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.legal-toc__meter {
  height: 3px;
  margin: 0 12px 14px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(26, 20, 36, 0.08);
}

.legal-toc__meter span,
.legal-mtoc__meter {
  display: block;
  height: 100%;
  background: var(--grad-brand);
  transform: scaleX(var(--read, 0));
  transform-origin: 0 50%;
}

.legal-toc__scroll {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 4px 2px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(26, 20, 36, 0.2) transparent;
}

/* Fades at the top/bottom edge when the list scrolls (classes from legal.js) */
.legal-toc__scroll.has-above {
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 36px);
  mask-image: linear-gradient(180deg, transparent, #000 36px);
}

.legal-toc__scroll.has-below {
  -webkit-mask-image: linear-gradient(0deg, transparent, #000 36px);
  mask-image: linear-gradient(0deg, transparent, #000 36px);
}

.legal-toc__scroll.has-above.has-below {
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 36px, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(180deg, transparent, #000 36px, #000 calc(100% - 36px), transparent);
}

.legal-toc .toc__list {
  margin-left: 12px;
  border-left: 1px solid var(--legal-rule-2);
}

.legal-toc__marker {
  position: absolute;
  top: 0;
  left: 11px;
  z-index: 1;
  width: 3px;
  height: 1px;
  border-radius: 2px;
  background: var(--orange-500);
  opacity: 0;
  transform-origin: 0 0;
  transition: transform 0.55s var(--ease-out), opacity 0.3s;
  pointer-events: none;
}

.toc__link {
  display: grid;
  grid-template-columns: 1.85em minmax(0, 1fr);
  gap: 6px;
  padding: 7px 10px 7px 14px;
  border-radius: 0 10px 10px 0;
  color: var(--on-cream-3);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.38;
  transition: color 0.2s, background-color 0.2s;
}

.toc__num {
  padding-top: 0.08em;
  color: inherit;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.toc__link:hover {
  color: var(--on-cream);
  background: rgba(26, 20, 36, 0.045);
}

.toc__link.is-past .toc__num {
  color: var(--legal-link);
}

.toc__link.is-active {
  color: var(--on-cream);
  background: linear-gradient(90deg, rgba(250, 126, 56, 0.12), rgba(250, 126, 56, 0));
}

.toc__link.is-active .toc__num {
  color: var(--legal-link-2);
}

.toc__link:focus-visible {
  outline-offset: -2px;
}

.legal-toc__foot {
  display: flex;
  gap: 4px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--legal-rule);
}

.legal-toc__action {
  display: inline-flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 12px;
  color: var(--on-cream-2);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.2s, background-color 0.2s;
}

.legal-toc__action .icon {
  width: 15px;
  height: 15px;
}

.legal-toc__action:hover {
  background: rgba(26, 20, 36, 0.06);
  color: var(--on-cream);
}

/* Short laptop screens: tighter rail */
@media (min-width: 1021px) and (max-height: 780px) {
  .legal-toc {
    top: calc(var(--header-h) + 16px);
    max-height: calc(100vh - var(--header-h) - 32px);
    padding-top: 16px;
  }

  .toc__link {
    padding-block: 5px;
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   5. Contents — tablet/phone disclosure that docks while reading
   ========================================================================== */
.legal-mtoc {
  position: sticky;
  top: var(--legal-dock);
  z-index: 40;
  margin-bottom: clamp(36px, 7vw, 56px);
  transition: translate 0.55s var(--ease-out), opacity 0.35s var(--ease-out), visibility 0s linear 0s;
}

/* Past the last section the bar steps aside so the end cards are unobstructed */
.legal-mtoc.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: translate 0.55s var(--ease-out), opacity 0.35s var(--ease-out), visibility 0s linear 0.35s;
}

/* When docked and the header has slid away, slide up into its place (transform only) */
.page-legal:has(.site-header.is-hidden) .legal-mtoc.is-stuck {
  translate: 0 calc(var(--header-h) * -1);
}

.legal-mtoc__bar {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 9px 10px 9px 12px;
  overflow: hidden;
  border: 1px solid var(--legal-rule-2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 14px 34px -24px rgba(60, 30, 10, 0.45);
  color: var(--on-cream);
  cursor: pointer;
  list-style: none;
  transition: box-shadow 0.4s var(--ease-out), border-color 0.3s;
  -webkit-tap-highlight-color: transparent;
}

.legal-mtoc__bar::-webkit-details-marker {
  display: none;
}

.legal-mtoc__bar::marker {
  content: "";
}

.legal-mtoc.is-stuck .legal-mtoc__bar {
  box-shadow: 0 22px 44px -22px rgba(40, 20, 8, 0.45);
}

.legal-mtoc__bar:focus-visible {
  outline: 2px solid var(--orange-700);
  outline-offset: 3px;
  border-radius: 18px;
}

.legal-mtoc__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(250, 126, 56, 0.13);
  color: var(--legal-link);
}

.legal-mtoc__icon .icon {
  width: 19px;
  height: 19px;
}

.legal-mtoc__text {
  display: grid;
  min-width: 0;
  line-height: 1.25;
}

.legal-mtoc__label {
  color: var(--on-cream-3);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-mtoc__current {
  overflow: hidden;
  color: var(--on-cream);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.legal-mtoc__current b {
  margin-right: 0.35em;
  color: var(--legal-link);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.legal-mtoc__chev {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cream-100);
  color: var(--on-cream);
  transition: rotate 0.45s var(--ease-out), background-color 0.25s;
}

.legal-mtoc__chev .icon {
  width: 19px;
  height: 19px;
}

.legal-mtoc__details[open] .legal-mtoc__chev {
  rotate: 180deg;
  background: var(--orange-500);
  color: #1a0d05;
}

.legal-mtoc__meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
}

.legal-mtoc__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: min(66svh, 560px);
  padding: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--legal-rule-2);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 40px 80px -24px rgba(40, 20, 8, 0.4);
  scrollbar-width: thin;
}

.legal-mtoc__details[open] .legal-mtoc__panel {
  animation: legal-panel-in 0.45s var(--ease-out);
}

@keyframes legal-panel-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.985);
  }
}

.legal-mtoc .toc__link {
  grid-template-columns: 2.1em minmax(0, 1fr);
  padding: 11px 12px;
  border-radius: 12px;
  font-size: 0.95rem;
}

.legal-mtoc .toc__link.is-active {
  background: rgba(250, 126, 56, 0.1);
}

/* ==========================================================================
   6. Article typography
   ========================================================================== */
.legal-article {
  color: var(--on-cream-2);
  font-size: clamp(1.05rem, 0.99rem + 0.2vw, 1.1rem);
  line-height: 1.75;
  overflow-wrap: break-word;
}

.legal-section {
  position: relative;
  scroll-margin-top: 20px;
}

.legal-section + .legal-section {
  --legal-sec-pad: clamp(52px, 6.5vw, 80px);
  margin-top: var(--legal-sec-pad);
  padding-top: var(--legal-sec-pad);
  border-top: 1px solid var(--legal-rule);
  /* Land the heading (not the divider above it) just under the fixed header */
  scroll-margin-top: calc(28px - var(--legal-sec-pad));
}

.legal-section > * + * {
  margin-top: 1.15em;
}

.legal-section > :is(p, ul, ol, h3, .legal-callout, .legal-dl, address) {
  max-width: var(--legal-measure);
}

/* Section heading row (legal.js wraps the h2 + copy-link button in .legal-h2row) */
.legal-h2row {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: calc(var(--legal-measure) + 3.5rem);
}

.legal-section > h2,
.legal-h2row h2 {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--on-cream);
  font-size: clamp(1.62rem, 1.22rem + 1.35vw, 2.4rem);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.legal-num {
  margin-right: 0.12em;
  color: var(--orange-700);
  font-variant-numeric: tabular-nums;
}

.legal-section > .legal-h2row + *,
.legal-section > h2 + * {
  margin-top: 1.55em;
}

.legal-anchor {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  margin-top: calc((1.12 * clamp(1.62rem, 1.22rem + 1.35vw, 2.4rem) - 40px) / 2);
  border: 1px solid var(--legal-rule-2);
  border-radius: 50%;
  color: var(--on-cream-3);
  transition: color 0.2s, border-color 0.2s, background-color 0.2s, opacity 0.3s, scale 0.4s var(--ease-spring);
}

.legal-anchor .icon {
  width: 17px;
  height: 17px;
  grid-area: 1 / 1;
  transition: opacity 0.25s, scale 0.4s var(--ease-spring);
}

.legal-anchor .legal-anchor__check {
  opacity: 0;
  scale: 0.4;
  stroke-width: 2.6;
}

.legal-anchor:hover {
  border-color: rgba(201, 80, 15, 0.45);
  background: #fff;
  color: var(--legal-link);
}

.legal-anchor:active {
  scale: 0.92;
}

.legal-anchor.is-copied {
  border-color: transparent;
  background: var(--orange-500);
  color: #1a0d05;
}

.legal-anchor.is-copied .legal-anchor__link {
  opacity: 0;
  scale: 0.4;
}

.legal-anchor.is-copied .legal-anchor__check {
  opacity: 1;
  scale: 1;
}

@media (hover: hover) and (pointer: fine) {
  .legal-anchor {
    opacity: 0;
  }

  .legal-h2row:hover .legal-anchor,
  .legal-anchor:focus-visible,
  .legal-anchor.is-copied {
    opacity: 1;
  }
}

/* Arriving at a section from a link: a soft warm wash behind its heading */
.legal-h2row::before {
  content: "";
  position: absolute;
  inset: -12px -18px;
  z-index: -1;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(250, 126, 56, 0.18), rgba(250, 126, 56, 0.04));
  opacity: 0;
  pointer-events: none;
}

.legal-section:target > .legal-h2row::before {
  animation: legal-target 2.6s var(--ease-out) 0.35s;
}

@keyframes legal-target {
  0%,
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.legal-section h3 {
  margin-top: 2.15em;
  color: var(--on-cream);
  font-size: clamp(1.14rem, 1.04rem + 0.4vw, 1.34rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.014em;
}

.legal-section > h3 + * {
  margin-top: 0.7em;
}

.legal-subnum {
  margin-right: 0.4em;
  color: var(--legal-link);
  font-variant-numeric: tabular-nums;
}

.legal-section strong {
  color: var(--on-cream);
  font-weight: 700;
}

.legal-section em {
  font-style: italic;
}

.legal-section a,
.legal-fin__text a {
  color: var(--legal-link);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(178, 71, 12, 0.35);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.legal-section a:hover {
  color: var(--legal-link-2);
  text-decoration-color: currentColor;
}

/* External links get a tiny arrow */
.legal-section a[href^="http"]::after {
  content: "";
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-left: 0.18em;
  vertical-align: 0.02em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

/* Lists */
.legal-section ul:not([role="list"]),
.legal-section ol:not([role="list"]) {
  margin-bottom: 0;
  padding-left: 1.55em;
}

.legal-section ul:not([role="list"]) {
  list-style: none;
}

.legal-section ul:not([role="list"]) > li {
  position: relative;
}

.legal-section ul:not([role="list"]) > li::before {
  content: "";
  position: absolute;
  left: -1.1em;
  top: 0.74em;
  top: calc(0.5lh - 3.5px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange-500);
  box-shadow: 0 0 0 3px rgba(250, 126, 56, 0.16);
}

.legal-section ul ul > li::before {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--orange-600);
}

.legal-section ol:not([role="list"]) > li {
  padding-left: 0.3em;
}

.legal-section ol:not([role="list"]) > li::marker {
  color: var(--legal-link);
  font-family: var(--font-display);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.legal-section li + li {
  margin-top: 0.5em;
}

/* Writers may nest several blocks inside list items, definitions and table cells */
.legal-section :is(li, dd, td, address) > * + * {
  margin-top: 0.5em;
}

.legal-section li > :is(ul, ol) {
  margin-top: 0.5em;
}

/* ==========================================================================
   7. Callouts
   ========================================================================== */
.legal-callout {
  --callout-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5'/%3E%3Cpath d='M9 18h6'/%3E%3Cpath d='M10 22h4'/%3E%3C/svg%3E");
  --callout-tint: 250, 126, 56;
  --callout-ink: #9a3a08;
  position: relative;
  padding: 18px 22px 18px 62px;
  border: 1px solid rgba(var(--callout-tint), 0.22);
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(var(--callout-tint), 0.12), rgba(var(--callout-tint), 0.04) 70%);
  color: var(--on-cream);
  font-size: 0.97em;
  line-height: 1.65;
}

.legal-callout::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 18px;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(var(--callout-tint), 0.16);
}

.legal-callout::after {
  content: "";
  position: absolute;
  top: 23px;
  left: 24px;
  width: 18px;
  height: 18px;
  background: var(--callout-ink);
  -webkit-mask: var(--callout-ico) center / contain no-repeat;
  mask: var(--callout-ico) center / contain no-repeat;
}

.legal-callout > * + * {
  margin-top: 0.6em;
}

.legal-callout strong {
  color: var(--on-cream);
}

/* "In short:" style lead-in */
.legal-callout > p:first-child > strong:first-child {
  margin-right: 0.25em;
  color: var(--callout-ink);
  font-size: 0.78em;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-callout--warn {
  --callout-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
  --callout-tint: 236, 64, 92;
  --callout-ink: #a51d3a;
}

.legal-callout ul,
.legal-callout ol {
  padding-left: 1.3em;
}

/* ==========================================================================
   8. Tables (scroll sideways inside the wrapper on small screens)
   ========================================================================== */
.legal-table-wrap {
  margin-top: 1.6em;
  overflow-x: auto;
  border: 1px solid var(--legal-rule-2);
  border-radius: 20px;
  /* Scroll shadows: the "cover" layers scroll with content, the shadows stay put */
  background:
    linear-gradient(90deg, #fff 30%, rgba(255, 255, 255, 0)) left center / 48px 100% no-repeat local,
    linear-gradient(270deg, #fff 30%, rgba(255, 255, 255, 0)) right center / 48px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(60, 30, 10, 0.16), rgba(60, 30, 10, 0)) left center / 16px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(60, 30, 10, 0.16), rgba(60, 30, 10, 0)) right center / 16px 100% no-repeat scroll,
    #fff;
  box-shadow: 0 26px 50px -40px rgba(80, 40, 10, 0.45);
  scrollbar-width: thin;
  scrollbar-color: rgba(26, 20, 36, 0.22) transparent;
  -webkit-overflow-scrolling: touch;
}

.legal-table-wrap:focus-visible {
  outline: 2px solid var(--orange-700);
  outline-offset: 3px;
  border-radius: 20px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--on-cream-2);
  font-size: 0.93em;
  line-height: 1.5;
}

.legal-table caption {
  padding: 18px 22px 14px;
  color: var(--on-cream);
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: left;
  caption-side: top;
}

.legal-table th {
  padding: 11px 22px;
  border-top: 1px solid var(--legal-rule);
  border-bottom: 1px solid var(--legal-rule-2);
  color: var(--on-cream-3);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.legal-table td {
  padding: 14px 22px;
  border-top: 1px solid var(--legal-rule);
  vertical-align: top;
}

.legal-table tbody tr:first-child td {
  border-top: 0;
}

.legal-table td:first-child,
.legal-table tbody th {
  width: 24%;
  color: var(--on-cream);
  font-weight: 700;
}

.legal-table tbody tr {
  transition: background-color 0.2s;
}

.legal-table tbody tr:hover {
  background: rgba(250, 126, 56, 0.06);
}

/* ==========================================================================
   9. Definition lists
   ========================================================================== */
.legal-dl {
  margin: 0;
  border-top: 1px solid var(--legal-rule-2);
}

.legal-section > .legal-dl {
  margin-top: 1.5em;
}

.legal-dl > div {
  display: grid;
  grid-template-columns: minmax(8.5rem, 12rem) minmax(0, 1fr);
  gap: 4px 28px;
  padding: 15px 0;
  border-bottom: 1px solid var(--legal-rule);
}

.legal-dl dt {
  color: var(--on-cream);
  font-family: var(--font-display);
  font-size: 1.02em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.legal-dl dd {
  margin: 0;
}

/* ==========================================================================
   10. Contact addresses inside the text
   ========================================================================== */
.legal-contact {
  position: relative;
  display: block;
  padding: 20px 24px 20px 66px;
  border: 1px solid var(--legal-rule-2);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 46px -38px rgba(80, 40, 10, 0.5);
  color: var(--on-cream-2);
  font-style: normal;
  line-height: 1.7;
}

.legal-section > .legal-contact {
  margin-top: 1.5em;
}

.legal-contact::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(250, 126, 56, 0.14)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b2470c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E")
    center / 17px no-repeat;
}

.legal-contact strong {
  color: var(--on-cream);
  font-family: var(--font-display);
  font-size: 1.04em;
  font-weight: 650;
}

/* ==========================================================================
   11. End of document: sign-off + related + help
   ========================================================================== */
.legal-fin {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 41rem;
  margin-top: clamp(64px, 8vw, 104px);
}

.legal-fin::before,
.legal-fin::after {
  content: "";
  flex: 1 1 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--legal-rule-2));
}

.legal-fin::after {
  background: linear-gradient(270deg, transparent, var(--legal-rule-2));
}

.legal-fin__car {
  width: 46px;
  --car-hub: var(--cream-50);
  --car-valve: var(--cream-50);
  --car-wheel: var(--on-cream);
  --wheel-speed: 1.6s;
}

.legal-fin__text {
  max-width: 41rem;
  margin-top: 14px;
  text-wrap: balance;
  color: var(--on-cream-3);
  font-size: 0.92rem;
  text-align: center;
}

.legal-end {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 16px;
  max-width: 48rem;
  margin-top: clamp(40px, 5vw, 56px);
}

.legal-related {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-height: 320px;
  padding: clamp(26px, 3vw, 36px);
  overflow: hidden;
  border-radius: var(--r-lg);
  background:
    radial-gradient(110% 80% at 100% 0%, rgba(250, 126, 56, 0.34), rgba(250, 126, 56, 0) 58%),
    radial-gradient(80% 70% at 0% 100%, rgba(139, 124, 248, 0.16), transparent 70%),
    var(--ink-900);
  box-shadow: 0 46px 80px -44px rgba(30, 12, 2, 0.7);
  color: var(--text);
  transition: translate 0.55s var(--ease-out), box-shadow 0.55s var(--ease-out);
}

.legal-related:hover {
  translate: 0 -4px;
  box-shadow: 0 56px 90px -44px rgba(30, 12, 2, 0.75);
}

.legal-related:has(a:focus-visible) {
  outline: 2px solid var(--orange-700);
  outline-offset: 4px;
}

.legal-related__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  color: var(--orange-300);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.legal-related__eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange-500);
  box-shadow: 0 0 0 4px rgba(250, 126, 56, 0.2);
}

.legal-related__title {
  font-size: clamp(1.8rem, 1.35rem + 1.5vw, 2.5rem);
  font-weight: 650;
  letter-spacing: -0.032em;
}

.legal-related__title a {
  outline: none;
}

/* Stretched link: the whole card is clickable */
.legal-related__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
}

.legal-related__text {
  max-width: 36ch;
  color: var(--text-2);
  font-size: 0.98rem;
  line-height: 1.6;
}

.legal-related__go {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 11px 18px 11px 20px;
  border-radius: var(--r-pill);
  background: var(--orange-500);
  color: #1a0d05;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  box-shadow: var(--shadow-glow);
}

.legal-related__go .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.45s var(--ease-out);
}

.legal-related:hover .legal-related__go .icon {
  transform: translateX(4px);
}

.legal-related__decor {
  position: absolute;
  right: -6%;
  bottom: 22%;
  z-index: -1;
  width: 80%;
  aspect-ratio: 400 / 160;
  pointer-events: none;
}

.legal-related__road {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.legal-related__lane {
  stroke: rgba(255, 255, 255, 0.24);
  stroke-width: 1.6;
  stroke-dasharray: 2 9;
  stroke-linecap: round;
  animation: legal-dash 2.2s linear infinite;
}

.legal-related__lane--b {
  stroke: rgba(255, 255, 255, 0.14);
  animation-direction: reverse;
}

.legal-related__pin circle:first-child {
  fill: rgba(250, 126, 56, 0.2);
}

.legal-related__pin circle:last-child {
  fill: var(--orange-400);
}

.legal-related__car {
  position: absolute;
  left: calc(72% - 33px);
  top: calc(52.8% - 55px);
  width: 66px;
  --car-hub: var(--ink-900);
  --car-valve: var(--ink-900);
  --wheel-speed: 1.1s;
  transform-origin: 50% 100%;
  rotate: 13deg;
  filter: drop-shadow(0 10px 18px rgba(250, 126, 56, 0.35));
  transition: translate 0.9s var(--ease-out);
}

.legal-related:hover .legal-related__car {
  translate: 18px 4px;
}

.legal-help {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(26px, 3vw, 34px);
  border: 1px solid var(--legal-rule-2);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: 0 34px 60px -46px rgba(80, 40, 10, 0.5);
}

.legal-help__title {
  color: var(--on-cream);
  font-size: clamp(1.32rem, 1.15rem + 0.6vw, 1.6rem);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.024em;
}

.legal-help__text {
  color: var(--on-cream-2);
  font-size: 0.95rem;
  line-height: 1.6;
}

.legal-help__list {
  display: grid;
  margin-top: 4px;
}

.legal-help__list a,
.legal-help__office {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid var(--legal-rule);
  color: var(--on-cream);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  font-style: normal;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.legal-help__list a {
  transition: color 0.2s;
}

.legal-help__list a:hover {
  color: var(--legal-link);
}

.legal-help__list small,
.legal-help__office small {
  display: block;
  margin-bottom: 2px;
  color: var(--on-cream-3);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-help__office {
  align-items: flex-start;
  color: var(--on-cream-2);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
}

.legal-help__ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  background: rgba(250, 126, 56, 0.12);
  color: var(--legal-link);
  transition: background-color 0.25s, color 0.25s, transform 0.5s var(--ease-spring);
}

.legal-help__ico .icon {
  width: 18px;
  height: 18px;
}

.legal-help__list a:hover .legal-help__ico {
  background: var(--orange-500);
  color: #1a0d05;
  transform: rotate(-8deg);
}

/* ==========================================================================
   12. Back to top (fixed, with a page-progress ring)
   ========================================================================== */
.legal-top {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 80;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(17, 14, 26, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.6);
  color: var(--text);
  opacity: 0;
  visibility: hidden;
  translate: 0 18px;
  scale: 0.9;
  transition: opacity 0.4s var(--ease-out), translate 0.55s var(--ease-out), scale 0.55s var(--ease-out),
    visibility 0s linear 0.55s, background-color 0.25s;
}

.legal-top.is-visible {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
  scale: 1;
  transition-delay: 0s;
}

.legal-top:hover {
  background: var(--ink-750);
}

.legal-top > .icon {
  width: 20px;
  height: 20px;
  transition: transform 0.45s var(--ease-out);
}

.legal-top:hover > .icon {
  transform: translateY(-3px);
}

.legal-top__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  rotate: -90deg;
  fill: none;
  stroke-width: 2.5;
  pointer-events: none;
}

.legal-top__ring circle {
  stroke: var(--orange-500);
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - var(--page, 0) * 100);
  stroke-linecap: round;
}

/* Print-only blocks */
.legal-print-head,
.legal-print-foot {
  display: none;
}

/* ==========================================================================
   13. Responsive
   ========================================================================== */
/* Wide screens: the plain-English summary that opens each section becomes a margin note,
   so the text keeps a comfortable measure and the right-hand space is put to work. */
@media (min-width: 1260px) {
  .legal-section {
    display: flow-root;
  }

  .legal-h2row {
    max-width: none;
  }

  .legal-h2row h2 {
    flex: 0 1 auto;
    max-width: 37rem;
  }

  .legal-anchor {
    margin-left: auto;
  }

  .legal-section > .legal-h2row + .legal-callout,
  .legal-section > h2 + .legal-callout {
    float: right;
    clear: right;
    width: clamp(210px, calc(100% - 37rem - 52px), 290px);
    max-width: none;
    margin: 1.85em 0 1.2em;
    padding: 18px 18px 18px 26px;
    font-size: 0.86em;
    line-height: 1.6;
  }

  .legal-section > .legal-h2row + .legal-callout + *,
  .legal-section > h2 + .legal-callout + * {
    margin-top: 1.55em;
  }

  .legal-section > .legal-h2row + .legal-callout::before,
  .legal-section > h2 + .legal-callout::before {
    top: 16px;
    left: -15px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(var(--callout-tint), 0.34), 0 8px 18px -8px rgba(80, 40, 10, 0.4);
  }

  .legal-section > .legal-h2row + .legal-callout::after,
  .legal-section > h2 + .legal-callout::after {
    top: 23px;
    left: -8px;
    width: 16px;
    height: 16px;
  }

  .legal-section > .legal-h2row + .legal-callout > p:first-child > strong:first-child,
  .legal-section > h2 + .legal-callout > p:first-child > strong:first-child {
    display: block;
    margin: 0 0 3px;
  }

  .legal-section > .legal-table-wrap {
    clear: right;
  }

  .legal-fin,
  .legal-fin__text,
  .legal-end {
    max-width: none;
  }

  .legal-fin__text {
    max-width: 44rem;
    margin-inline: auto;
  }
}

/* Small desktops: keep the illustration clear of the copy */
@media (min-width: 1021px) and (max-width: 1180px) {
  .legal-hero {
    --stage-w: 44vw;
    --stage-r: -16px;
  }

  .legal-hero__content {
    max-width: 600px;
  }

  .legal-hero__chip,
  .legal-paper__meta small {
    display: none;
  }

  .legal-hero__papers {
    right: 7%;
    width: 35%;
  }

  .legal-meta > div {
    padding-inline: 14px;
  }

  .legal-meta dd {
    font-size: 0.98rem;
  }
}

/* Tablet + phone */
@media (max-width: 1020px) {
  .legal-hero {
    --band-w: max(600px, 112vw);
    min-height: 0;
    padding: calc(var(--header-h) + clamp(48px, 9vw, 88px)) 0 clamp(150px, 24vw, 210px);
  }

  .legal-hero::after {
    height: 48px;
  }

  /* The copy sits high in a tall hero here, so it only drifts (no fade) as you scroll away */
  .legal-hero__content {
    max-width: 640px;
    opacity: 1;
    translate: 0 calc(var(--p, 0) * -36px);
  }

  /* The outline mark watches from the top right… */
  .legal-hero__mark {
    top: calc(var(--header-h) - 4px);
    right: -18vw;
    width: min(80vw, 560px);
    opacity: 0.6;
  }

  /* …and the route becomes a band along the bottom of the hero, with the little car driving across */
  .legal-hero__stage {
    top: auto;
    right: auto;
    bottom: calc(92px - var(--band-w) * 0.2358);
    left: 50%;
    width: var(--band-w);
    translate: -50% 0;
    -webkit-mask-image: linear-gradient(180deg, transparent 47%, #000 60%);
    mask-image: linear-gradient(180deg, transparent 47%, #000 60%);
  }

  .legal-hero__papers,
  .legal-hero__chip,
  .legal-routes__labels,
  .legal-hero__cue {
    display: none;
  }

  .legal-hero__dots {
    inset: 0 0 30% 20%;
  }

  .legal-glance__head {
    grid-template-columns: minmax(0, 1fr);
  }

  .glance {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-layout {
    display: block;
  }

  .legal-toc {
    display: none;
  }

  .legal-mtoc {
    display: block;
  }

  .legal-mtoc-sentinel {
    display: block;
    height: 1px;
    margin-bottom: -1px;
  }

  /* Leave room for the docked contents bar as well as the header */
  .legal-section {
    scroll-margin-top: 70px;
  }

  .legal-section + .legal-section {
    scroll-margin-top: calc(72px - var(--legal-sec-pad));
  }

  .legal-end {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .legal-end {
    grid-template-columns: minmax(0, 1fr);
  }

  .legal-related {
    min-height: 300px;
  }

  /* Narrow card: the road and car run along the button row, clear of the text */
  .legal-related__decor {
    right: -8%;
    bottom: 3%;
    width: 72%;
  }

  .legal-related__car {
    width: 56px;
    top: calc(52.8% - 47px);
    left: calc(72% - 28px);
  }
}

/* Phone */
@media (max-width: 640px) {
  .legal-hero__mark {
    right: -26vw;
    width: 92vw;
    opacity: 0.6;
  }

  .legal-hero__orb--a {
    top: -180px;
    right: -260px;
  }

  .legal-hero__bokeh i:nth-child(n + 3) {
    display: none;
  }

  .legal-hero__title {
    margin-top: 22px;
  }

  .legal-hero__intro {
    margin-top: 20px;
    font-size: 1.06rem;
  }

  .legal-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    margin-top: 30px;
  }

  .legal-meta > div {
    padding: 13px 16px 14px;
  }

  .legal-meta > div + div {
    border-left: 0;
  }

  .legal-meta > div:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .legal-meta > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .legal-meta dd {
    font-size: 0.98rem;
    white-space: normal;
  }

  .legal-hero__actions {
    width: 100%;
  }

  .legal-hero__actions .btn {
    flex: 1 1 100%;
  }

  .legal-hero__cue {
    display: none;
  }

  .glance {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  /* Compact horizontal cards on phones: icon left, text right */
  .glance__item {
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 4px;
    padding: 20px 18px 20px 18px;
    border-radius: var(--r-md);
  }

  .glance__icon {
    grid-row: 1 / span 2;
    width: 44px;
    height: 44px;
    margin: 0;
    border-radius: 13px;
  }

  .glance__icon .icon {
    width: 21px;
    height: 21px;
  }

  .glance__title {
    padding-right: 28px;
    font-size: 1.08rem;
  }

  .glance__item p {
    font-size: 0.94rem;
  }

  .glance__item::after {
    top: 21px;
    right: 18px;
    font-size: 0.74rem;
  }

  .legal-article {
    line-height: 1.7;
  }

  .legal-h2row {
    gap: 12px;
  }

  .legal-anchor {
    width: 36px;
    height: 36px;
    margin-top: calc((1.12 * clamp(1.62rem, 1.22rem + 1.35vw, 2.4rem) - 36px) / 2);
  }

  /* Icon sits in the first line; the text wraps under it instead of wasting a column */
  .legal-callout {
    padding: 16px 18px;
  }

  .legal-callout::before {
    top: 15px;
    left: 16px;
    width: 26px;
    height: 26px;
    border-radius: 8px;
  }

  .legal-callout::after {
    top: 19px;
    left: 20px;
  }

  .legal-callout > p:first-child {
    text-indent: 36px;
  }

  .legal-table {
    min-width: 34rem;
  }

  .legal-table caption {
    padding-inline: 18px;
  }

  .legal-table th,
  .legal-table td {
    padding-inline: 18px;
  }

  .legal-dl > div {
    grid-template-columns: minmax(0, 1fr);
    padding: 13px 0;
  }

  .legal-contact {
    padding: 66px 20px 18px;
  }

  .legal-contact::before {
    top: 18px;
    left: 18px;
  }

  .legal-mtoc__bar {
    gap: 12px;
    padding-left: 10px;
  }

  .legal-mtoc__icon {
    width: 38px;
    height: 38px;
  }

  .legal-top {
    width: 50px;
    height: 50px;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 380px) {
  .legal-meta dt {
    letter-spacing: 0.1em;
  }

  .legal-meta > div {
    padding-inline: 13px;
  }
}

/* ==========================================================================
   14. Reduced motion: everything readable and still
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .legal-hero__content,
  .legal-hero__cue {
    opacity: 1;
    translate: none;
  }

  .legal-hero__scene [data-speed] {
    translate: none;
  }

  .legal-hero__cue {
    display: none;
  }

  .legal-paper__sign {
    stroke-dashoffset: 0;
  }

  .js .glance__item,
  .js .legal-hero__dot {
    opacity: 1;
    translate: none;
    scale: none;
  }

  .legal-mtoc {
    transition: none;
  }
}

/* ==========================================================================
   15. Print: clean black on white, no chrome
   ========================================================================== */
@media print {
  @page {
    margin: 16mm 15mm 18mm;
  }

  html,
  body,
  .page-legal {
    background: #fff !important;
    color: #000 !important;
  }

  .site-header,
  .mobile-menu,
  .site-footer,
  .skip-link,
  .toast-region,
  .legal-hero__scene,
  .legal-hero__cue,
  .legal-hero__actions,
  .legal-hero__kicker,
  .legal-hero::after,
  .legal-toc,
  .legal-mtoc,
  .legal-mtoc-sentinel,
  .legal-anchor,
  .legal-top,
  .legal-fin,
  .legal-fin__text,
  .legal-related__decor,
  .legal-related__go,
  .legal-help__ico,
  .glance__icon,
  .glance__item::after,
  .glance__item::before {
    display: none !important;
  }

  *,
  *::before,
  *::after {
    box-shadow: none !important;
    text-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  /* Anything waiting to be revealed must print */
  .js [data-reveal],
  .split-i,
  .js .glance__item,
  .legal-hero__content {
    opacity: 1 !important;
    transform: none !important;
    translate: none !important;
    clip-path: none !important;
  }

  .legal-hero__dot {
    display: none !important;
  }

  .legal-print-head {
    display: flex !important;
    align-items: center;
    gap: 12px;
    margin-bottom: 8mm;
    padding-bottom: 4mm;
    border-bottom: 1.5pt solid #000;
    font: 9pt/1.4 var(--font-body);
  }

  .legal-print-head__icon {
    width: 34px;
    flex: none;
    --car-body: #000;
    --car-wheel: #000;
  }

  .legal-print-foot {
    display: block !important;
    margin-top: 10mm;
    padding-top: 4mm;
    border-top: 1pt solid #000;
    font: 8.5pt/1.45 var(--font-body);
  }

  .legal-hero,
  .legal-glance,
  .legal-sheet {
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border-radius: 0 !important;
    background: none !important;
    color: #000 !important;
  }

  .legal-hero .container,
  .legal-glance .container,
  .legal-sheet .container {
    max-width: none;
    padding: 0;
  }

  .legal-hero__title {
    margin: 0 0 4mm;
    color: #000;
    font-size: 26pt;
    line-height: 1.1;
  }

  .legal-hero__intro {
    max-width: none;
    margin: 0;
    color: #000;
    font-size: 11pt;
  }

  .legal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2mm 8mm;
    margin: 5mm 0 8mm;
    border: 0;
    background: none;
  }

  .legal-meta > div {
    display: block;
    padding: 0;
    border: 0 !important;
  }

  .legal-meta dt,
  .legal-meta dd {
    display: inline;
    color: #000;
    font: 9pt var(--font-body);
    letter-spacing: 0;
    text-transform: none;
  }

  .legal-meta dt::after {
    content: ": ";
  }

  .legal-meta dt .icon {
    display: none;
  }

  .legal-glance {
    margin-bottom: 8mm !important;
  }

  .legal-glance__head {
    display: block;
    margin-bottom: 3mm;
  }

  .legal-glance .eyebrow,
  .legal-glance__note {
    display: none;
  }

  .legal-glance__title {
    color: #000;
    font-size: 15pt;
  }

  .glance {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3mm;
  }

  .glance__item {
    display: block;
    padding: 3mm 4mm;
    border: 0.75pt solid #999;
    border-radius: 2mm;
    background: none;
    break-inside: avoid;
  }

  .glance__title {
    color: #000;
    font-size: 10.5pt;
  }

  .glance__item p {
    margin-top: 1mm;
    color: #000;
    font-size: 9pt;
  }

  .legal-layout {
    display: block;
  }

  .legal-article {
    color: #000;
    font-size: 10.5pt;
    line-height: 1.5;
  }

  .legal-section {
    max-width: none;
  }

  .legal-section > :is(p, ul, ol, h3, .legal-callout, .legal-dl, address),
  .legal-h2row {
    max-width: none;
  }

  .legal-section + .legal-section {
    margin-top: 7mm;
    padding-top: 5mm;
    border-top: 0.75pt solid #999;
  }

  .legal-section > h2,
  .legal-h2row h2 {
    color: #000;
    font-size: 15pt;
  }

  .legal-section h2,
  .legal-section h3 {
    break-after: avoid;
    page-break-after: avoid;
  }

  .legal-section h3 {
    margin-top: 4mm;
    color: #000;
    font-size: 11.5pt;
  }

  .legal-num,
  .legal-subnum,
  .legal-section strong,
  .legal-section a {
    color: #000 !important;
  }

  .legal-section a {
    font-weight: inherit;
    text-decoration-color: #000;
  }

  /* External links: print the address after the text */
  .legal-section a[href^="http"]::after {
    content: " (" attr(href) ")";
    display: inline;
    width: auto;
    height: auto;
    margin: 0;
    background: none;
    -webkit-mask: none;
    mask: none;
    font-size: 0.85em;
    font-weight: 400;
    word-break: break-all;
  }

  .legal-section ul:not([role="list"]) > li::before {
    background: #000;
    box-shadow: none;
  }

  .legal-section ol:not([role="list"]) > li::marker {
    color: #000;
  }

  .legal-callout {
    padding: 3mm 4mm;
    border: 0.75pt solid #000;
    border-left-width: 3pt;
    border-radius: 0;
    background: none;
    color: #000;
    break-inside: avoid;
  }

  .legal-callout::before,
  .legal-callout::after {
    display: none;
  }

  .legal-callout > p:first-child > strong:first-child {
    color: #000;
  }

  .legal-table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: none;
  }

  .legal-table {
    min-width: 0;
    color: #000;
    font-size: 9.5pt;
  }

  .legal-table caption {
    padding: 0 0 2mm;
    color: #000;
    font-size: 10.5pt;
  }

  .legal-table th,
  .legal-table td {
    padding: 1.6mm 2.4mm;
    border: 0.75pt solid #999;
    color: #000;
  }

  .legal-table tr {
    break-inside: avoid;
  }

  .legal-dl {
    border-color: #999;
  }

  .legal-dl > div {
    border-color: #999;
    break-inside: avoid;
  }

  .legal-dl dt {
    color: #000;
  }

  .legal-contact {
    padding: 3mm 4mm;
    border: 0.75pt solid #999;
    border-radius: 0;
    background: none;
    color: #000;
    break-inside: avoid;
  }

  .legal-contact::before {
    display: none;
  }

  .legal-contact strong {
    color: #000;
  }

  .legal-end {
    display: block;
    max-width: none;
    margin-top: 8mm;
    break-inside: avoid;
  }

  .legal-related,
  .legal-help {
    display: block;
    min-height: 0;
    margin-bottom: 4mm;
    padding: 3mm 4mm;
    border: 0.75pt solid #999;
    border-radius: 0;
    background: none;
    color: #000;
  }

  .legal-related__eyebrow,
  .legal-related__title,
  .legal-related__text,
  .legal-help__title,
  .legal-help__text,
  .legal-help__list a,
  .legal-help__office,
  .legal-help__list small,
  .legal-help__office small {
    color: #000 !important;
    font-size: 10pt;
  }

  .legal-related__eyebrow,
  .legal-help__list small,
  .legal-help__office small {
    font-size: 7.5pt;
    letter-spacing: 0.08em;
  }

  .legal-related__eyebrow::before {
    display: none;
  }

  .legal-help__list a,
  .legal-help__office {
    padding: 1mm 0;
    border: 0;
  }

  .legal-related__title a::after {
    content: " (" attr(href) ")";
    position: static;
    font-size: 0.8em;
  }
}

/* Shared-request additions */
.legal-contact > p + p {
  margin-top: 0.8em;
}

.legal-table tbody th {
  font-size: inherit;
  letter-spacing: normal;
  text-transform: none;
  white-space: normal;
  vertical-align: top;
}

/* Anchors on subsection headings land just under the header */
.legal-section h3[id] {
  scroll-margin-top: 96px;
}

@media (max-width: 1259px) {
  .legal-section h3[id] {
    scroll-margin-top: 150px;
  }
}
