/* ════════════════════════════════════════════════════════════════
   LEGAL PAGES — Terms, Privacy, Cookies, Help
   Shared layout: hero · sticky TOC · long-form content · CTA
═══════════════════════════════════════════════════════════════ */

:root {
  --lg-bg:        #f4f6f1;
  --lg-paper:     #ffffff;
  --lg-ink:       #0f1a14;
  --lg-ink-2:     #2c3a32;
  --lg-mute:      #5b6c61;
  --lg-faint:     #8a9890;
  --lg-line:      rgba(15,26,20,0.08);
  --lg-line-2:    rgba(15,26,20,0.14);
  --lg-brand:     #1f4d3a;
  --lg-brand-2:   #2e9b65;
  --lg-gold:      #c8a35a;
  --lg-gold-l:    #e3c692;
  --lg-shadow:    0 1px 2px rgba(15,26,20,0.04), 0 8px 30px rgba(15,26,20,0.06);
  --lg-radius:    18px;
  --lg-ease:      cubic-bezier(.22,.61,.36,1);
  --lg-spring:    cubic-bezier(.34,1.56,.64,1);
}

.page-legal {
  background: var(--lg-bg);
  color: var(--lg-ink);
}

/* ─── Hero ────────────────────────────────────────────────────── */
.lg-hero {
  position: relative;
  padding: clamp(72px, 12vh, 132px) 24px clamp(40px, 6vh, 68px);
  background:
    radial-gradient(1100px 600px at 80% -20%, rgba(46,155,101,0.10), transparent 70%),
    radial-gradient(900px 500px at -10% 110%, rgba(200,163,90,0.10), transparent 65%),
    linear-gradient(180deg, #eef2ec 0%, #f4f6f1 100%);
  overflow: hidden;
}
.lg-hero::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--lg-line-2), transparent);
}
.lg-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Decorative image cluster — floating thumbnails */
.lg-hero-cluster {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.lg-hero-cluster .lg-hero-img {
  position: absolute;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  box-shadow:
    0 30px 60px -20px rgba(15,26,20,0.28),
    0 8px 18px -6px rgba(15,26,20,0.18),
    inset 0 0 0 1px rgba(255,255,255,0.4);
  filter: saturate(0.96);
  border: 4px solid rgba(255,255,255,0.88);
  opacity: 1;
  transform: rotate(var(--lg-rot, 0deg));
  animation: lg-float-a 11s ease-in-out infinite alternate;
}
.lg-hero-img.lg-hero-img--a {
  width: clamp(130px, 15vw, 230px);
  aspect-ratio: 3/4;
  top: 6%;
  left: 4%;
  --lg-rot: -7deg;
  animation-name: lg-float-a;
}
.lg-hero-img.lg-hero-img--b {
  width: clamp(120px, 13vw, 200px);
  aspect-ratio: 1/1;
  top: 8%;
  right: 5%;
  --lg-rot: 8deg;
  animation-name: lg-float-b;
}
.lg-hero-img.lg-hero-img--c {
  width: clamp(110px, 12vw, 180px);
  aspect-ratio: 4/5;
  bottom: 8%;
  left: 9%;
  --lg-rot: 5deg;
  animation-name: lg-float-c;
}
.lg-hero-img.lg-hero-img--d {
  width: clamp(140px, 15vw, 220px);
  aspect-ratio: 3/4;
  bottom: 6%;
  right: 7%;
  --lg-rot: -6deg;
  animation-name: lg-float-d;
}

/* Four distinct float patterns so each image drifts uniquely */
@keyframes lg-float-a {
  0%   { transform: rotate(var(--lg-rot)) translate(0, 0); }
  100% { transform: rotate(calc(var(--lg-rot) - 2deg)) translate(-8px, -16px); }
}
@keyframes lg-float-b {
  0%   { transform: rotate(var(--lg-rot)) translate(0, 0); }
  100% { transform: rotate(calc(var(--lg-rot) + 2deg)) translate(10px, -12px); }
}
@keyframes lg-float-c {
  0%   { transform: rotate(var(--lg-rot)) translate(0, 0); }
  100% { transform: rotate(calc(var(--lg-rot) - 3deg)) translate(-6px, -10px); }
}
@keyframes lg-float-d {
  0%   { transform: rotate(var(--lg-rot)) translate(0, 0); }
  100% { transform: rotate(calc(var(--lg-rot) + 3deg)) translate(8px, -14px); }
}

/* ─── Hero cluster ENTRANCE — fade-in + blur clear ─────────────
   We can't animate `transform` for entrance because the float keyframes
   already own that property. So the entrance animation uses opacity +
   filter (blur clears as the image arrives) — these don't conflict.
   After the entrance finishes, the floating animation continues with
   its own delay so the two stages don't overlap. */
@keyframes lg-img-fade-in {
  0%   { opacity: 0; filter: blur(14px) saturate(.78); }
  100% { opacity: 1; filter: blur(0)    saturate(.96); }
}
html.lg-anims .lg-hero-cluster .lg-hero-img {
  opacity: 0;
  filter: blur(14px) saturate(.78);
  /* Two stacked animations: fade-in once, then float forever. The float
     uses its specific name set on each .lg-hero-img--a/b/c/d below. */
  animation-duration: 1.2s, 11s;
  animation-timing-function: var(--lg-ease), ease-in-out;
  animation-iteration-count: 1, infinite;
  animation-direction: normal, alternate;
  animation-fill-mode: forwards, both;
}
html.lg-anims .lg-hero-cluster .lg-hero-img--a {
  animation-name: lg-img-fade-in, lg-float-a;
  animation-delay: .15s, 1.35s;
}
html.lg-anims .lg-hero-cluster .lg-hero-img--b {
  animation-name: lg-img-fade-in, lg-float-b;
  animation-delay: .30s, 1.50s;
}
html.lg-anims .lg-hero-cluster .lg-hero-img--c {
  animation-name: lg-img-fade-in, lg-float-c;
  animation-delay: .45s, 1.65s;
}
html.lg-anims .lg-hero-cluster .lg-hero-img--d {
  animation-name: lg-img-fade-in, lg-float-d;
  animation-delay: .60s, 1.80s;
}

/* ─── Hero text entrance — staggered fade-up on page load ─────
   Only applies when JS has set html.lg-anims, so no-JS users see
   the hero immediately. Pure CSS keyframes — no JS dependency
   beyond the one-line class toggle. */
@keyframes lgHeroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
html.lg-anims .lg-hero-inner > .lg-crumb,
html.lg-anims .lg-hero-inner > .lg-eyebrow,
html.lg-anims .lg-hero-inner > .lg-hero-title,
html.lg-anims .lg-hero-inner > .lg-hero-lead,
html.lg-anims .lg-hero-inner > .lg-hero-meta {
  opacity: 0;
  animation: lgHeroFadeUp .85s var(--lg-ease) both;
}
html.lg-anims .lg-hero-inner > .lg-crumb       { animation-delay: .08s; }
html.lg-anims .lg-hero-inner > .lg-eyebrow     { animation-delay: .20s; }
html.lg-anims .lg-hero-inner > .lg-hero-title  { animation-delay: .32s; }
html.lg-anims .lg-hero-inner > .lg-hero-lead   { animation-delay: .46s; }
html.lg-anims .lg-hero-inner > .lg-hero-meta   { animation-delay: .60s; }

/* TOC sidebar — gentle fade-in once the hero is settling */
html.lg-anims .lg-toc {
  opacity: 0;
  animation: lgHeroFadeUp .8s var(--lg-ease) .55s both;
}

/* Hero text — visible immediately (no stagger that delays paint) */
.lg-crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lg-mute);
  margin-bottom: 22px;
}
.lg-crumb a {
  color: var(--lg-mute);
  text-decoration: none;
  transition: color .25s var(--lg-ease);
}
.lg-crumb a:hover { color: var(--lg-brand-2); }
.lg-crumb span[aria-hidden] { opacity: .5; }

