/* ==========================================================================
   Legal pages: /disclaimer, /terms, /privacy-policy
   Sticky section navigation with active-section highlighting.
   Same tokens as the rest of the site: gradient #0f1f7a -> #0056b3,
   #333 text, #6c757d muted, #e9ecef borders, 700 max heading weight.
   ========================================================================== */

.lg-eyebrow {
    display: inline-block;
    margin-bottom: 0.5rem;
    color: #0f1f7a;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- sticky rail ---------------------------------------------------------- */
.lg-rail {
    position: sticky;
    top: 1.5rem;
    align-self: flex-start;
}

.lg-toc {
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    margin-bottom: 1rem;
}

.lg-toc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.lg-toc-head h2 {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #6c757d;
}

.lg-progress {
    height: 4px;
    margin-bottom: 1rem;
    border-radius: 50px;
    background: #e9ecef;
    overflow: hidden;
}

.lg-progress span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 50px;
    background: linear-gradient(135deg, #0f1f7a 0%, #0056b3 100%);
    transition: width 0.15s linear;
}

.lg-toc ol {
    counter-reset: lgtoc;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lg-toc li {
    counter-increment: lgtoc;
}

.lg-toc a {
    position: relative;
    display: flex;
    gap: 0.7rem;
    padding: 0.5rem 0.65rem 0.5rem 0.75rem;
    border-left: 3px solid transparent;
    border-radius: 0 8px 8px 0;
    color: #6c757d;
    font-size: 0.87rem;
    line-height: 1.45;
    text-decoration: none;
    transition: all 0.25s ease;
}

.lg-toc a::before {
    content: counter(lgtoc, decimal-leading-zero);
    flex: 0 0 auto;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ced4da;
    padding-top: 0.1rem;
}

.lg-toc a:hover {
    background: #f8f9fa;
    color: #0f1f7a;
}

.lg-toc a.active {
    border-left-color: #0f1f7a;
    background: #f8f9fa;
    color: #0f1f7a;
    font-weight: 600;
}

.lg-toc a.active::before {
    color: #0f1f7a;
}

/* --- article -------------------------------------------------------------- */
.lg-sec {
    scroll-margin-top: 110px;
    padding: 1.75rem 2rem;
    margin-bottom: 1rem;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.lg-sec:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.lg-sec > h2 {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
    color: #0f1f7a;
}

.lg-sec > h2 i {
    font-size: 1.05rem;
}

.lg-sec p,
.lg-sec li {
    color: #6c757d;
    line-height: 1.85;
}

.lg-sec p:last-child,
.lg-sec ul:last-child {
    margin-bottom: 0;
}

.lg-sec ul {
    padding-left: 1.2rem;
}

.lg-sec li {
    margin-bottom: 0.4rem;
}

.lg-updated {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .lg-rail {
        position: static;
    }
}
