/* =========================================================
   LHPS Legal Pages
   Used by: privacy-policy.php and terms-and-conditions.php
   ========================================================= */

html {
    scroll-behavior: smooth;
}

.legal-hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(178, 59, 127, .94), rgba(77, 101, 249, .88)),
        url("../img/finalheader.jpg") center center / cover no-repeat;
}

.legal-hero::before,
.legal-hero::after {
    position: absolute;
    content: "";
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}

.legal-hero::before {
    width: 280px;
    height: 280px;
    top: -150px;
    right: 8%;
}

.legal-hero::after {
    width: 180px;
    height: 180px;
    bottom: -100px;
    left: 10%;
}

.legal-hero .container {
    position: relative;
    z-index: 1;
}

.legal-kicker {
    display: inline-block;
    margin-bottom: .85rem;
    padding: .45rem 1rem;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    font-family: "Montserrat", sans-serif;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.legal-page {
    background:
        radial-gradient(circle at top left, rgba(255, 72, 128, .06), transparent 34%),
        #f8f9fb;
}

.legal-sidebar {
    position: sticky;
    top: 1.25rem;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .07);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(25, 25, 55, .07);
}

.legal-sidebar-title {
    padding: 1rem 1.1rem;
    color: #fff;
    background: var(--bs-primary);
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
}

.legal-nav {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 180px);
    padding: .65rem;
    overflow-y: auto;
}

.legal-nav a {
    padding: .65rem .75rem;
    border-radius: 10px;
    color: #4c4c5f;
    font-size: .88rem;
    line-height: 1.25;
    transition: .2s ease;
}

.legal-nav a:hover,
.legal-nav a:focus {
    color: var(--bs-primary);
    background: rgba(178, 59, 127, .08);
    transform: translateX(3px);
}

.legal-card {
    padding: clamp(1.25rem, 3vw, 2.75rem);
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(25, 25, 55, .08);
}

.legal-summary {
    display: grid;
    grid-template-columns: minmax(160px, .65fr) minmax(260px, 1.35fr);
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem 1.15rem;
    border: 1px solid rgba(178, 59, 127, .13);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(178, 59, 127, .055), rgba(221, 172, 96, .09));
}

.legal-summary > div {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.legal-label {
    color: #77778a;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.legal-section {
    scroll-margin-top: 1rem;
    margin-bottom: 2.25rem;
    padding-bottom: 2.25rem;
    border-bottom: 1px solid #ececf2;
}

.legal-section:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.legal-section h2 {
    position: relative;
    margin-bottom: 1rem;
    padding-left: 1rem;
    color: #2b2b3c;
    font-family: "League Spartan", sans-serif;
    font-size: clamp(1.55rem, 2.3vw, 2rem);
    font-weight: 700;
}

.legal-section h2::before {
    position: absolute;
    content: "";
    top: .12em;
    bottom: .12em;
    left: 0;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(var(--bs-primary), var(--bs-secondary));
}

.legal-section h3 {
    margin-top: 1.35rem;
    margin-bottom: .55rem;
    color: var(--bs-primary);
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    font-weight: 600;
}

.legal-section p,
.legal-section li {
    color: #505060;
    line-height: 1.8;
}

.legal-section ul {
    margin-bottom: 1rem;
    padding-left: 1.25rem;
}

.legal-section li {
    margin-bottom: .45rem;
    padding-left: .2rem;
}

.legal-section li::marker {
    color: var(--bs-primary);
}

.legal-note {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    margin: 1.25rem 0;
    padding: 1rem 1.1rem;
    border-left: 4px solid var(--bs-primary);
    border-radius: 0 12px 12px 0;
    color: #414154;
    background: rgba(178, 59, 127, .07);
}

.legal-note > i {
    margin-top: .25rem;
    color: var(--bs-primary);
    font-size: 1.15rem;
}

.legal-note-warning {
    border-left-color: #d99b25;
    background: rgba(221, 172, 96, .15);
}

.legal-note-warning > i {
    color: #b87a09;
}

.legal-contact-box {
    padding: 1.25rem;
    border: 1px solid rgba(178, 59, 127, .16);
    border-radius: 15px;
    background: linear-gradient(145deg, #fff, rgba(255, 72, 128, .045));
}

.legal-contact-box h3 {
    margin-top: 0;
    color: #2b2b3c;
    font-family: "League Spartan", sans-serif;
    font-size: 1.35rem;
}

.legal-crosslink {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding: 1.3rem 1.5rem;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--bs-primary), #7944a7);
    box-shadow: 0 14px 35px rgba(73, 35, 91, .2);
}

.legal-crosslink .legal-label,
.legal-crosslink p {
    color: rgba(255, 255, 255, .76);
}

.legal-crosslink h3 {
    color: #fff;
}

.legal-crosslink .btn {
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, .65);
    background: #fff;
    color: var(--bs-primary);
}

.legal-crosslink .btn:hover {
    border-color: var(--bs-secondary);
    background: var(--bs-secondary);
    color: #fff;
}

.legal-footer-links {
    display: flex;
    gap: .7rem;
    align-items: center;
    justify-content: flex-end;
}

.legal-footer-links a {
    color: rgba(255, 255, 255, .85);
}

.legal-footer-links a:hover {
    color: var(--bs-secondary);
}

.legal-footer-links span {
    color: rgba(255, 255, 255, .35);
}

@media (max-width: 1199.98px) {
    .legal-sidebar {
        position: static;
    }

    .legal-nav {
        max-height: 360px;
    }
}

@media (max-width: 767.98px) {
    .legal-hero {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    .legal-summary {
        grid-template-columns: 1fr;
    }

    .legal-card {
        border-radius: 16px;
    }

    .legal-crosslink {
        flex-direction: column;
        align-items: flex-start;
    }

    .legal-crosslink .btn {
        width: 100%;
    }

    .legal-footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}
