/* The privacy policy as a scroll story: a parallax cave-mouth opening, "In short" cards, five
   acts, chapters with drifting numerals, and a split scene for "What we never receive".
   Everything is readable without JavaScript and without motion: legal.js only adds depth. */

.lg { --rail-w: 220px; --text-w: 44rem; }

/* ------------------------------------------------------------ opening scene */
.lg-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(120% 70% at 50% 100%, #14110b 0%, var(--bg-obsidian) 62%);
}
.lg-hero-art { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.lg-hero-art > * { position: absolute; left: -5%; width: 110%; will-change: transform; }
.lg-glow {
  left: 15%; width: 70%; height: 70%; bottom: 8%;
  background: radial-gradient(closest-side, rgba(229, 169, 60, 0.30), rgba(229, 169, 60, 0.08) 55%, transparent 75%);
  filter: blur(12px);
}
/* every ridge reaches the bottom of the scene, so the layers overlap at any width */
.lg-ridge { bottom: -2%; display: block; }
/* heights capped by width, so narrow screens get rolling ridges, not stretched spikes */
.lg-ridge-back { height: min(58%, 52vw); opacity: .9; }
.lg-ridge-mid { height: min(40%, 36vw); }
.lg-ridge-front { height: min(22%, 20vw); }
.lg-hero-copy {
  width: min(var(--text-w), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  padding: calc(var(--header-h) + 2rem) 0 6rem;
  text-align: center;
  will-change: transform, opacity;
}
.lg-kicker { margin: 0 0 1rem; color: var(--accent-amber); font: 600 .78rem/1 var(--font-sans); letter-spacing: .22em; text-transform: uppercase; }
.lg-hero h1 { margin: 0; font: 700 clamp(2.9rem, 9vw, 6.2rem)/.98 var(--font-display); letter-spacing: -0.035em; }
.lg-lede { margin: 1.4rem auto 0; max-width: 34rem; color: var(--text-secondary); font: 400 clamp(1.05rem, 2.2vw, 1.3rem)/1.5 var(--font-sans); }
.lg-meta { margin: 1.6rem 0 0; color: var(--text-muted); font: 500 .86rem/1.4 var(--font-sans); }
.lg-cue { position: absolute; left: 50%; bottom: 2.2rem; translate: -50% 0; display: grid; justify-items: center; gap: .55rem; color: var(--text-muted); font: 600 .7rem/1 var(--font-sans); letter-spacing: .2em; text-transform: uppercase; }
.lg-cue::after { content: ""; width: 1px; height: 38px; background: linear-gradient(var(--accent-amber), transparent); animation: lg-cue 2.4s ease-in-out infinite; transform-origin: top; }
@keyframes lg-cue { 0%, 100% { transform: scaleY(.35); opacity: .5; } 50% { transform: scaleY(1); opacity: 1; } }

/* ------------------------------------------------------------ in short */
.lg-short { width: min(72rem, calc(100% - 2 * var(--gutter))); margin: 0 auto; padding: 5rem 0 3rem; }
.lg-short h2 { margin: 0 0 1.6rem; font: 700 clamp(1.6rem, 3.4vw, 2.3rem)/1.1 var(--font-display); letter-spacing: -0.02em; text-align: center; }
.lg-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 196px), 1fr)); }
.lg-cards li {
  position: relative; padding: 1.35rem 1.35rem 1.4rem; border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  border: 1px solid var(--border-hairline);
  color: var(--text-ivory); font: 400 1rem/1.55 var(--font-sans);
  transition-delay: var(--d, 0ms);
}
.lg-cards li::before { content: counter(lg-card, decimal-leading-zero); counter-increment: lg-card; display: block; margin-bottom: .7rem; color: var(--accent-amber); font: 600 .78rem/1 var(--font-mono); letter-spacing: .08em; }
.lg-cards { counter-reset: lg-card; }

/* ------------------------------------------------------------ story: rail + chapters */
.lg-story { position: relative; width: min(72rem, calc(100% - 2 * var(--gutter))); margin: 0 auto; padding-bottom: 6rem; }
.lg-rail { display: none; }
@media (min-width: 1180px) {
  .lg-story { display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); gap: 4rem; }
  .lg-rail { display: block; position: sticky; top: calc(var(--header-h) + 2.5rem); align-self: start; padding-left: 18px; }
  .lg-rail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
  .lg-rail a { display: block; padding: .32rem 0; color: var(--text-muted); font: 500 .85rem/1.3 var(--font-sans); text-decoration: none; transition: color .3s; }
  .lg-rail a:hover, .lg-rail a:focus-visible { color: var(--text-ivory); }
  .lg-rail a[aria-current] { color: var(--text-ivory); }
  .lg-rail a[aria-current]::before { content: ""; position: absolute; left: 0; width: 6px; height: 6px; margin-top: .42em; border-radius: 50%; background: var(--accent-amber); box-shadow: 0 0 10px rgba(229,169,60,.7); }
  .lg-rail-track { position: absolute; left: 2px; top: 0; bottom: 0; width: 1px; background: var(--border-hairline); }
  .lg-rail-bar { position: absolute; inset: 0; background: linear-gradient(var(--accent-amber), rgba(229,169,60,.25)); transform-origin: top; transform: scaleY(0); }
}
.lg-chapters { max-width: var(--text-w); }

.lg-act { position: relative; padding: 6rem 0 2.5rem; }
.lg-act-word {
  display: block; max-width: 13ch;
  font: 700 clamp(2.5rem, 6.4vw, 4.8rem)/.98 var(--font-display); letter-spacing: -0.035em;
  background: linear-gradient(180deg, rgba(229, 169, 60, 0.55), rgba(229, 169, 60, 0.12));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  will-change: transform;
}
.lg-act-inner { will-change: transform; }
.lg-act-label { display: block; margin-bottom: .9rem; color: var(--accent-amber); font: 600 .74rem/1 var(--font-sans); letter-spacing: .22em; text-transform: uppercase; }

