/* =========================================================
   CARIPULSE LEGAL PAGES
========================================================= */

.legal-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 160px 0 95px;
    overflow: hidden;
}

/* =========================================================
   LEGAL PAGE HERO IMAGES
========================================================= */

.legal-hero-terms {
    background-image:
        linear-gradient(
            90deg,
            rgba(8, 18, 33, .97),
            rgba(8, 18, 33, .82)
        ),
        url("../images/Legal-Hero.jpg");
}

.legal-hero-privacy {
    background-image:
        linear-gradient(
            90deg,
            rgba(8, 18, 33, .97),
            rgba(8, 18, 33, .82)
        ),
        url("../images/Legal-Hero.jpg");
}

.legal-hero-security {
    background-image:
        linear-gradient(
            90deg,
            rgba(8, 18, 33, .97),
            rgba(8, 18, 33, .82)
        ),
        url("../images/Legal-Hero.jpg");
}

.legal-hero::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -180px;
    top: -210px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(255, 47, 117, .32),
            transparent 65%
        );
}

.legal-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.legal-eyebrow {
    display: inline-block;
    margin-bottom: 20px;
    color: #ff9d1c;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.legal-hero h1 {
    margin: 0 0 24px;
    color: #ffffff;
    font-size: 68px;
    line-height: 1.08;
    font-weight: 800;
}

.legal-hero h1 span {
    background: linear-gradient(
        90deg,
        #ff2f75,
        #ff9d1c
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-hero p {
    max-width: 760px;
    margin: 0;
    color: #e4e8ef;
    font-size: 20px;
    line-height: 1.8;
}

.legal-main {
    background: #ffffff;
    padding: 95px 0 110px;
}

.legal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 70px;
    align-items: start;
}

.legal-content {
    min-width: 0;
}

.legal-updated {
    display: inline-block;
    margin-bottom: 35px;
    padding: 9px 16px;
    border-radius: 30px;
    background: #fff0f5;
    color: #ff2f75;
    font-size: 13px;
    font-weight: 700;
}

.legal-section {
    margin-bottom: 52px;
}

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

.legal-section h2 {
    margin: 0 0 18px;
    color: #081221;
    font-size: 32px;
    line-height: 1.3;
    font-weight: 800;
}

.legal-section h3 {
    margin: 30px 0 12px;
    color: #081221;
    font-size: 23px;
    line-height: 1.4;
    font-weight: 700;
}

.legal-section p,
.legal-section li {
    color: #5f6876;
    font-size: 17px;
    line-height: 1.9;
}

.legal-section p {
    margin: 0 0 18px;
}

.legal-section ul,
.legal-section ol {
    margin: 0 0 20px 24px;
    padding: 0;
}

.legal-section li {
    margin-bottom: 10px;
}

.legal-section a {
    color: #ff2f75;
    font-weight: 600;
    text-decoration: none;
}

.legal-section a:hover {
    color: #ff9d1c;
}

.legal-callout {
    margin: 35px 0;
    padding: 26px 28px;
    border-left: 4px solid #ff2f75;
    border-radius: 0 16px 16px 0;
    background: #f7f9fc;
}

.legal-callout p {
    margin: 0;
    color: #394454;
}

.legal-sidebar {
    position: sticky;
    top: 120px;
    padding: 30px;
    border: 1px solid #e7ebf2;
    border-radius: 22px;
    background: #f8faff;
}

.legal-sidebar h3 {
    margin: 0 0 20px;
    color: #081221;
    font-size: 21px;
}

.legal-sidebar a {
    display: block;
    padding: 11px 0;
    border-bottom: 1px solid #e6eaf0;
    color: #687280;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}

.legal-sidebar a:last-child {
    border-bottom: none;
}

.legal-sidebar a:hover {
    color: #ff2f75;
}

@media (max-width: 1100px) {
    .legal-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .legal-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .legal-hero {
        min-height: 460px;
        padding: 135px 0 75px;
    }

    .legal-hero h1 {
        font-size: 44px;
    }

    .legal-hero p {
        font-size: 17px;
    }

    .legal-main {
        padding: 75px 0 85px;
    }

    .legal-section {
        margin-bottom: 42px;
    }

    .legal-section h2 {
        font-size: 27px;
    }

    .legal-section h3 {
        font-size: 21px;
    }

    .legal-section p,
    .legal-section li {
        font-size: 16px;
    }
}

@media (max-width: 520px) {
    .legal-hero {
        min-height: 420px;
        padding: 125px 0 65px;
    }

    .legal-hero h1 {
        font-size: 38px;
    }

    .legal-eyebrow {
        font-size: 13px;
    }

    .legal-main {
        padding: 65px 0 75px;
    }

    .legal-sidebar {
        padding: 24px;
    }

    .legal-callout {
        padding: 22px;
    }
}
