/*
 * Footer compartilhado entre home institucional e paginas internas.
 * Fica em arquivo local para respeitar a CSP da area publica.
 */

.shared-contact-cards,
.shared-contact-cards * {
    box-sizing: border-box;
}

.shared-contact-cards {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto 28px;
    padding: 0 24px;
}

.shared-contact-cards__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.shared-contact-card {
    background: #0b3568;
    border-radius: 20px;
    min-height: 150px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 12px 32px rgba(0, 20, 44, 0.12);
}

.shared-contact-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
    color: #ffffff;
}

.shared-contact-card__icon i {
    font-size: 40px;
    line-height: 1;
    color: #ffffff;
}

.shared-contact-card__text,
.shared-contact-card__text a {
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.55;
    text-decoration: none;
}

.shared-contact-card__text strong {
    color: #ffffff;
    font-weight: 700;
}

.shared-contact-card__text a:hover {
    text-decoration: underline;
}

.shared-site-footer,
.shared-site-footer * {
    box-sizing: border-box;
}

.shared-site-footer {
    display: block;
    width: 100%;
    background: #002b56;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
    padding: 0;
    border: 0;
    clear: both;
}

.shared-site-footer a {
    color: #ffffff;
    text-decoration: none;
}

.shared-site-footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.shared-site-footer__wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.shared-site-footer__inner {
    display: grid;
    grid-template-columns: minmax(180px, 220px) minmax(320px, 1fr) auto;
    align-items: center;
    column-gap: 28px;
    row-gap: 20px;
    padding: 32px 0;
}

.shared-site-footer__logo {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    align-self: center;
}

.shared-site-footer__logo img {
    display: block;
    width: 200px;
    max-width: 100%;
    height: auto;
    margin: 0;
}

.shared-site-footer__contact {
    min-width: 0;
    width: 100%;
    align-self: center;
}

.shared-site-footer__contact p {
    margin: 0 0 8px;
    line-height: 1.6;
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.88);
}

.shared-site-footer__contact strong {
    color: #ffffff;
    font-weight: 600;
}

.shared-site-footer__links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 14px;
    padding: 0;
}

.shared-site-footer__links a {
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.shared-site-footer__social {
    display: inline-flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    justify-self: end;
    align-self: center;
}

.shared-site-footer__social a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    transition: background 160ms ease;
    flex: 0 0 40px;
    padding: 0;
}

.shared-site-footer__social a:hover {
    background: rgba(255, 255, 255, 0.26);
}

.shared-site-footer__social i {
    display: block;
    font-size: 18px;
    line-height: 1;
    color: #ffffff;
}

.shared-site-footer__legal {
    display: block;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.shared-site-footer__legal .shared-site-footer__wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 14px;
    padding-bottom: 14px;
    text-align: center;
}

@media (max-width: 980px) {
    .shared-contact-cards__grid {
        grid-template-columns: 1fr;
    }

    .shared-site-footer__inner {
        grid-template-columns: 1fr;
        align-items: center;
        text-align: center;
    }

    .shared-site-footer__logo,
    .shared-site-footer__social {
        justify-self: center;
    }

    .shared-site-footer__links,
    .shared-site-footer__social {
        justify-content: center;
    }
}
