/* app/static/css/footer.css */

@charset "UTF-8";

/* Footer */
footer {
    display: flow-root;
    width: 100%;
    min-height: 366px;
}

.div-footer {
    position: relative;
    display: flex;
    width: 100%; /* Ocupa 100% da largura da tela */
    max-width: 1180px; /* Mas não ultrapassa 1180px */
    min-height: 188px;
    justify-content: center; /* Centraliza o wrapper do conteúdo */
    border-top: 1px solid var(--cinza-claro);
    margin: 70px auto 0 auto;
    padding-top: 30px;
    box-sizing: border-box;
}

.footer-content-wrapper {
    display: flex;
    flex-direction: column; /* Coloca o título acima dos links */
    align-items: center; /* Centraliza o título e o grupo de links */
    width: 100%;
    max-width: 960px; /* Limita a largura para melhor leitura em telas grandes */
    min-height: 117px;
    padding: 0 20px; /* Padding interno para não colar nas bordas em telas menores */
    box-sizing: border-box;
}

.footer-main-title {
    min-height: 29px;
    margin: 20px 0;
    text-align: center; /* Garante que o título esteja centralizado */
    font-size: 24px; /* Ajuste o tamanho da fonte se necessário */
    line-height: 1.2;
    color: #333; /* Cor do título */
}

.footer-links-group {
    display: flex;
    flex-wrap: wrap; /* Permite que os links quebrem a linha em telas menores */
    justify-content: center; /* Centraliza os itens no grupo */
    align-items: center;
    min-height: 19px;
    gap: 15px 30px; /* Espaçamento entre as linhas e entre os itens */
}

.footer-email,
.footer-link-policy {
    display: inline-flex;
    align-items: center;
    min-height: 19px;
    margin: 0;
    color: #555; /* Cor para o e-mail e links */
    text-decoration: none; /* Remove sublinhado padrão dos links */
    font-size: 16px;
    line-height: 1.2;
    white-space: nowrap; /* Impede que o e-mail/links quebrem a linha no meio */
}

.footer-link-policy:hover {
    color: var(--azul-padrao); /* Cor ao passar o mouse */
}

.footer-link-policy:focus-visible {
    outline: 3px solid var(--azul-selecao);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Remove estilos antigos que não são mais necessários */
.div-footer .footer-list {
    /* Removido ou redefinido */
    margin: 0; /* Já não são mais colunas separadas como antes */
}

.div-footer .footer-list h4 {
    /* Removido ou redefinido */
    margin: 0;
}

.div-footer-dados-empresa {
    position: relative;
    width: 100%;
    min-height: 178px;
    margin-bottom: 30px;
    padding-top: 20px; /* Adiciona um padding acima da logo */
    border-top: 1px solid #eee; /* Linha sutil para separar do conteúdo acima */
    text-align: center;
    box-sizing: border-box;
}

.footer-brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 83px;
    padding: 20px 0; /* Mantém o mesmo espaço vertical da imagem anterior */
    line-height: 0;
    box-sizing: border-box;
}

.footer-brand-logo svg {
    display: block;
    width: 200px;
    height: auto;
    max-width: 100%;
    aspect-ratio: 230 / 43;
    flex-shrink: 0;
}

.footer-brand-logo-img {
    display: block;
    width: 256px;
    height: auto;
    max-width: min(82vw, 256px);
    flex-shrink: 0;
}

.footer-copyright,
.footer-cnpj,
.div-footer-dados-empresa p {
    min-height: 17px;
    margin: 5px 0;
    color: #555;
    font-size: 14px;
    line-height: 1.2;
}

/*
 * Skeleton estrutural do footer.
 * O estado é ativado no HTML crítico do base.html e removido assim que
 * o footer.css termina de ser aplicado. Os blocos são estáticos para evitar
 * animações extras e preservar o desempenho alcançado no PageSpeed.
 */
html.footer-loading footer {
    min-height: 366px;
}

html.footer-loading .div-footer,
html.footer-loading .div-footer-dados-empresa {
    overflow: hidden;
    isolation: isolate;
}

html.footer-loading .div-footer > *,
html.footer-loading .div-footer-dados-empresa > * {
    visibility: hidden;
}

html.footer-loading .div-footer::before,
html.footer-loading .div-footer-dados-empresa::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    pointer-events: none;
    box-sizing: border-box;
}

html.footer-loading .div-footer::before {
    background:
        linear-gradient(#e3e6e9, #e3e6e9) center 50px / 310px 29px no-repeat,
        linear-gradient(#e3e6e9, #e3e6e9) calc(50% - 330px) 109px / 190px 19px no-repeat,
        linear-gradient(#e3e6e9, #e3e6e9) calc(50% - 100px) 109px / 190px 19px no-repeat,
        linear-gradient(#e3e6e9, #e3e6e9) calc(50% + 125px) 109px / 125px 19px no-repeat,
        linear-gradient(#e3e6e9, #e3e6e9) calc(50% + 315px) 109px / 125px 19px no-repeat;
}

html.footer-loading .div-footer-dados-empresa::before {
    background:
        linear-gradient(#e3e6e9, #e3e6e9) center 40px / 200px 37px no-repeat,
        linear-gradient(#e3e6e9, #e3e6e9) center 108px / 325px 17px no-repeat,
        linear-gradient(#e3e6e9, #e3e6e9) center 135px / 190px 17px no-repeat;
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
    footer,
    html.footer-loading footer {
        min-height: 439px;
    }

    .div-footer {
        min-height: 261px;
    }

    .footer-content-wrapper {
        min-height: 190px;
    }

    .footer-main-title {
        min-height: 24px;
        font-size: 20px;
    }

    .footer-links-group {
        flex-direction: column; /* Empilha os links em telas menores */
        align-items: center; /* Centraliza os links quando empilhados */
        min-height: 106px;
        gap: 10px; /* Espaçamento menor quando empilhados */
    }

    .footer-email,
    .footer-link-policy {
        min-height: 18px;
        font-size: 15px;
    }

    .footer-brand-logo {
        min-height: 68px;
    }

    .footer-brand-logo svg {
        width: 150px; /* Logo um pouco menor em telas pequenas */
        max-width: 150px;
    }

    html.footer-loading .div-footer::before {
        background:
            linear-gradient(#e3e6e9, #e3e6e9) center 50px / min(280px, calc(100% - 40px)) 24px no-repeat,
            linear-gradient(#e3e6e9, #e3e6e9) center 105px / 190px 18px no-repeat,
            linear-gradient(#e3e6e9, #e3e6e9) center 133px / 185px 18px no-repeat,
            linear-gradient(#e3e6e9, #e3e6e9) center 161px / 115px 18px no-repeat,
            linear-gradient(#e3e6e9, #e3e6e9) center 189px / 115px 18px no-repeat;
    }

    html.footer-loading .div-footer-dados-empresa::before {
        background:
            linear-gradient(#e3e6e9, #e3e6e9) center 40px / 150px 28px no-repeat,
            linear-gradient(#e3e6e9, #e3e6e9) center 93px / min(315px, calc(100% - 30px)) 17px no-repeat,
            linear-gradient(#e3e6e9, #e3e6e9) center 120px / 190px 17px no-repeat;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer-link-policy {
        transition: none;
    }
}
.footer-cookie-settings{border:0;background:transparent;font-family:inherit;cursor:pointer;padding:0}.footer-cookie-settings:hover{color:var(--azul-padrao)}
