/* =========================================
   LEGAL PAGES (Privacy, Terms, Refund)
   Builds on .ap-cta-* hero styles from style.css
========================================= */

/* Let the stage shadow fade into the content section instead of being clipped */
.ap-legal-hero {
    z-index: 1;
    overflow: visible;
    background: linear-gradient(180deg, #ffffff 0%, #eef7fe 100%);
}

.ap-legal-hero .ap-cta-stage {
    padding: 64px 56px;
}

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

.ap-legal-hero .ap-cta-text {
    max-width: 680px;
}

.ap-legal-updated {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 26px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    color: #d5e6f5;
    font-family: Arial, sans-serif;
    font-size: 13px;
}

.ap-legal-updated::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ffb42e;
}


/* =========================================
   CONTENT
========================================= */

.ap-legal-section {
    padding: 10px 20px 90px;
    background: #eef7fe;
}

.ap-legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 56px 60px;
    border: 1px solid #e3edf6;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(11, 40, 70, .07);
}

.ap-legal-block + .ap-legal-block {
    margin-top: 38px;
    padding-top: 38px;
    border-top: 1px solid #edf1f6;
}

.ap-legal-block h2 {
    margin: 0 0 14px;
    color: #0b2846;
    font-family: "Sora", Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.4px;
}

.ap-legal-block h3 {
    margin: 0 0 6px;
    color: #0b2846;
    font-family: "Sora", Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
}

.ap-legal-block p,
.ap-legal-list li {
    margin: 0;
    color: #526d84;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.75;
}

.ap-legal-block p + p,
.ap-legal-block p + .ap-legal-list,
.ap-legal-block p + .ap-legal-chips,
.ap-legal-block p + .ap-legal-cases {
    margin-top: 14px;
}

.ap-legal-list {
    display: grid;
    gap: 10px;
}

.ap-legal-list li {
    position: relative;
    padding-left: 22px;
}

.ap-legal-list li::before {
    content: "";
    position: absolute;
    top: 11px;
    left: 2px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #1668c4;
}

.ap-legal-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ap-legal-chips li {
    padding: 8px 14px;
    border: 1px solid #d7e6f4;
    border-radius: 999px;
    background: #f4f9fe;
    color: #0b2846;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.ap-legal-note {
    padding: 16px 20px;
    border-left: 4px solid #ffb42e;
    border-radius: 12px;
    background: #fff8ea;
}

.ap-legal-note strong {
    color: #0b2846;
}

.ap-legal-cases {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ap-legal-case {
    padding: 20px 22px;
    border: 1px solid #e3edf6;
    border-radius: 16px;
    background: #f9fcff;
}

.ap-legal-case p {
    font-size: 15px;
}


/* =========================================
   CONTACT CARD
========================================= */

.ap-legal-contact {
    margin-top: 48px;
    padding: 40px;
    border-radius: 22px;
    background: linear-gradient(155deg, #05121f 0%, #0a2038 48%, #0d2b49 100%);
}

.ap-legal-contact .ap-cta-eyebrow {
    margin-bottom: 10px;
}

.ap-legal-contact h2 {
    margin: 0;
    color: #eef6fd;
    font-family: "Sora", Arial, sans-serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.6px;
}

.ap-legal-contact p {
    margin: 12px 0 0;
    color: #b9d2e8;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

.ap-legal-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding: 13px 26px;
    border-radius: 12px;
    background: linear-gradient(100deg, #ffd47a 0%, #ffb42e 50%, #ff9a17 100%);
    color: #0b2846;
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .3s ease, box-shadow .3s ease;
}

.ap-legal-contact-btn:hover {
    color: #0b2846;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255, 160, 40, .35);
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 767px) {
    .ap-legal-hero .ap-cta-stage {
        padding: 40px 24px;
        border-radius: 24px;
    }

    .ap-legal-section {
        padding: 0 15px 60px;
    }

    .ap-legal-container {
        padding: 32px 22px;
        border-radius: 22px;
    }

    .ap-legal-block h2 {
        font-size: 19px;
    }

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

    .ap-legal-contact {
        padding: 28px 22px;
    }

    .ap-footer-bottom ul {
        flex-wrap: wrap;
        gap: 12px 18px;
    }
}
