/* Footer bottom bar only. Loaded after responsive-overrides so this row stays centered. */

.tcp-site-footer__bar .tcp-site-footer__bar-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas: "brand social legal";
    align-items: center;
    column-gap: 1rem;
    row-gap: 0.65rem;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0.7rem 0;
    min-height: 4rem;
}

.tcp-site-footer__bar .tcp-site-footer__bar-brand {
    grid-area: brand;
    display: flex;
    align-items: center;
    justify-self: start;
    justify-content: flex-start;
    gap: 0.55rem;
    width: auto;
    min-width: 0;
    max-width: 100%;
    margin: 0;
}

.tcp-site-footer__bar .tcp-site-footer__bar-logo {
    flex: 0 0 auto;
    align-self: center;
    line-height: 0;
}

.tcp-site-footer__bar .tcp-site-footer__copy {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    margin: 0;
}

.tcp-site-footer__bar .tcp-site-footer__social {
    grid-area: social;
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    gap: 0.7rem;
    width: auto;
    min-width: 0;
    margin: 0;
}

.tcp-site-footer__bar .tcp-site-footer__legal {
    grid-area: legal;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    justify-self: end;
    flex-wrap: nowrap;
    gap: 0.4rem 0.55rem;
    width: auto;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    white-space: nowrap;
}

@media (max-width: 1199.98px) {
    .tcp-site-footer__bar .tcp-site-footer__bar-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        grid-template-areas: "brand social legal";
        align-items: center;
        column-gap: 0.75rem;
        padding: 0.65rem 0;
        min-height: 4rem;
    }

    .tcp-site-footer__bar .tcp-site-footer__bar-brand {
        align-items: center;
        justify-self: start;
        justify-content: flex-start;
        width: auto;
        max-width: 100%;
    }

    .tcp-site-footer__bar .tcp-site-footer__social {
        justify-self: center;
        justify-content: center;
        width: auto;
    }

    .tcp-site-footer__bar .tcp-site-footer__legal {
        justify-self: end;
        justify-content: flex-end;
        width: auto;
        white-space: nowrap;
    }
}

@media (max-width: 991.98px) {
    .tcp-site-footer__bar .tcp-site-footer__bar-inner {
        column-gap: 0.65rem;
        padding-top: 0.65rem;
        padding-bottom: max(0.65rem, env(safe-area-inset-bottom, 0px));
        min-height: 3.75rem;
    }
}

@media (max-width: 767.98px) {
    .tcp-site-footer__bar .tcp-site-footer__bar-inner {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "brand"
            "social"
            "legal";
        justify-items: center;
        column-gap: 0;
        row-gap: 0.7rem;
        min-height: 0;
        padding: 0.75rem 0;
        padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
    }

    .tcp-site-footer__bar .tcp-site-footer__bar-brand,
    .tcp-site-footer__bar .tcp-site-footer__social,
    .tcp-site-footer__bar .tcp-site-footer__legal {
        justify-self: center;
        justify-content: center;
        align-items: center;
        width: auto;
        max-width: 100%;
    }

    .tcp-site-footer__bar .tcp-site-footer__copy {
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .tcp-site-footer__bar .tcp-site-footer__copy-line,
    .tcp-site-footer__bar .tcp-site-footer__dev {
        text-align: center;
        max-width: 100%;
    }

    .tcp-site-footer__bar .tcp-site-footer__legal {
        white-space: nowrap;
    }
}