.lg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--lg-brand-2);
  margin-bottom: 18px;
}
.lg-eyebrow::before,
.lg-eyebrow::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--lg-brand-2);
  opacity: .5;
}

.lg-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--lg-ink);
  margin: 0 0 18px;
}
.lg-hero-title em {
  font-style: italic;
  color: var(--lg-brand-2);
  font-weight: 400;
}
.lg-hero-lead {
  max-width: 640px;
  margin: 0 auto;
  font-family: 'Jost', sans-serif;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.65;
  color: var(--lg-mute);
}
.lg-hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--lg-line);
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--lg-mute);
}
.lg-hero-meta svg {
  width: 14px; height: 14px;
  stroke: var(--lg-brand-2);
  fill: none; stroke-width: 1.8;
}

/* ─── Body Grid ───────────────────────────────────────────────── */
.lg-body {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(40px, 7vh, 80px) 24px clamp(60px, 10vh, 120px);
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

/* ─── Sidebar TOC ─────────────────────────────────────────────── */
.lg-toc {
  position: sticky;
  top: 100px;
  padding: 24px 22px;
  background: var(--lg-paper);
  border: 1px solid var(--lg-line);
  border-radius: var(--lg-radius);
  box-shadow: var(--lg-shadow);
}
.lg-toc-label {
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--lg-brand-2);
  font-weight: 600;
  margin-bottom: 14px;
}
.lg-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: lg-toc;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lg-toc li {
  counter-increment: lg-toc;
}
.lg-toc a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  font-family: 'Jost', sans-serif;
  font-size: 13.5px;
  color: var(--lg-ink-2);
  text-decoration: none;
  transition: background .25s var(--lg-ease), color .25s var(--lg-ease);
  line-height: 1.35;
}
.lg-toc a::before {
  content: counter(lg-toc, decimal-leading-zero);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--lg-faint);
  padding-top: 3px;
  flex-shrink: 0;
}
.lg-toc a:hover,
.lg-toc a.is-active {
  background: rgba(46,155,101,0.08);
  color: var(--lg-brand);
}
.lg-toc a.is-active::before { color: var(--lg-brand-2); }

