/* =========================================================
   LEGAL / STATIC PAGE STYLESHEET
   Privacy Policy, Terms & Conditions, Wiki.
   Extends the homepage design system (assets/css/homepage.css) —
   reuses --cs-* tokens and shared .cs-* components (sec-head, btn,
   cta-row, form-card, checks). Page-only patterns (dark form hero,
   "On This Page" TOC rail, numbered legal sections, closing CTA)
   live here under a non-colliding "lgl-" prefix.
   ========================================================= */

/* ---------------------------------------------------------
   HERO — H1 + meta + lead copy + quote form (dark, no video)
   --------------------------------------------------------- */
.lgl-hero {
    position: relative;
    padding: calc(var(--cs-header-offset) + 2.5rem) 0 4rem;
    background:
        radial-gradient(900px 460px at 85% -6%, rgba(var(--cs-cyan-rgb), 0.20), transparent 62%),
        linear-gradient(165deg, var(--cs-navy-800) 0%, var(--cs-navy-900) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.lgl-hero::before {
    content: "";
    position: absolute;
    top: -20%;
    left: -10%;
    width: 55%;
    height: 140%;
    background: linear-gradient(100deg, transparent 42%, rgba(255, 255, 255, 0.045) 50%, transparent 58%);
    transform: rotate(-8deg);
    pointer-events: none;
}

.lgl-hero .container { position: relative; z-index: 1; }
.lgl-hero .row { align-items: center; }
.lgl-hero-copy { max-width: 42rem; }

.lgl-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.1rem;
    padding: 0.4rem 0.9rem;
    font-family: "Jost", sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cs-cyan-bright);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--cs-r-pill);
}

.lgl-hero h1 {
    color: #fff;
    font-size: clamp(1.65rem, 2.9vw, 2.35rem);
    line-height: 1.18;
    letter-spacing: -0.03em;
    margin-bottom: 1.35rem;
    text-wrap: balance;
}

.lgl-hero h1::before {
    content: "";
    display: block;
    width: 64px;
    height: 3px;
    margin-bottom: 1.5rem;
    border-radius: 3px;
    background: var(--cs-accent-line);
}

.lgl-hero-copy p {
    color: var(--cs-on-dark);
    font-size: 1.02rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.lgl-hero-copy p:last-of-type { margin-bottom: 1.75rem; }

.lgl-hero-copy p a {
    color: var(--cs-cyan-bright);
    text-decoration: underline;
    text-decoration-color: rgba(151, 201, 194, 0.45);
}

.lgl-hero-copy p a:hover { color: #fff; }

@media (max-width: 991.98px) {
    .lgl-hero { padding: calc(var(--cs-header-offset) + 1.75rem) 0 3rem; }
}

/* ---------------------------------------------------------
   MAIN BODY — sticky TOC rail + article column
   --------------------------------------------------------- */
.lgl-body { padding: 5rem 0; background: #fff; }

@media (max-width: 575.98px) {
    .lgl-body { padding: 3.25rem 0; }
}

/* mobile "Jump to section" */
.lgl-toc-mobile {
    display: none;
    margin-bottom: 2rem;
    padding: 1rem 1.25rem;
    background: var(--cs-soft);
    border: 1px solid var(--cs-line);
    border-radius: var(--cs-r);
}

.lgl-toc-mobile summary {
    font-family: "Jost", sans-serif;
    font-weight: 600;
    color: var(--cs-ink);
    cursor: pointer;
}

.lgl-toc-mobile ul { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.lgl-toc-mobile a { font-size: 0.94rem; color: var(--cs-body); }
.lgl-toc-mobile a:hover { color: var(--cs-cyan-deep); }

@media (max-width: 991.98px) {
    .lgl-toc-mobile { display: block; }
}

/* sticky desktop TOC */
.lgl-toc {
    position: sticky;
    top: calc(var(--cs-header-offset) + 1.5rem);
}

.lgl-toc-label {
    margin: 0 0 1rem;
    font-family: "Jost", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cs-muted);
}

.lgl-toc ul {
    list-style: none;
    margin: 0;
    padding: 0 0 0 1rem;
    border-left: 2px solid var(--cs-line);
    display: grid;
    gap: 0.75rem;
    max-height: calc(100vh - var(--cs-header-offset) - 5rem);
    overflow-y: auto;
}

.lgl-toc a {
    display: block;
    font-size: 0.92rem;
    line-height: 1.4;
    color: var(--cs-body);
    transition: color .18s ease;
}

.lgl-toc a:hover { color: var(--cs-cyan-deep); }

.lgl-toc a.is-active {
    color: var(--cs-navy-700);
    font-weight: 600;
}

/* article */
.lgl-article { max-width: 54rem; }

.lgl-section { margin-bottom: 3rem; scroll-margin-top: calc(var(--cs-header-offset) + 1rem); }
.lgl-section:last-child { margin-bottom: 0; }

.lgl-section h2 {
    display: flex;
    align-items: baseline;
    gap: 0.85rem;
    font-size: clamp(1.2rem, 1.7vw, 1.5rem);
    letter-spacing: -0.02em;
    margin-bottom: 1.1rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--cs-line);
}

.lgl-num {
    flex: 0 0 auto;
    font-family: "Jost", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--cs-cyan-deep);
}

.lgl-section h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--cs-ink);
    margin: 1.5rem 0 0.6rem;
}