.lg-chapter { position: relative; padding: 2.4rem 0 1.2rem; scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.lg-num { position: absolute; right: -0.04em; top: -.2rem; z-index: -1; font: 700 clamp(5.5rem, 15vw, 10rem)/1 var(--font-display); letter-spacing: -0.05em; color: rgba(255,255,255,.035); pointer-events: none; user-select: none; will-change: transform; }
.lg-chapter h2 { margin: 0 0 .9rem; font: 700 clamp(1.45rem, 3vw, 1.85rem)/1.15 var(--font-display); letter-spacing: -0.02em; }
.lg-chapter h2 .lg-n { color: var(--accent-amber); margin-right: .4rem; font-variant-numeric: tabular-nums; }
.lg-chapter h3 { margin: 1.8rem 0 .5rem; font: 600 1.05rem/1.35 var(--font-sans); }
.lg-chapter p, .lg-chapter li, .lg-chapter address { color: rgba(245, 243, 238, 0.86); font: 400 1.02rem/1.7 var(--font-sans); }
.lg-chapter address { font-style: normal; margin: 0 0 .8rem; color: var(--text-ivory); }
.lg-chapter ul { margin: .6rem 0 0; padding-left: 1.15rem; }
.lg-chapter li { margin: .55rem 0; }
.lg-chapter li::marker { color: var(--accent-amber); }
.lg-chapter strong { color: var(--text-ivory); font-weight: 600; }
.lg-chapter a { color: var(--text-ivory); text-decoration: underline; text-decoration-color: rgba(229,169,60,.6); text-underline-offset: 3px; }

/* the data table: a table on wide screens, stacked cards on phones */
.lg-table { width: 100%; border-collapse: collapse; margin: .6rem 0 1.4rem; font: 400 .95rem/1.55 var(--font-sans); }
.lg-table th, .lg-table td { text-align: left; vertical-align: top; padding: .8rem .7rem; border-bottom: 1px solid var(--border-hairline); color: rgba(245,243,238,.86); }
.lg-table th { color: var(--text-secondary); font-weight: 600; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.lg-table td:first-child { color: var(--text-ivory); font-weight: 600; width: 22%; }
.lg-table tbody tr { transition: background .3s; }
.lg-table tbody tr:hover { background: rgba(255,255,255,.02); }
@media (max-width: 720px) {
  .lg-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .lg-table, .lg-table tbody, .lg-table tr, .lg-table td { display: block; width: auto; }
  .lg-table tr { margin: 0 0 12px; padding: 1rem 1.1rem; border: 1px solid var(--border-hairline); border-radius: 16px; background: rgba(255,255,255,.02); }
  .lg-table td { padding: .2rem 0; border: 0; }
  .lg-table td:first-child { width: auto; font-size: 1.02rem; margin-bottom: .3rem; }
  .lg-table td[data-label]::before { content: attr(data-label); display: block; margin-top: .55rem; color: var(--text-muted); font: 600 .7rem/1.4 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; }
}

/* section 5: what stays with you vs. what the account holds */
.lg-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 1.4rem 0 1.2rem; }
.lg-side { padding: 1.2rem 1.25rem 1.3rem; border-radius: 18px; border: 1px solid var(--border-hairline); }
.lg-side h4 { margin: 0 0 .8rem; font: 600 .74rem/1.3 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; }
.lg-side ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.lg-side li { margin: 0; padding: .32rem .62rem; border-radius: 999px; font: 500 .84rem/1.2 var(--font-sans); transition-delay: var(--d, 0ms); }
.lg-side-yours { background: linear-gradient(160deg, rgba(229,169,60,.12), rgba(229,169,60,.02)); border-color: rgba(229,169,60,.35); }
.lg-side-yours h4 { color: var(--accent-amber); }
.lg-side-yours li { background: rgba(229,169,60,.14); color: #f6dfb2; }
.lg-side-ours h4 { color: var(--text-secondary); }
.lg-side-ours li { background: rgba(255,255,255,.05); color: var(--text-secondary); }
@media (max-width: 560px) { .lg-split { grid-template-columns: 1fr; } }

/* reveal stagger inside lists (site.css owns .reveal / .is-in) */
.js .lg .reveal { transition-delay: var(--d, 0ms); }

/* ------------------------------------------------------------ motion and media preferences */
@media (prefers-reduced-motion: reduce) {
  .lg-hero-art > *, .lg-hero-copy, .lg-num, .lg-act-inner { transform: none !important; opacity: 1 !important; }
  .lg-cue::after { animation: none; }
}
@media print {
  .site-header, .site-footer, .lg-hero-art, .lg-cue, .lg-rail, .lg-act, .lg-num, .lg-split { display: none !important; }
  body, .lg-hero { background: #fff !important; color: #000 !important; }
  .lg-hero { min-height: 0; }
  .lg-hero-copy { padding: 0 0 1rem; text-align: left; opacity: 1 !important; transform: none !important; }
  .lg-hero h1, .lg-chapter h2, .lg-chapter h3, .lg-chapter strong, .lg-chapter address, .lg-table td:first-child { color: #000 !important; }
  .lg-lede, .lg-meta, .lg-chapter p, .lg-chapter li, .lg-table td, .lg-cards li { color: #222 !important; }
  .lg-cards li { border: 1px solid #ccc; background: none; }
  .js .reveal { opacity: 1 !important; translate: none !important; }
}
