.footer-container {
    background-color: var(--bg-primary);
    box-shadow: var(--box-shadow);
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* --- Área Superior (Grid Layout) --- */
.footer-top {
    max-width: 1250px;
    width: 100%;
    margin: auto;
    display: grid;
    /* Mudança para GRID */
    grid-template-columns: repeat(4, 1fr);
    /* Desktop: 4 colunas iguais */
    gap: 30px;
    /* Espaço entre as colunas e linhas */
    /* padding-bottom: 30px; */
    align-items: start;
    /* Alinha o conteúdo ao topo das células */
    padding: 30px 20px 20px 20px;
}

/* --- Coluna da Marca (Logo + Social) --- */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo {
    height: 40px;
    width: auto;
    display: block;
}

.social-icons {
    display: flex;
    justify-content: flex-start;
    /* Alinhado a esquerda por padrão */
    gap: 15px;
}

.footer-brand p {
    color: var(--text-secondary);
    max-width: 80%;
    font-size: 0.9rem;
}

.social-icons a {
    position: relative;
    width: 30px;
    height: 30px;
    border-radius: var(--border-radius-btn);
    box-shadow: 0 0 4px 1px var(--hover-color);
    transition: background-color 0.3s ease;

    &:hover {
        background-color: var(--hover-color);
        box-shadow: none;
    }
}

.social-icons a .icone {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    background-color: var(--text-secondary);
    transition: background-color 0.3s ease;

}

.social-icons a:hover .icone {
    background-color: var(--text-btn);
}

/* --- Colunas de Navegação e Contato (Estilos Compartilhados) --- */
.footer-nav,
.footer-contact {
    display: flex;
    flex-direction: column;
}

.footer-nav h3,
.footer-contact h3 {
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.footer-nav ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav ul li a,
.footer-contact ul li a {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    /* Espaço entre ícone e texto */
}

.footer-nav ul li a:hover,
.footer-contact ul li a:hover {
    color: var(--hover-color);
    padding-left: 5px;
}

/* Ícones dentro dos links do footer */
.footer-contact ul li a .icone {
    font-size: 1.1rem;
    width: 18px;
    height: 18px;
    background-color: var(--text-secondary);
    /* Usa cor do tema para SVG masks */
    transition: background-color 0.3s ease;
}

.footer-contact ul li a:hover .icone {
    background-color: var(--hover-color);
}

/* --- Botão no Footer --- */
.footer-top .login-button {
    width: 100%;
    /* Ocupa a largura da coluna do grid */
    justify-content: center;
    padding: 8px;
    margin-bottom: 20px;
}

/* ======================================================================================== */
/* RESPONSIVIDADE ( Footer top )                                                            */
/* ======================================================================================== */

/* --- TABLET (960px até 412px) - 2 Colunas --- */
@media (max-width: 960px) {
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        /* 2 Colunas */
        gap: 40px 20px;
        /* Mais espaço vertical, menos horizontal */
    }

    /* O botão de login pode ocupar largura total da sua célula */
    .footer-top .login-button {
        max-width: 100%;
    }
}

/* --- MOBILE PEQUENO (Abaixo de 412px) - 1 Coluna + Alinhamento Específico --- */
@media (max-width: 412px) {
    .footer-top {
        grid-template-columns: 1fr;
        /* 1 Coluna */
        gap: 30px;
        padding-bottom: 20px;
        justify-items: center;
        /* Centraliza os blocos no meio da tela */
    }

    .footer-brand {
        align-items: center;
        /* Logo e social centralizados */
        text-align: center;
        width: 100%;
    }

    .social-icons {
        justify-content: center;
    }

    /* Regra específica: Links e H3 alinhados à direita */
    .footer-nav,
    .footer-contact {
        width: 80%;
        /* Ocupa largura total */
        align-items: flex-start;
        text-align: left;
    }

    .footer-top .login-button {
        width: 80%;
    }
}

/* ======================================================================================== */
/* COPYRIGHT + LINK DE POLITICA DE PRIVACIDADE (Footer Bottom)                              */
/* ======================================================================================== */

.footer-bottom {
    width: 100%;
    height: auto;
    background-color: var(--bg-primary);
    box-shadow: var(--box-shadow);
}

.footer-copyright {
    max-width: 1250px;
    width: 100%;
    margin: auto;
    padding: 0 20px;
    font-size: 0.8rem;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-copyright div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.footer-copyright div p {
    color: var(--text-tertiary);
    white-space: nowrap;
    padding-right: 15px;
}

.footer-copyright a {
    color: var(--text-tertiary);
    display: flex;
    justify-content: end;
    align-items: center;

    &:hover {
        color: var(--hover-color);
    }
}

.footer-copyright a .cookie-icon {
    width: 16px;
    height: 16px;
    margin: 5px;
    background-color: var(--text-tertiary);
}

.footer-copyright a:hover .cookie-icon {
    background-color: var(--hover-color);
}

/* ======================================================================================== */
/* RESPONSIVIDADE COPYRIGHT  (Footer Bottom)                                                */
/* ======================================================================================== */

@media (max-width: 768px) {

    .footer-copyright {
        display: flex;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 414px) {

    .footer-copyright {
        display: flex;
        justify-content: center;
        text-align: center;

    }

    .footer-copyright div {
        display: flex;
        justify-content: center;
        align-items: center;

        p {
            display: flex;
            flex-direction: column;
        }
    }
}