/* ==========================================================================
   Triple Eight Advisory - Legal documents (Privacy / Terms)
   Ported from src/sections/LegalDoc.tsx. Depends on theme.css tokens +
   .te-ring-motif.
   ========================================================================== */

.lg-btn { display: inline-flex; align-items: center; gap: 0.625rem; padding: 0.875rem 1.75rem; border-radius: var(--te-radius-md); font-size: 14px; font-weight: 600; text-decoration: none; transition: transform 0.2s var(--te-ease), background 0.2s var(--te-ease); }
.lg-btn .icon { width: 16px; height: 16px; }
.lg-btn--gold { background: var(--te-gold); color: var(--te-navy-deep); box-shadow: 0 14px 30px -14px var(--te-gold); }
.lg-btn--gold:hover { transform: translateY(-2px); color: var(--te-navy-deep); }
.lg-btn--ghost { color: #fff; background: rgb(255 255 255 / 0.06); border: 1.5px solid rgb(231 213 168 / 0.4); }
.lg-btn--ghost:hover { background: rgb(255 255 255 / 0.12); color: #fff; }

/* ---------------- Hero ---------------- */
.lg-hero { position: relative; overflow: hidden; background: var(--te-navy-deep); }
.lg-hero__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 78% 12%, rgb(201 162 75 / 0.15), transparent 58%); }
.lg-hero__motif { position: absolute; top: -8rem; right: -7rem; opacity: 0.1; pointer-events: none; }
.lg-hero__inner { position: relative; max-width: 77.5rem; margin-inline: auto; padding: 5rem 1.5rem; }
@media (min-width: 768px) { .lg-hero__inner { padding: 6rem 4rem 7rem; } }
.lg-hero__crumbs { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.375rem 1rem; border-radius: 999px; background: rgb(255 255 255 / 0.06); border: 1px solid rgb(231 213 168 / 0.25); font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.lg-hero__crumbs a { color: var(--te-silver-soft); text-decoration: none; }
.lg-hero__crumbs a:hover { color: #fff; }
.lg-hero__crumbs > span { color: var(--te-silver); }
.lg-hero__crumb-current { color: var(--te-gold-soft); letter-spacing: 0.22em; }
.lg-hero__title { margin: 2rem 0 0; max-width: 48rem; font-family: var(--te-font-display); font-weight: 500; font-size: clamp(2.5rem, 1.9rem + 3vw, 4rem); line-height: 1.05; letter-spacing: -0.02em; color: #fff; }
.lg-hero__title em { font-style: italic; color: var(--te-gold-soft); }
.lg-hero__intro { margin: 1.75rem 0 0; max-width: 41rem; font-size: 1.0625rem; line-height: 1.75; color: var(--te-silver-soft); }
.lg-hero__ctas { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.lg-hero__meta { margin-top: 3.5rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; overflow: hidden; border-radius: var(--te-radius-md); background: rgb(231 213 168 / 0.18); border: 1px solid rgb(231 213 168 / 0.2); }
@media (min-width: 768px) { .lg-hero__meta { grid-template-columns: repeat(4, 1fr); } }
.lg-meta { padding: 1rem 1.25rem; background: rgb(8 20 38 / 0.75); }
.lg-meta__l { font-size: 10.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--te-gold-soft); }
.lg-meta__v { margin-top: 0.375rem; font-family: var(--te-font-display); font-size: 15px; font-weight: 500; color: #fff; }

/* ---------------- Body ---------------- */
.lg-body { padding: 4rem 1.5rem; background: var(--te-canvas); }
@media (min-width: 768px) { .lg-body { padding: 6rem 2.5rem; } }
.lg-body__grid { max-width: 77.5rem; margin-inline: auto; display: grid; gap: 3rem; align-items: start; }
@media (min-width: 1024px) { .lg-body__grid { grid-template-columns: 260px minmax(0, 1fr); gap: 4rem; } }

/* Table of contents */
.lg-toc { }
@media (min-width: 1024px) { .lg-toc { position: sticky; top: 10rem; } }
.lg-toc__head { display: flex; align-items: center; gap: 0.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--te-line); font-size: 10.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--te-ink-muted); }
.lg-toc__head .icon { width: 14px; height: 14px; color: var(--te-gold-deep); }
.lg-toc__nav { margin-top: 1rem; display: flex; flex-direction: column; }
.lg-toc__link { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.5rem 0 0.5rem 0.75rem; margin-left: -2px; border-left: 2px solid transparent; font-size: 13px; line-height: 1.4; color: var(--te-ink-muted); text-decoration: none; transition: color 0.2s var(--te-ease), border-color 0.2s var(--te-ease); }
.lg-toc__link:hover { color: var(--te-navy); }
.lg-toc__link.is-active { color: var(--te-navy); font-weight: 600; border-left-color: var(--te-gold); }
.lg-toc__num { font-size: 11px; color: var(--te-silver); padding-top: 1px; }
.lg-toc__link.is-active .lg-toc__num { color: var(--te-gold-deep); }
.lg-toc__foot { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--te-line); }
.lg-toc__print { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0; background: none; border: 0; cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--te-ink-muted); transition: color 0.2s var(--te-ease); }
.lg-toc__print:hover { color: var(--te-navy); }
.lg-toc__print .icon { width: 14px; height: 14px; color: var(--te-gold-deep); }

