/* Scoped to /terms-condition and /privacy-policy */
html:has(.legal-page),
body:has(.legal-page) {
    overflow-x: hidden;
}

.legal-page {
    overflow-x: hidden;
    color: #0a0933;
}

.legal-page .container-fluid {
    width: 100%;
    max-width: none;
    padding-left: clamp(12px, 3vw, 48px);
    padding-right: clamp(12px, 3vw, 48px);
}

.legal-page [class*="col-"] {
    min-width: 0;
    max-width: 100%;
}

.legal-page img {
    max-width: 100%;
    height: auto;
}

.legal-page a:focus-visible,
.legal-page button:focus-visible {
    outline: 3px solid #00B4D8;
    outline-offset: 2px;
}

.legal-page .lp-hero {
    position: relative;
    background: linear-gradient(135deg, #0a0933 0%, #023e8a 55%, #00B4D8 100%);
    color: #fff;
    padding: 3rem 0 4rem;
    overflow: hidden;
}

.legal-page .lp-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -60px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.18);
    pointer-events: none;
}

.legal-page .lp-breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0 0 1rem;
    font-size: 0.9rem;
}

.legal-page .lp-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.55);
}

.legal-page .lp-breadcrumb a {
    color: #d4af37;
}

.legal-page .lp-breadcrumb .active {
    color: #fff;
}

.legal-page .lp-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: #fff !important;
}

.legal-page .lp-hero p.lead {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 40rem;
}

.legal-page .lp-hero-visual {
    max-width: 240px;
    width: 100%;
    display: block;
    margin: 1.5rem auto 0;
}

.legal-page .lp-updated {
    display: inline-block;
    margin: 0 0 1rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.85rem;
}

.legal-page .lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background-color: #d4af37;
    color: #0a0933;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 700;
    border: 0;
    text-decoration: none;
    transition: background-color 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.legal-page .lp-btn:hover,
.legal-page .lp-btn:focus {
    background-color: #00B4D8;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

.legal-page .lp-btn-ghost {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.legal-page .lp-btn-ghost:hover,
.legal-page .lp-btn-ghost:focus {
    background: #fff;
    color: #023e8a;
    border-color: #fff;
}

.legal-page .lp-btn-outline {
    background: transparent;
    color: #023e8a;
    border: 2px solid #00B4D8;
}

.legal-page .lp-btn-outline:hover,
.legal-page .lp-btn-outline:focus {
    background: #00B4D8;
    color: #fff;
    border-color: #00B4D8;
}

.legal-page .lp-section {
    padding: 3rem 0;
}

.legal-page .lp-section--muted {
    background: #f4f7fb;
}

.legal-page .lp-section h2 {
    font-size: clamp(1.25rem, 2.4vw, 1.6rem);
    font-weight: 800;
    color: #0a0933;
    margin: 0 0 0.75rem;
    scroll-margin-top: 96px;
}

.legal-page .lp-article {
    background: #fff;
    border: 1px solid rgba(10, 9, 51, 0.06);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    padding: clamp(1.25rem, 3vw, 2rem);
    min-width: 0;
}

.legal-page .lp-block {
    margin-bottom: 1.75rem;
}

.legal-page .lp-block:last-child {
    margin-bottom: 0;
}

.legal-page .lp-prose p {
    color: #334155;
    line-height: 1.7;
    margin-bottom: 0.85rem;
    overflow-wrap: anywhere;
}

.legal-page .lp-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.legal-page .lp-list li {
    position: relative;
    padding: 0.35rem 0 0.35rem 1.75rem;
    color: #334155;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.legal-page .lp-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00B4D8;
}

.legal-page .lp-toc {
    background: #fff;
    border: 1px solid rgba(10, 9, 51, 0.06);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    padding: 1.15rem 1.25rem;
    margin-bottom: 1.25rem;
}

.legal-page .lp-toc[data-sticky="1"] {
    position: sticky;
    top: 96px;
}

.legal-page .lp-toc h2 {
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
}

.legal-page .lp-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.legal-page .lp-toc a {
    display: block;
    color: #023e8a;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.35rem 0;
    text-decoration: none;
    border-bottom: 1px solid rgba(10, 9, 51, 0.06);
    overflow-wrap: anywhere;
}

.legal-page .lp-toc li:last-child a {
    border-bottom: 0;
}

.legal-page .lp-toc a:hover,
.legal-page .lp-toc a:focus {
    color: #00B4D8;
}

.legal-page .lp-cta {
    background: linear-gradient(135deg, #0a0933, #023e8a);
    color: #fff;
}

.legal-page .lp-cta h2 {
    color: #fff;
}

.legal-page .lp-actions,
.legal-page .lp-cta-actions {
    gap: 0.75rem;
}

.legal-page .lp-cta-copy {
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

.legal-page .lp-cta-copy a {
    color: #d4af37;
}

.legal-page .lp-contact a {
    color: #023e8a;
    font-weight: 600;
    word-break: break-word;
}

@media (max-width: 991.98px) {
    .legal-page .lp-toc[data-sticky="1"] {
        position: static;
        top: auto;
    }

    .legal-page .lp-toc ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .legal-page .lp-toc li {
        flex: 1 1 auto;
    }

    .legal-page .lp-toc a {
        border: 1px solid rgba(0, 180, 216, 0.35);
        border-radius: 999px;
        padding: 0.4rem 0.75rem;
        background: #f4f7fb;
        white-space: nowrap;
    }
}

@media (max-width: 767.98px) {
    .legal-page .lp-hero {
        padding: 2rem 0 2.5rem;
        text-align: center;
    }

    .legal-page .lp-hero p.lead {
        margin-left: auto;
        margin-right: auto;
    }

    .legal-page .lp-hero .lp-actions {
        justify-content: center !important;
    }

    .legal-page .lp-hero-visual {
        display: none;
    }

    .legal-page .lp-section {
        padding: 2rem 0;
    }

    .legal-page .lp-toc a {
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    .legal-page .lp-btn {
        transition: none !important;
    }
}