/* ─── Main content ────────────────────────────────────────────── */
.lg-doc {
  font-family: 'Jost', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--lg-ink-2);
  max-width: 760px;
}
.lg-doc section {
  scroll-margin-top: 100px;
  padding-bottom: 36px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--lg-line);
  content-visibility: auto;
  contain-intrinsic-size: 1px 360px;
  /* Default (no-JS / fallback) state: fully visible. JS adds .lg-anims to
     <html> before paint, which hides + offsets these for the reveal. */
  opacity: 1;
  transform: none;
  transition: opacity .7s var(--lg-ease), transform .7s var(--lg-ease);
}
html.lg-anims .lg-doc section {
  opacity: 0;
  transform: translateY(28px);
}
html.lg-anims .lg-doc section.is-reveal {
  opacity: 1;
  transform: none;
}
.lg-doc section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}
.lg-doc h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--lg-ink);
  margin: 0 0 16px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.lg-doc h2 .lg-doc-num {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--lg-brand-2);
  flex-shrink: 0;
}
.lg-doc h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 21px;
  line-height: 1.3;
  color: var(--lg-ink);
  margin: 28px 0 10px;
}
.lg-doc p { margin: 0 0 14px; }
.lg-doc p:last-child { margin-bottom: 0; }
.lg-doc strong { color: var(--lg-ink); font-weight: 600; }
.lg-doc a {
  color: var(--lg-brand-2);
  text-decoration: none;
  border-bottom: 1px solid rgba(46,155,101,0.35);
  transition: border-color .2s var(--lg-ease), color .2s var(--lg-ease);
}
.lg-doc a:hover {
  color: var(--lg-brand);
  border-bottom-color: var(--lg-brand);
}
.lg-doc ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.lg-doc ul li {
  position: relative;
  padding: 4px 0 4px 22px;
}
.lg-doc ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 14px;
  width: 8px; height: 8px;
  border: 1.5px solid var(--lg-brand-2);
  transform: rotate(45deg);
}