/* Article */
.lg-article { min-width: 0; }
.lg-dates { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 2rem; margin-bottom: 3rem; padding: 1.25rem 1.5rem; border-radius: var(--te-radius-lg); background: var(--te-gold-tint); border: 1px solid rgb(201 162 75 / 0.27); font-size: 13px; color: var(--te-navy); }
.lg-dates strong { font-weight: 600; }
.lg-sections { display: flex; flex-direction: column; gap: 3.5rem; }
.lg-section { scroll-margin-top: 9.5rem; }
.lg-section__head { display: flex; align-items: baseline; gap: 1rem; }
.lg-section__num { flex-shrink: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; color: var(--te-gold-deep); }
.lg-section__title { margin: 0; font-family: var(--te-font-display); font-weight: 500; font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2rem); line-height: 1.2; color: var(--te-navy); }

/* Legal prose */
.lg-section__body { margin-top: 1.25rem; padding-left: 2rem; font-size: 15px; line-height: 1.75; color: var(--te-ink-muted); }
.lg-section__body p { margin: 0 0 1rem; }
.lg-section__body p:last-child { margin-bottom: 0; }
.lg-section__body h3 { margin: 1.75rem 0 0.75rem; font-family: var(--te-font-body); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--te-navy); }
.lg-section__body strong { color: var(--te-navy); font-weight: 600; }
.lg-section__body a { color: var(--te-gold-deep); text-decoration: underline; text-underline-offset: 2px; }
.lg-section__body a:hover { color: var(--te-navy); }
.lg-section__body ul { margin: 0 0 1rem; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.625rem; }
.lg-section__body ul li { position: relative; padding-left: 1.5rem; }
.lg-section__body ul li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 999px; background: var(--te-gold-deep); }

/* Contact card */
.lg-contact { position: relative; overflow: hidden; margin-top: 5rem; border-radius: var(--te-radius-2xl); background: linear-gradient(160deg, var(--te-navy), var(--te-navy-deep)); }
.lg-contact__motif { position: absolute; top: -5rem; right: -5rem; opacity: 0.12; pointer-events: none; }
.lg-contact__inner { position: relative; padding: 2rem; }
@media (min-width: 768px) { .lg-contact__inner { padding: 2.5rem; } }
.lg-contact__ico { display: inline-grid; place-items: center; width: 2.625rem; height: 2.625rem; border-radius: var(--te-radius-md); background: rgb(201 162 75 / 0.14); color: var(--te-gold-soft); }
.lg-contact__ico .icon { width: 20px; height: 20px; }
.lg-contact__title { margin: 1.25rem 0 0; font-family: var(--te-font-display); font-weight: 500; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 1.875rem); line-height: 1.2; color: #fff; }
.lg-contact__lead { margin: 0.75rem 0 0; max-width: 36rem; font-size: 15px; line-height: 1.65; color: var(--te-silver-soft); }
.lg-contact__ctas { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 1rem; }
