/* ============================================================
   LOEX — Layout: site-footer (BEM)
   ============================================================ */

.site-footer {
    background-color: var(--color-blue);
    padding: 28px 5%;
}

.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.site-footer__logo {
    width: 120px;
    height: auto;
    filter: brightness(0) invert(1);
}

.site-footer__meta {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

/* ── Social ───────────────────────────────────────────────── */
.site-footer__social {
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-footer__social a {
    display: flex;
    align-items: center;
    opacity: 0.85;
    transition: opacity var(--transition-fast);
}

.site-footer__social a:hover { opacity: 1; }

.site-footer__social img {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
}

/* ── Links ────────────────────────────────────────────────── */
.site-footer__links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-footer__link-button {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-base);
    padding: 0;
    transition: color var(--transition-fast);
}

.site-footer__link-button:hover {
    color: var(--color-white);
}

/* ── Copyright ────────────────────────────────────────────── */
.site-footer__copy {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ── WhatsApp floating button ─────────────────────────────── */
.site-whatsapp {
    position: fixed;
    right: 24px;
    bottom: 80px;
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #25d366;
    color: var(--color-white);
    box-shadow: 0 16px 32px rgba(7, 37, 56, 0.22);
    z-index: 900;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.site-whatsapp:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 20px 36px rgba(7, 37, 56, 0.28);
}

.site-whatsapp svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

/* ── Privacy modal ────────────────────────────────────────── */
.privacy-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.privacy-modal[hidden] {
    display: none;
}

.privacy-modal[aria-hidden="false"] {
    display: flex;
}

.privacy-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 37, 56, 0.6);
    cursor: pointer;
}

.privacy-modal__dialog {
    position: relative;
    background: var(--color-white);
    border-radius: 18px;
    width: 100%;
    max-width: 620px;
    max-height: 88vh;
    overflow-y: auto;
    padding: 40px;
    z-index: 1;
}

.privacy-modal__close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 1.6rem;
    color: var(--color-muted);
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    transition: color var(--transition-fast);
}

.privacy-modal__close:hover { color: var(--color-blue-dark); }

.privacy-modal__eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 8px;
}

.privacy-modal__title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-blue);
    margin-bottom: 20px;
}

.privacy-modal__section {
    margin-top: 20px;
}

.privacy-modal__section h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-blue);
    margin-bottom: 6px;
}

.privacy-modal__section p {
    font-size: 0.95rem;
    color: var(--color-blue-dark);
    line-height: 1.7;
}

.privacy-modal__section a {
    color: var(--color-accent);
    text-decoration: underline;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .site-footer__inner {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
    }

    .site-footer__meta {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .privacy-modal__dialog {
        padding: 28px 20px;
    }

    .site-whatsapp {
        right: 16px;
        bottom: 28px;
        width: 56px;
        height: 56px;
    }

    .site-whatsapp svg {
        width: 28px;
        height: 28px;
    }
}
