/* =========================================================================
   TERMSANDCONDITIONS.aspx  -  "Clear Water"  -  prefixes: trm-hero- , trm- (layout/toc/sec)
   ---------------------------------------------------------------------------
   Uses Site.Master. All CSS here (no inline). Mirrors Privacy. Compact hero + sticky scrollspy
   TOC with reading-progress fill + 15 numbered sections.
   eau-essentials.css stays untouched.
   ========================================================================= */

/* =========================== SECTION 1 : HERO =========================== */
.trm-hero { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: clamp(74px, 9vw, 122px) 0 clamp(42px, 5vw, 66px); background: radial-gradient(130% 100% at 50% 0%, #0C1719, var(--ink-950) 72%); }
.trm-hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.trm-hero-bg .orb { position: absolute; width: 52vw; max-width: 640px; aspect-ratio: 1; top: -20%; left: 50%; transform: translateX(-50%); border-radius: 50%; filter: blur(150px); background: radial-gradient(circle, rgba(79,178,147,0.18), transparent 64%); animation: trmPulse 14s ease-in-out infinite; }
.trm-hero-bg .vignette { position: absolute; inset: 0; background: radial-gradient(130% 95% at 50% 6%, transparent 56%, var(--ink-950)); }
.trm-hero-motif { position: absolute; top: 50%; left: 50%; width: clamp(260px, 38vw, 420px); transform: translate(-50%, -48%); opacity: 0.06; z-index: 0; }
.trm-hero-motif svg { width: 100%; height: auto; stroke: var(--jade-300); stroke-width: 1; fill: none; }

.trm-hero-wrap { position: relative; z-index: 1; max-width: 780px; margin-inline: auto; padding-inline: var(--pad-x); }
.trm-hero-crumbs { display: inline-flex; align-items: center; gap: 0.5em; font-size: 0.8rem; color: var(--text-muted); margin-bottom: clamp(14px, 1.8vw, 20px); }
.trm-hero-crumbs a { color: var(--text-soft); text-decoration: none; border-bottom: 1px solid transparent; transition: color var(--t) var(--ease), border-color var(--t) var(--ease); }
.trm-hero-crumbs a:hover { color: var(--gold-200); border-color: var(--line-gold); }
.trm-hero-crumbs .sep { color: var(--text-faint); }
.trm-hero-crumbs [aria-current] { color: var(--text); }
.trm-hero-eyebrow { display: inline-flex; align-items: center; gap: 0.6em; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--jade-300); }
.trm-hero-eyebrow::before, .trm-hero-eyebrow::after { content: ""; width: 26px; height: 1px; background: var(--jade-500); opacity: 0.6; }
.trm-hero-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.1rem, 1.5rem + 2.8vw, 3.5rem); line-height: 1.05; letter-spacing: -0.02em; color: var(--text-strong); margin: clamp(12px, 1.4vw, 18px) 0 0; text-wrap: balance; }
.trm-hero-title em { font-style: italic; background: var(--grad-jade); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.trm-hero-lead { font-size: clamp(1.02rem, 0.96rem + 0.4vw, 1.18rem); line-height: 1.62; color: var(--text-soft); margin: clamp(14px, 1.6vw, 20px) auto 0; max-width: 56ch; }
.trm-hero-updated { display: inline-flex; align-items: center; gap: 0.55em; margin-top: clamp(20px, 2.4vw, 28px); padding: 0.5em 1.05em; border-radius: var(--r-pill); background: var(--ink-800); border: 1px solid var(--line); font-size: 0.84rem; color: var(--text-soft); }
.trm-hero-updated svg { width: 15px; height: 15px; stroke: var(--jade-300); stroke-width: 1.7; fill: none; flex: none; }
.trm-hero-updated strong { color: var(--text); font-weight: 600; }

.trm-hero-crumbs, .trm-hero-eyebrow, .trm-hero-title, .trm-hero-lead, .trm-hero-updated { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.trm-hero.is-in .trm-hero-crumbs { opacity: 1; transform: none; transition-delay: 0.04s; }
.trm-hero.is-in .trm-hero-eyebrow { opacity: 1; transform: none; transition-delay: 0.12s; }
.trm-hero.is-in .trm-hero-title { opacity: 1; transform: none; transition-delay: 0.2s; }
.trm-hero.is-in .trm-hero-lead { opacity: 1; transform: none; transition-delay: 0.28s; }
.trm-hero.is-in .trm-hero-updated { opacity: 1; transform: none; transition-delay: 0.36s; }

/* =========================== SECTION 2 : POLICY ========================= */
.trm-main { position: relative; background: linear-gradient(180deg, var(--ink-950), var(--ink-900)); border-top: 1px solid var(--line); padding: clamp(44px, 5.5vw, 80px) 0 clamp(56px, 7vw, 96px); }
.trm-grid { max-width: var(--container); margin-inline: auto; padding-inline: var(--pad-x); display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }

/* ---- sticky TOC + progress ---- */
.trm-toc { position: sticky; top: calc(var(--trm-head-h, 72px) + 24px); align-self: start; }
.trm-toc-label { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 1.1em 1.2em; }
.trm-toc-inner { position: relative; padding-left: 1.2em; }
.trm-toc-rail { position: absolute; left: 0; top: 2px; bottom: 2px; width: 2px; background: rgba(244,242,234,0.08); border-radius: 2px; overflow: hidden; }
.trm-toc-fill { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: var(--grad-jade); border-radius: 2px; box-shadow: 0 0 8px rgba(79,178,147,0.5); transition: height 0.12s linear; }
.trm-toc-list { display: flex; flex-direction: column; gap: 0.1em; margin: 0; padding: 0; list-style: none; }
.trm-toc-link { display: block; font-size: 0.88rem; line-height: 1.4; color: var(--text-muted); text-decoration: none; padding: 0.4em 0; transition: color var(--t) var(--ease), transform var(--t) var(--ease); }
.trm-toc-link:hover { color: var(--text); }
.trm-toc-link.is-active { color: var(--jade-200); font-weight: 600; transform: translateX(2px); }

/* ---- reading column + sections ---- */
.trm-body { min-width: 0; max-width: 760px; }
.trm-intro { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); line-height: 1.65; color: var(--text); padding-bottom: clamp(20px, 2.6vw, 30px); }
.trm-sec { padding-block: clamp(26px, 3.2vw, 40px); scroll-margin-top: calc(var(--trm-head-h, 72px) + 24px); }
.trm-sec:not(:first-of-type) { border-top: 1px solid var(--line); }
.trm-sec-head { display: flex; align-items: center; gap: 0.7em; margin-bottom: clamp(14px, 1.6vw, 20px); }
.trm-sec-num { flex: none; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; color: var(--jade-300); background: var(--jade-soft); border: 1px solid var(--line-jade); border-radius: var(--r-sm); padding: 0.25em 0.55em; }
.trm-sec-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.28rem, 1.1rem + 0.7vw, 1.65rem); line-height: 1.22; color: var(--text-strong); }
.trm-sec-body p { font-size: 1rem; line-height: 1.72; color: var(--text-soft); margin: 0 0 1em; }
.trm-sec-body p:last-child { margin-bottom: 0; }
.trm-sec-body strong { color: var(--text-strong); font-weight: 600; }
.trm-sec-body a { color: var(--jade-200); text-decoration: none; border-bottom: 1px solid var(--line-jade); transition: color var(--t) var(--ease); }
.trm-sec-body a:hover { color: var(--jade-100); }
.trm-sec-body ul { margin: 0 0 1em; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.6em; }
.trm-sec-body li { position: relative; padding-left: 1.6em; font-size: 1rem; line-height: 1.6; color: var(--text-soft); }
.trm-sec-body li::before { content: ""; position: absolute; left: 0.1em; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--jade-400); box-shadow: 0 0 8px rgba(79,178,147,0.45); }
.trm-callout { margin: 0 0 1em; padding: 0.95em 1.15em; border-radius: var(--r-md); background: rgba(111,182,198,0.08); border: 1px solid rgba(111,182,198,0.3); border-left-width: 3px; color: var(--text); font-size: 0.98rem; line-height: 1.6; }
.trm-callout strong { color: var(--info); }

