/* ==========================================
   SITE FOOTER
   Legacy Protection Services
========================================== */

.site-footer {
    position: relative;
    margin-top: 0;
    background: linear-gradient(180deg, #131313 0%, #0f0f0f 100%);
    color: rgba(255, 255, 255, 0.78);
}

.footer-top {
    padding: clamp(52px, 7vw, 80px) 0 clamp(30px, 4vw, 42px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 0.9fr 0.9fr 0.8fr 1.45fr;
    gap: clamp(24px, 3vw, 40px);
    align-items: start;
}

.footer-column {
    min-width: 0;
}

.footer-support {
    justify-self: end;
    max-width: 430px;
}

.footer-heading {
    margin: 0 0 16px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: var(--font-weight-semibold);
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--color-white);
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    line-height: 1.55;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--color-primary-light);
    text-decoration: none;
}

.footer-mobile-hide {
    display: list-item;
}

.footer-support-text {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.85rem;
    line-height: 1.65;
    max-width: 420px;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-white);
    transition:
        background-color var(--transition-fast),
        color var(--transition-fast),
        transform var(--transition-fast);
}

.footer-social-link:hover,
.footer-social-link:focus {
    background: var(--color-primary);
    color: var(--color-black);
    text-decoration: none;
    transform: translateY(-2px);
}

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.footer-bottom-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 132px;
    max-height: 40px;
}

.footer-copyright {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.62);
}

/* =========================
   LARGE TABLET / SMALL LAPTOP
========================= */

@media (max-width: 1199.98px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .footer-support {
        grid-column: 1 / -1;
        justify-self: start;
        max-width: 640px;
        margin-top: 8px;
        text-align: left;
    }
}

/* =========================
   TABLET
========================= */

@media (max-width: 991.98px) {
    .footer-top {
        padding: 48px 0 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 34px 30px;
    }

    .footer-support {
        grid-column: 1 / -1;
        justify-self: start;
        max-width: 640px;
        margin-top: 4px;
    }

    .footer-heading {
        font-size: 0.88rem;
    }

    .footer-links a {
        font-size: 0.82rem;
    }

    .footer-support-text {
        font-size: 0.82rem;
    }

    .footer-bottom-inner {
        justify-content: center;
        text-align: center;
    }

    .footer-bottom-logo {
        display: none;
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 767.98px) {
    .footer-top {
        padding: 40px 0 28px;
    }

    .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-column,
    .footer-support {
        width: 100%;
        max-width: 100%;
        justify-self: center;
        text-align: center;
    }

    .footer-mobile-hide {
        display: none;
    }

    .footer-heading {
        margin-bottom: 12px;
        font-size: 0.95rem;
        color: var(--color-white);
    }

    .footer-links {
        text-align: center;
    }

    .footer-links li {
        margin-bottom: 9px;
    }

    .footer-links a {
        font-size: 0.84rem;
        line-height: 1.55;
    }

    .footer-support {
        margin-top: 4px;
        padding-top: 28px;
        border-top: 1px solid rgba(255, 255, 255, 0.07);
    }

    .footer-support .footer-heading {
        color: var(--color-primary-light);
        font-size: 1rem;
    }

    .footer-support-text {
        max-width: 340px;
        margin: 0 auto 20px;
        font-size: 0.82rem;
        line-height: 1.65;
        text-align: center;
    }

    .footer-socials {
        justify-content: center;
        gap: 12px;
        margin-top: 0;
    }

    .footer-social-link {
        width: 42px;
        height: 42px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.07);
    }

    .footer-bottom {
        padding: 18px 0;
    }

    .footer-bottom-logo {
        display: none;
    }

    .footer-bottom-inner {
        justify-content: center;
        text-align: center;
    }

    .footer-copyright {
        font-size: 0.7rem;
        line-height: 1.6;
    }
}

/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 480.98px) {
    .footer-top {
        padding: 36px 0 24px;
    }

    .footer-grid {
        gap: 26px;
    }

    .footer-heading {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .footer-links li {
        margin-bottom: 8px;
    }

    .footer-links a {
        font-size: 0.8rem;
    }

    .footer-support {
        padding-top: 24px;
    }

    .footer-support-text {
        max-width: 310px;
        font-size: 0.76rem;
        line-height: 1.6;
        margin-bottom: 16px;
    }

    .footer-social-link {
        width: 40px;
        height: 40px;
    }

    .footer-bottom {
        padding: 14px 0;
    }

    .footer-copyright {
        font-size: 0.66rem;
    }
}

/* =========================
   LARGE DESKTOP
========================= */

@media (min-width: 1400px) {
    .footer-grid {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* =========================
   TOUCH DEVICES
========================= */

@media (hover: none) {
    .footer-social-link:hover {
        background: rgba(255, 255, 255, 0.06);
        color: var(--color-white);
        transform: none;
    }

    .footer-links a:hover {
        color: rgba(255, 255, 255, 0.7);
    }
}

/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {
    .footer-links a,
    .footer-social-link {
        transition: none;
    }
}