/* Novo layout: "Transparência em rede" (faixa branca acima do rodapé) */
[comp="links-rodape"] {
    width: 100vw;
    max-width: 100vw;
    margin: 40px 0 -23px calc(50% - 50vw);
    padding: 44px max(32px, calc((100vw - 1312px) / 2)) 40px;
    background: white;
    border-top: 1px solid #e3e4e8;
}

[comp="links-rodape"] .links-rodape-cabecalho {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

[comp="links-rodape"] .links-rodape-cabecalho small {
    display: block;
    font-size: 12.5px;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-weight: 800;
    color: color-mix(in srgb, var(--color-primary) 88%, black);
}

[comp="links-rodape"] .links-rodape-cabecalho h2 {
    margin-top: 6px;
    font-size: 24px;
    font-weight: 800;
    color: #0f121a;
}

[comp="links-rodape"] .links-rodape-cabecalho>span {
    font-size: 14px;
    color: #4a4f5a;
}

[comp="links-rodape"] .links-rodape-grade {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

[comp="links-rodape"] .links-rodape-grade a {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    column-gap: 10px;
    align-items: start;
    height: 84px;
    padding: 14px;
    background: white;
    color: #0f121a;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
    border: 1px solid #e3e4e8;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 12, 40, .04);
}

[comp="links-rodape"] .links-rodape-grade a:hover {
    background: color-mix(in srgb, var(--color-primary) 6%, white);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

[comp="links-rodape"] .links-rodape-grade a.link-destaque {
    box-shadow: inset 0 0 0 2px var(--color-primary);
}

[comp="links-rodape"] .links-rodape-grade .icone {
    color: var(--color-primary);
    font-size: 20px;
    line-height: 20px;
}

[comp="links-rodape"] .links-rodape-grade b {
    display: block;
    font-size: 13.5px;
    line-height: 18px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[comp="links-rodape"] .links-rodape-grade small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    line-height: 16px;
    color: #4a4f5a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[comp="links-rodape"] .links-rodape-grade .externo {
    position: absolute;
    right: 10px;
    bottom: 10px;
    font-size: 12px;
    color: #8a8f9a;
}

@media screen and (max-width: 1200px) {
    [comp="links-rodape"] .links-rodape-grade {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media screen and (max-width: 768px) {
    [comp="links-rodape"] {
        padding: 32px 16px;
    }

    [comp="links-rodape"] .links-rodape-grade {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ===== v4: blocos colados (sem gap) com linhas divisórias, logos originais, títulos quebrando linha ===== */
[comp="links-rodape"] .links-rodape-grade {
    gap: 0;
    background: white;
    border: 1px solid #e3e4e8;
    border-radius: 14px;
    overflow: hidden;
}

[comp="links-rodape"] .links-rodape-grade a {
    height: auto;
    min-height: 92px;
    border: none;
    border-radius: 0;
    box-shadow: 1px 0 0 #e3e4e8, 0 1px 0 #e3e4e8;
    transform: none !important;
    align-content: center;
}

[comp="links-rodape"] .links-rodape-grade a:hover {
    background: color-mix(in srgb, var(--color-primary) 6%, white);
}

[comp="links-rodape"] .links-rodape-grade a.com-imagem {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
}

[comp="links-rodape"] .links-rodape-grade a.com-imagem img {
    max-width: 100%;
    max-height: 62px;
    object-fit: contain;
    display: block;
}

[comp="links-rodape"] .links-rodape-grade a.link-destaque {
    box-shadow: inset 0 0 0 2px var(--color-primary);
}

[comp="links-rodape"] .links-rodape-grade b,
[comp="links-rodape"] .links-rodape-grade small {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

[comp="links-rodape"] .links-rodape-grade a:not(.com-imagem) {
    padding-right: 22px;
}

[comp="links-rodape"] .links-rodape-grade a {
    box-shadow: none;
    border-right: 1px solid #e3e4e8;
    border-bottom: 1px solid #e3e4e8;
    margin: 0 -1px -1px 0;
}

[comp="links-rodape"] .links-rodape-grade a.link-destaque {
    box-shadow: inset 0 0 0 2px var(--color-primary);
}

/* ===== v5: blocos uniformes (área de logo + legenda curta), linhas horizontais e verticais ===== */
[comp="links-rodape"] .links-rodape-grade {
    display: grid;
    grid-auto-rows: 1fr;
}

[comp="links-rodape"] .links-rodape-grade a,
[comp="links-rodape"] .links-rodape-grade a.com-imagem {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 112px;
    min-height: 0;
    padding: 12px 14px 12px;
    margin: 0;
    border: none;
    box-shadow: inset -1px 0 0 #e3e4e8, inset 0 -1px 0 #e3e4e8;
    text-align: center;
}

[comp="links-rodape"] .links-rodape-grade a.link-destaque {
    box-shadow: inset 0 0 0 2px var(--color-primary);
}

[comp="links-rodape"] .links-rodape-grade .marca {
    height: 56px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

[comp="links-rodape"] .links-rodape-grade .marca img {
    max-width: 100%;
    max-height: 56px;
    object-fit: contain;
}

[comp="links-rodape"] .links-rodape-grade .marca i {
    flex: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: color-mix(in srgb, var(--color-primary) 10%, white);
    color: var(--color-primary);
    font-size: 19px;
}

[comp="links-rodape"] .links-rodape-grade .marca b {
    font-size: 14.5px;
    line-height: 1.15;
    font-weight: 900;
    color: color-mix(in srgb, var(--color-primary) 70%, black);
    text-align: left;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

[comp="links-rodape"] .links-rodape-grade .legenda {
    display: block;
    width: 100%;
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    color: #4a4f5a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[comp="links-rodape"] .links-rodape-grade .externo {
    right: 8px;
    bottom: 8px;
    font-size: 10px;
}