/* ---- reveal ---- */
.trm-sec, .trm-intro { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.trm-sec.is-in, .trm-intro.is-in { opacity: 1; transform: none; }

/* ---- responsive ---- */
@media (max-width: 900px) {
    .trm-grid { grid-template-columns: 1fr; gap: clamp(8px, 2vw, 18px); }
    .trm-toc { position: static; padding: clamp(16px, 2vw, 20px); border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--ink-800); margin-bottom: clamp(10px, 2vw, 16px); }
    .trm-toc-rail { display: none; }
    .trm-toc-inner { padding-left: 0; }
    .trm-toc-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.1em 1.4em; }
}
@media (max-width: 540px) { .trm-toc-list { grid-template-columns: 1fr; } }

/* ---- keyframes ---- */
@keyframes trmPulse { 0%, 100% { opacity: 0.78; transform: translateX(-50%) scale(1); } 50% { opacity: 1; transform: translateX(-50%) scale(1.07); } }

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    .trm-hero-crumbs, .trm-hero-eyebrow, .trm-hero-title, .trm-hero-lead, .trm-hero-updated, .trm-sec, .trm-intro { opacity: 1 !important; transform: none !important; transition: none !important; }
    .trm-hero-bg .orb { animation: none !important; }
    .trm-toc-fill { transition: none !important; }
}

/* =========================================================================
   END  -  Terms & Conditions styles.
   ========================================================================= */