.lgl-section h3:first-child { margin-top: 0; }

/* mini sub-heading (e.g. "Advantages") nested under an h3 subsection */
.lgl-section h4 {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cs-cyan-deep);
    margin: 1.1rem 0 0.6rem;
}

.lgl-section p {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--cs-body);
    margin: 0 0 1.1rem;
}

.lgl-section p:last-child { margin-bottom: 0; }

.lgl-section ul {
    margin: 0 0 1.1rem;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.55rem;
}

.lgl-section ul:last-child { margin-bottom: 0; }

.lgl-section ul li {
    position: relative;
    padding-left: 1.4rem;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--cs-body);
}

.lgl-section ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cs-cyan);
}

.lgl-section a { color: var(--cs-navy-700); text-decoration: underline; text-decoration-color: var(--cs-line); }
.lgl-section a:hover { color: var(--cs-cyan-deep); }

/* ---------------------------------------------------------
   CLOSING CTA BAND (reuses cs-cta-row / cs-btn)
   --------------------------------------------------------- */
.lgl-cta {
    position: relative;
    padding: 4.5rem 0;
    text-align: center;
    background:
        radial-gradient(700px 320px at 50% 120%, rgba(var(--cs-cyan-rgb), 0.20), transparent 60%),
        linear-gradient(150deg, var(--cs-navy-800) 0%, var(--cs-navy-900) 100%);
    overflow: hidden;
}

.lgl-cta-inner { position: relative; z-index: 1; max-width: 42rem; margin: 0 auto; }

.lgl-cta h2 {
    color: #fff;
    font-size: clamp(1.4rem, 2.2vw, 1.85rem);
    letter-spacing: -0.02em;
    margin: 0 0 1.1rem;
}

.lgl-cta p { color: var(--cs-on-dark); font-size: 1.02rem; line-height: 1.8; margin: 0 0 2rem; }
.lgl-cta .cs-cta-row { justify-content: center; }

.lgl-cta p a {
    color: var(--cs-cyan-bright);
    text-decoration: underline;
    text-decoration-color: rgba(151, 201, 194, 0.45);
}

.lgl-cta p a:hover { color: #fff; }

/* ---------------------------------------------------------
   TRUST BANNER — full-width photo + caption overlay
   --------------------------------------------------------- */
.lgl-trust-band { padding: 0 0 5rem; background: #fff; }

.lgl-trust-banner {
    position: relative;
    border-radius: var(--cs-r-lg);
    overflow: hidden;
    box-shadow: var(--cs-sh-lg);
}

.lgl-trust-banner img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 480px;
    object-fit: cover;
}

.lgl-trust-banner-caption {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(0deg, rgba(6, 20, 32, 0.88) 0%, rgba(6, 20, 32, 0.35) 55%, transparent 100%);
}

.lgl-trust-banner-caption-inner { padding: 2rem 2.25rem; }

.lgl-trust-banner-caption h2 {
    color: #fff;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    letter-spacing: -0.02em;
    max-width: 34rem;
    margin: 0 0 1.1rem;
}

@media (max-width: 575.98px) {
    .lgl-trust-banner img { max-height: 320px; }
    .lgl-trust-banner-caption-inner { padding: 1.5rem 1.5rem; }
}

/* ---------------------------------------------------------
   INFO CARD GRID — icon + label + value (e.g. Call Us / Hours)
   --------------------------------------------------------- */
.lgl-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    max-width: 52rem;
    margin: 0 auto;
}

.lgl-info-card {
    padding: 1.85rem 1.75rem;
    background: #fff;
    border: 1px solid var(--cs-line);
    border-radius: var(--cs-r-lg);
    box-shadow: var(--cs-sh-sm);
    transition: transform .22s ease, box-shadow .22s ease;
}

.lgl-info-card:hover { transform: translateY(-4px); box-shadow: var(--cs-sh-lg); }

.lgl-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin-bottom: 1.1rem;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--cs-navy-700), var(--cs-navy-800));
    box-shadow: 0 8px 18px rgba(6, 20, 32, 0.18);
}

.lgl-info-icon i { font-size: 1.15rem; color: var(--cs-cyan) !important; }

.lgl-info-card h2 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.6rem; color: var(--cs-ink); }
.lgl-info-card p { margin: 0; font-size: 1rem; line-height: 1.72; color: var(--cs-body); }
.lgl-info-card p + p { margin-top: 0.5rem; }
.lgl-info-card a { color: var(--cs-navy-700); font-weight: 600; }
.lgl-info-card a:hover { color: var(--cs-cyan-deep); }

@media (max-width: 767.98px) {
    .lgl-info-grid { grid-template-columns: 1fr; }
}