/* ─── Inline image break ──────────────────────────────────────── */
.lg-break {
  position: relative;
  margin: 36px -28px;
  height: clamp(220px, 38vw, 360px);
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  box-shadow: var(--lg-shadow);
  content-visibility: auto;
  contain-intrinsic-size: 1px 320px;
  opacity: 1;
  transform: none;
  transition: transform .8s var(--lg-ease), opacity .6s var(--lg-ease);
}
html.lg-anims .lg-break {
  opacity: 0;
  transform: translateY(28px) scale(.98);
}
html.lg-anims .lg-break.is-reveal {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.lg-break-bg {
  position: absolute;
  inset: -6%;
  background-size: cover;
  background-position: center;
  /* Default (no-JS): no zoom. JS-enabled state below starts zoomed in. */
  transform: scale(1);
  transition: transform 8s ease-out, opacity 1.2s var(--lg-ease);
  will-change: transform;
  opacity: 1;
}
html.lg-anims .lg-break-bg {
  transform: scale(1.18);
  opacity: 0;
}
html.lg-anims .lg-break.is-reveal .lg-break-bg {
  /* Snappy fade-in, then a slow ken-burns settle from 1.18 → 1.0 */
  transform: scale(1.0);
  opacity: 1;
}
.lg-break::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(15,26,20,0.55) 0%, rgba(15,26,20,0.12) 50%, rgba(15,26,20,0) 100%);
}
.lg-break-cap {
  position: absolute;
  z-index: 1;
  left: 28px;
  bottom: 26px;
  right: 28px;
  color: #fff;
  max-width: 480px;
}
.lg-break-eyebrow {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--lg-gold-l);
  margin-bottom: 8px;
}
.lg-break-line {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.2;
  font-weight: 400;
  margin: 0;
  text-shadow: 0 2px 16px rgba(0,0,0,0.35);
}

/* ─── Visual side card (paired with content) ─────────────────── */
.lg-aside-img {
  margin: 24px 0;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  box-shadow: var(--lg-shadow);
}
.lg-aside-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(15,26,20,0.45) 100%);
}
.lg-aside-img-label {
  position: absolute;
  left: 18px; bottom: 14px;
  z-index: 1;
  color: #fff;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* Callout cards */
.lg-callout {
  margin: 18px 0;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(46,155,101,0.08), rgba(200,163,90,0.06));
  border: 1px solid var(--lg-line);
  border-left: 3px solid var(--lg-brand-2);
  border-radius: 12px;
  font-size: 14.5px;
  color: var(--lg-ink-2);
}
.lg-callout strong { color: var(--lg-brand); }

/* ─── Help-specific: searchable cards ─────────────────────────── */
.lg-search {
  position: relative;
  max-width: 540px;
  margin: 26px auto 0;
}
.lg-search input {
  width: 100%;
  height: 56px;
  padding: 0 56px 0 20px;
  border-radius: 999px;
  border: 1px solid var(--lg-line-2);
  background: var(--lg-paper);
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  color: var(--lg-ink);
  box-shadow: var(--lg-shadow);
  outline: none;
  transition: border-color .25s var(--lg-ease), box-shadow .25s var(--lg-ease);
}
.lg-search input:focus {
  border-color: var(--lg-brand-2);
  box-shadow: 0 0 0 4px rgba(46,155,101,0.10), var(--lg-shadow);
}
.lg-search svg {
  position: absolute;
  right: 22px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  stroke: var(--lg-mute);
  fill: none; stroke-width: 1.8;
  pointer-events: none;
}

