/* =========================================================
   RODAPÉ

   01. Estrutura
   02. Logo e redes sociais
   03. Texto legal
   04. Modal de privacidade
   05. Responsividade
   ========================================================= */

/* =========================================================
   01. ESTRUTURA
   ========================================================= */

.site-footer {
    position: relative;
    flex-shrink: 0;
    padding: 34px 0;
    color: var(--white);
    background: var(--alliance-graphite);
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: var(--alliance-yellow);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

/* =========================================================
   02. LOGO E REDES SOCIAIS
   ========================================================= */

.site-footer .brand-logo {
    display: block;
    width: auto;
    max-width: 100%;
    height: 55px;
    object-fit: contain;
}
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-social-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-size: 14px;
    transition: opacity 0.2s ease;
}

.footer-social-item:hover {
    opacity: 0.8;
}

.footer-social-item img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-small);
    transition: transform var(--transition);
}

.social-link:hover {
    transform: translateY(-2px);
}

.social-link img {
    display: block;
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.instagram-icon {
    margin-top: 4px;
    margin-bottom: 8px;
    /* width: 50x !important;
    height: 50px !important;
    margin-left: 4px; */
    /* margin-top: -4px; */
}

.linkedin-icon {
    width: 22px !important;
    height: 22px !important;
    margin-left: 5px;
    margin-top: -6px;
}

/* Foco visível sobre o fundo escuro do rodapé. */
.social-link:focus-visible {
    outline: 3px solid var(--alliance-yellow);
    outline-offset: 2px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.footer-links a,
.footer-policy-btn {
    color: #ffffff;
    font-size: 14px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-policy-btn:hover {
    color: var(--alliance-yellow);
}

/* =========================================================
   03. TEXTO LEGAL
   ========================================================= */

.footer-legal {
    color: #bcbcbc;
    text-align: center;
    font-size: 12px;
    line-height: 1.7;
}

/* =========================================================
   04. MODAL DE PRIVACIDADE
   ========================================================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(3px);
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 11;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    border: 0;
    border-radius: 50%;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
}

.privacy-modal {
    position: relative;
    width: min(700px, 95vw);
    background: #ffffff;
    border-radius: var(--radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-modal);
}

.privacy-modal-header {
    position: relative;
    padding: 24px 74px 20px 34px;
    background: var(--alliance-graphite);
    border-bottom: 4px solid var(--alliance-yellow);
}

.privacy-modal-header h2 {
    color: #ffffff;
    font-size: 28px;
    margin: 0;
}

.privacy-modal-content {
    padding: 28px;
    color: var(--text-primary);
    line-height: 1.8;
}

.footer-policy-btn:focus-visible,
.footer-links a:focus-visible {
    outline: 3px solid var(--alliance-yellow);
}

/* =========================================================
   05. RESPONSIVIDADE
   ========================================================= */

@media (max-width: 900px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 28px;
    }

    .footer-links {
        align-items: center;
    }
}

@media (max-width: 600px) {
    .site-footer {
        padding: 24px 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 14px;
        text-align: center;
    }

    .site-footer .brand-logo {
        height: 45px;
    }

    .footer-legal {
        text-align: center;
    }
}
