.wp-block-base-theme-footer .footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.2fr);
    gap: 2.5rem clamp(1.5rem, 3vw, 3rem);
    align-items: start;
}

.wp-block-base-theme-footer .footer__column {
    min-width: 0;
}

.wp-block-base-theme-footer .footer__brand {
    display: flex;
    align-items: flex-start;
    height: clamp(1.75rem, 3vw, 2.75rem);
    margin-bottom: clamp(1.125rem, 1.8vw, 1.6875rem);
}

.wp-block-base-theme-footer .footer__logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: left top;
}

.wp-block-base-theme-footer .footer__column--1 .footer__logo {
    width: min(76%, 19rem);
}

.wp-block-base-theme-footer .footer__column--2 .footer__logo {
    width: min(52%, 8rem);
}

.wp-block-base-theme-footer .footer__column--3 .footer__logo {
    width: min(57%, 9rem);
}

.wp-block-base-theme-footer .footer__column--4 .footer__logo {
    width: min(32%, 6rem);
}

.wp-block-base-theme-footer .footer__text {
    overflow-wrap: anywhere;
}

.wp-block-base-theme-footer .footer__text > :first-child {
    margin-top: 0;
}

.wp-block-base-theme-footer .footer__text > :last-child {
    margin-bottom: 0;
}

.wp-block-base-theme-footer .footer__text p + p {
    margin-top: 1.5em;
}

@media (max-width: 899px) {
    .wp-block-base-theme-footer .footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 599px) {
    .wp-block-base-theme-footer .footer__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .wp-block-base-theme-footer .footer__column + .footer__column {
        padding-top: 2.5rem;
        border-top: 2px solid var(--color-black);
    }
}