.lg-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin: 18px 0 26px;
}
.lg-card {
  display: block;
  padding: 20px;
  background: var(--lg-paper);
  border: 1px solid var(--lg-line);
  border-radius: 14px;
  text-decoration: none;
  transition: transform .35s var(--lg-ease), box-shadow .35s var(--lg-ease),
              border-color .35s var(--lg-ease), opacity .6s var(--lg-ease);
  overflow: hidden;
  position: relative;
  opacity: 1;
  transform: none;
}
html.lg-anims .lg-card {
  opacity: 0;
  transform: translateY(22px);
}
html.lg-anims .lg-card.is-reveal {
  opacity: 1;
  transform: none;
}
/* Stagger the first batch of cards in a grid so they don't all snap together */
html.lg-anims .lg-cards .lg-card:nth-child(1)  { transition-delay: 0s; }
html.lg-anims .lg-cards .lg-card:nth-child(2)  { transition-delay: .06s; }
html.lg-anims .lg-cards .lg-card:nth-child(3)  { transition-delay: .12s; }
html.lg-anims .lg-cards .lg-card:nth-child(4)  { transition-delay: .18s; }
html.lg-anims .lg-cards .lg-card:nth-child(5)  { transition-delay: .24s; }
html.lg-anims .lg-cards .lg-card:nth-child(6)  { transition-delay: .30s; }
.lg-card:hover {
  transform: translateY(-5px);
  border-color: var(--lg-brand-2);
  box-shadow: 0 18px 36px -10px rgba(15,26,20,0.18), 0 4px 10px -4px rgba(15,26,20,0.10);
}
.lg-card-photo {
  display: block;
  width: calc(100% + 40px);
  margin: -20px -20px 14px;
  height: 110px;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform 0.6s var(--lg-ease), opacity .7s var(--lg-ease);
  opacity: 1;
  overflow: hidden;
}
.lg-card:hover .lg-card-photo {
  transform: scale(1.06);
}
/* Reveal-time entrance: each card's photo zooms from 1.12 → 1 + fades in
   as the card itself fades up. The hover scale (1.06) still works after. */
html.lg-anims .lg-card-photo {
  opacity: 0;
  transform: scale(1.12);
}
html.lg-anims .lg-card.is-reveal .lg-card-photo {
  opacity: 1;
  transform: scale(1);
}
html.lg-anims .lg-card.is-reveal:hover .lg-card-photo {
  transform: scale(1.06);
}
.lg-card-ico {
  transition: background 0.35s var(--lg-ease), transform 0.4s var(--lg-spring);
}
.lg-card:hover .lg-card-ico {
  background: rgba(46,155,101,0.18);
  transform: translateY(-2px) rotate(-6deg);
}
.lg-card-ico {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(46,155,101,0.10);
  margin-bottom: 12px;
}
.lg-card-ico svg {
  width: 18px; height: 18px;
  stroke: var(--lg-brand-2);
  fill: none; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.lg-card-title {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px;
  font-weight: 600;
  color: var(--lg-ink);
  margin-bottom: 4px;
}
.lg-card-sub {
  display: block;
  font-size: 13.5px;
  color: var(--lg-mute);
  line-height: 1.45;
  border-bottom: 0 !important;
}

/* FAQ accordion */
.lg-faq {
  border-top: 1px solid var(--lg-line);
  margin-top: 18px;
}
.lg-faq details {
  border-bottom: 1px solid var(--lg-line);
  padding: 18px 0;
}
.lg-faq summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 40px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--lg-ink);
}
.lg-faq summary::-webkit-details-marker { display: none; }
.lg-faq summary::after {
  content: '+';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(46,155,101,0.10);
  color: var(--lg-brand-2);
  font-size: 18px;
  font-weight: 400;
  display: grid; place-items: center;
  transition: transform .25s var(--lg-ease), background .25s var(--lg-ease);
}
.lg-faq details[open] summary::after {
  content: '−';
  background: var(--lg-brand-2);
  color: #fff;
}
.lg-faq details > p,
.lg-faq details > div {
  margin-top: 12px;
  color: var(--lg-mute);
  font-size: 15px;
  line-height: 1.7;
}

