/* ==========================================
   10. FOOTER STYLES (SIDE-BY-SIDE BRAND LAYOUT)
   ========================================== */
.site-footer {
    width: 100%;
    padding: 80px 5% 40px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    border-top: 1px solid #e2e8f0;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* Main 2-Column Desktop Grid */
.footer-main-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    /* Brand Left 340px, Links Right Remaining */
    gap: 60px;
    align-items: flex-start;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 40px;
}

/* Left Brand Column */
.footer-brand-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.footer-logo {
    max-width: 240px;
    height: auto;
}

.footer-tagline {
    font-size: 13px;
    line-height: 1.6;
    color: #4b5563;
    margin: 0;
}

.social-links-row {
    display: flex;
    gap: 12px;
    margin-top: 6px;
}

.social-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    color: #0046ad;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: none;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.25s ease;
}

.social-circle:hover {
    background: #0046ad;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: none;
}

/* Right Links Columns (4 Columns Grid) */
.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-nav-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-accordion-header h4 {
    font-size: 16px;
    font-weight: 800;
    color: #111827;
    margin: 0;
}

.accordion-arrow {
    display: none;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-list li a {
    font-size: 13px;
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-links-list li a:hover {
    color: #0046ad;
}

/* Trust Strip */
.footer-trust-strip {
    background: #ffffff;
    border-radius: 20px;
    padding: 20px 40px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.trust-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #eef4ff;
    color: #0046ad;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.trust-text h5 {
    font-size: 14px;
    font-weight: 800;
    color: #111827;
    margin: 0;
}

.trust-text p {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

.trust-divider {
    width: 1px;
    height: 32px;
    background: #e2e8f0;
}

/* Bottom Bar */
.footer-bottom-bar {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.copyright-text {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
    margin: 0;
}

.copyright-text span {
    font-size: 12px;
    color: #6b7280;
}

.legal-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.legal-links a {
    font-size: 12px;
    color: #6b7280;
    text-decoration: none;
    font-weight: 600;
}

.legal-links a:hover {
    color: #0046ad;
}

.legal-links span {
    color: #cbd5e1;
    font-size: 12px;
}

/* Mobile Responsive Layout */
@media (max-width: 992px) {
    .site-footer {
        padding: 50px 5% 30px;
    }

    .footer-main-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-bottom: 24px;
    }

    .footer-brand-col {
        align-items: center;
        text-align: center;
    }

    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-nav-col {
        border-bottom: 1px solid #f1f5f9;
        padding: 14px 0;
    }

    .footer-accordion-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
    }

    .accordion-arrow {
        display: block;
        font-size: 12px;
        color: #6b7280;
        transition: transform 0.25s ease;
    }

    .footer-nav-col.active .accordion-arrow {
        transform: rotate(180deg);
        color: #0046ad;
    }

    .footer-links-list {
        display: none;
        padding-top: 12px;
    }

    .footer-nav-col.active .footer-links-list {
        display: flex;
    }

    .footer-trust-strip {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
        align-items: flex-start;
    }

    .trust-divider {
        display: none;
    }
}

/* --- DESKTOP HIDE ACCORDION ARROWS --- */
.accordion-arrow {
    display: none !important;
    /* Forces arrow to hide on Desktop */
}

/* --- MOBILE RESPONSIVE (SHOW ONLY ON MOBILE) --- */
@media (max-width: 992px) {
    .accordion-arrow {
        display: block !important;
        /* Visible ONLY on screens 992px and below */
        font-size: 12px;
        color: #6b7280;
        transition: transform 0.25s ease;
    }

    .footer-nav-col.active .accordion-arrow {
        transform: rotate(180deg);
        color: #0046ad;
    }
}

/* ==========================================
   LEGAL POLICY MODAL STYLES
   ========================================== */
.legal-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.legal-modal-backdrop.open {
    display: flex;
}

.legal-modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 580px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.legal-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.legal-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #0046ad;
}

.legal-modal-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #64748b;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.legal-modal-close:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.legal-modal-body {
    padding: 24px;
    color: #334155;
    font-size: 14px;
    line-height: 1.7;
    max-height: 60vh;
    overflow-y: auto;
}

.legal-modal-body p {
    margin-bottom: 12px;
}

.legal-modal-body a {
    color: #0046ad;
    text-decoration: underline;
}

.legal-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    background: #f8fafc;
}

.legal-modal-btn {
    background: #0046ad;
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.legal-modal-btn:hover {
    background: #003380;
}