.site-footer {
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.site-footer .footer-social,
.site-footer .footer-main {
    padding: 1.5rem 1rem;
}

.site-footer .footer-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.site-footer .footer-social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
}

.site-footer .footer-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

.site-footer .footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    max-width: 80rem;
    margin: 0 auto;
    text-align: left;
}

.site-footer .footer-grid > div {
    min-width: 0;
}

.site-footer .footer-grid > div + div {
    border-top: 1px solid #d1d5db;
    padding-top: 1.5rem;
}

.site-footer .footer-services {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.site-footer .footer-links a,
.site-footer .footer-contact a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    max-width: 100%;
    padding: 0.5rem 0;
}

.site-footer .footer-contact {
    font-style: normal;
}

.site-footer .footer-contact > div {
    display: grid;
    grid-template-columns: 1rem minmax(0, 1fr);
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.site-footer .footer-contact i {
    padding-top: 0.3rem;
}

.site-footer a:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 3px;
    border-radius: 2px;
}

.site-footer .footer-bottom {
    padding: 1.25rem 1rem calc(6rem + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 640px) {
    .site-footer .footer-main {
        padding: 2.5rem 1.5rem;
    }

    .site-footer .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem;
    }

    .site-footer .footer-grid > div + div {
        border-top: 0;
        padding-top: 0;
    }
}

@media (min-width: 768px) {
    .site-footer .footer-social {
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem 1.5rem;
        text-align: left;
    }

    .site-footer .footer-bottom {
        padding: 1.25rem 6rem;
    }
}

@media (min-width: 1280px) {
    .site-footer .footer-grid {
        grid-template-columns: 1.1fr 1.2fr 0.8fr 1.1fr;
    }
}