/* ─── CTA Strip ───────────────────────────────────────────────── */
.lg-cta {
  max-width: 1180px;
  margin: 0 auto clamp(60px, 10vh, 120px);
  padding: clamp(36px, 6vw, 60px);
  border-radius: 22px;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(46,155,101,0.18), transparent 70%),
    linear-gradient(135deg, #0f1a14, #1a2c22);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr clamp(220px, 28%, 320px);
  align-items: center;
  gap: 36px;
  position: relative;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: 1px 320px;
  opacity: 1;
  transform: none;
  transition: opacity .7s var(--lg-ease), transform .7s var(--lg-ease);
}
html.lg-anims .lg-cta {
  opacity: 0;
  transform: translateY(32px);
}
html.lg-anims .lg-cta.is-reveal {
  opacity: 1;
  transform: none;
}
.lg-cta-img-inner {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform 7s ease-out, opacity 1s var(--lg-ease);
  opacity: 1;
}
html.lg-anims .lg-cta-img-inner {
  transform: scale(1.15);
  opacity: 0;
}
html.lg-anims .lg-cta.is-reveal .lg-cta-img-inner {
  transform: scale(1);
  opacity: 1;
}
.lg-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 90%, rgba(200,163,90,0.18), transparent 50%);
  pointer-events: none;
}
.lg-cta-img {
  position: relative;
  height: 220px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 40px -10px rgba(0,0,0,0.4);
  border: 3px solid rgba(255,255,255,0.08);
  overflow: hidden;
}
.lg-cta-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,26,20,0.25), transparent 60%);
}
.lg-cta-text {
  position: relative;
  flex: 1 1 320px;
  min-width: 0;
}
.lg-cta-eyebrow {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--lg-gold-l);
  margin-bottom: 10px;
}
.lg-cta-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(26px, 3.5vw, 36px);
  line-height: 1.15;
  margin: 0 0 8px;
}
.lg-cta-title em { font-style: italic; color: var(--lg-gold-l); font-weight: 400; }
.lg-cta-sub {
  font-family: 'Jost', sans-serif;
  font-size: 14.5px;
  color: rgba(255,255,255,0.72);
  margin: 0;
  max-width: 480px;
}
.lg-cta-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.lg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-family: 'Jost', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: transform .25s var(--lg-ease), background .25s var(--lg-ease), color .25s var(--lg-ease);
}
.lg-btn--primary {
  background: #fff;
  color: var(--lg-ink);
}
.lg-btn--primary:hover {
  background: var(--lg-gold-l);
  transform: translateY(-2px);
}
.lg-btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}
.lg-btn--ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.6);
}
.lg-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .lg-hero-img--c, .lg-hero-img--d { display: none; }
  .lg-hero-img--a { top: 4%; left: 2%; width: clamp(120px, 14vw, 180px); }
  .lg-hero-img--b { top: 6%; right: 2%; width: clamp(110px, 13vw, 170px); }
}

@media (max-width: 960px) {
  .lg-body {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: clamp(32px, 5vh, 60px) 20px clamp(48px, 8vh, 100px);
  }
  .lg-toc {
    position: static;
    top: auto;
    padding: 18px 16px;
  }
  .lg-toc-label { margin-bottom: 10px; }
  .lg-toc ol {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 4px;
  }
  .lg-toc a { padding: 8px 10px; font-size: 13px; }
  .lg-cta { grid-template-columns: 1fr; }
  .lg-cta-img { height: 180px; order: -1; }
  .lg-break { margin: 28px 0; }
}

@media (max-width: 760px) {
  /* Cluster shrinks but stays visible at the very top/bottom corners */
  .lg-hero-img--a, .lg-hero-img--b {
    width: clamp(90px, 22vw, 130px);
    top: 2%;
  }
  .lg-hero-img--a { left: -3%; }
  .lg-hero-img--b { right: -3%; }
  .lg-hero-img--c, .lg-hero-img--d {
    display: none;
  }
  /* On tablets the TOC grid can crowd — switch to a horizontal scroll row
     so users can flick through chapters without sacrificing the full
     content area below. */
  .lg-toc ol {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 4px;
    margin: 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .lg-toc ol::-webkit-scrollbar { height: 4px; }
  .lg-toc ol::-webkit-scrollbar-thumb { background: var(--lg-line-2); border-radius: 2px; }
  .lg-toc li { flex: 0 0 auto; scroll-snap-align: start; }
  .lg-toc a { white-space: nowrap; min-width: 0; }
}

@media (max-width: 640px) {
  .lg-hero { padding: 60px 18px 36px; }
  .lg-hero-cluster { display: none; }
  .lg-crumb { font-size: 10px; margin-bottom: 16px; }
  .lg-eyebrow { font-size: 10px; }
  .lg-eyebrow::before, .lg-eyebrow::after { width: 18px; }
  .lg-hero-title { font-size: clamp(32px, 9vw, 44px); }
  .lg-hero-lead { font-size: 14.5px; line-height: 1.6; }
  .lg-body { padding: 28px 18px 60px; }
  .lg-doc { font-size: 15px; line-height: 1.7; max-width: 100%; }
  .lg-doc section {
    padding-bottom: 28px;
    margin-bottom: 28px;
  }
  .lg-doc h2 { flex-direction: column; gap: 4px; }
  .lg-doc h2 .lg-doc-num { font-size: 11px; }
  .lg-doc h3 { font-size: 19px; margin-top: 22px; }
  .lg-cards { grid-template-columns: 1fr; gap: 12px; }
  .lg-break {
    margin: 24px 0;
    height: 220px;
    border-radius: 14px;
  }
  .lg-break-cap { left: 18px; right: 18px; bottom: 18px; }
  .lg-break-line { font-size: 20px; }
  .lg-cta { padding: 28px 22px; margin: 0 18px clamp(40px, 8vh, 80px); gap: 22px; }
  .lg-cta-img { height: 150px; }
  .lg-cta-actions { width: 100%; display: flex; flex-wrap: wrap; }
  .lg-btn { flex: 1 1 140px; justify-content: center; }
  .lg-card-photo { height: 90px; }
  /* Lighter fade-up offset on small phones — large translateY feels jumpy */
  html.lg-anims .lg-doc section,
  html.lg-anims .lg-card,
  html.lg-anims .lg-break,
  html.lg-anims .lg-cta {
    transform: translateY(18px);
  }
  html.lg-anims .lg-doc section.is-reveal,
  html.lg-anims .lg-card.is-reveal,
  html.lg-anims .lg-break.is-reveal,
  html.lg-anims .lg-cta.is-reveal {
    transform: none;
  }
}

@media (max-width: 420px) {
  .lg-hero { padding: 52px 14px 30px; }
  .lg-hero-title { font-size: clamp(28px, 10vw, 36px); }
  .lg-body { padding: 22px 14px 48px; }
  .lg-toc { padding: 14px 12px; border-radius: 14px; }
  .lg-cta { padding: 24px 18px; margin: 0 14px clamp(36px, 7vh, 64px); border-radius: 18px; }
  .lg-cta-title { font-size: 24px; }
  .lg-search input { height: 50px; font-size: 14px; padding: 0 50px 0 16px; }
  .lg-faq summary { font-size: 18px; padding-right: 36px; }
}

/* Honour users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html.lg-anims .lg-hero-cluster .lg-hero-img,
  html.lg-anims .lg-hero-inner > *,
  html.lg-anims .lg-toc,
  html.lg-anims .lg-doc section,
  html.lg-anims .lg-card,
  html.lg-anims .lg-break,
  html.lg-anims .lg-cta,
  .lg-break-bg,
  .lg-cta-img-inner {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
