[data-component-scope="brand-custom"].footer {
    padding: 0;

    background-color: var(--brand-custom-color-tertiary);

    color: var(--brand-custom-color-primary);
    font-size: 1.4rem;
}

[data-component-scope="brand-custom"] .footer__content {
    padding: 4rem 0;
}

[data-component-scope="brand-custom"] [data-footer-bg="primary"] {
    background-color: hsl(var(--brand-custom-color-primary-h), var(--brand-custom-color-primary-s), 95%);

    color: var(--brand-custom-color-secondary);
}

[data-component-scope="brand-custom"] .footer__container {
    width: min(100%, 1312px);
    margin: 0 auto;
    padding: 0 1.6rem;
}

[data-component-scope="brand-custom"] .footer__separator {
    --_separator-color: var(--brand-custom-color-primary);

    width: 100%;
    height: 1px;
    margin: 0;

    border: none;
    background-color: var(--_separator-color);
}

[data-component-scope="brand-custom"] :is(.footer__brands, .footer__links, .footer__extra) {
    display: flex;
    flex-wrap: wrap;
    gap: 3.2rem;
    justify-content: space-between;
}

@media (max-width: 831px) {
    [data-component-scope="brand-custom"] .footer__brands li {
        position: relative;

        flex-basis: calc(50% - 3.2rem);
    }

    [data-component-scope="brand-custom"] .footer__brands li:first-child {
        flex-basis: 100%;
        padding-bottom: 3.2rem;
    }

    [data-component-scope="brand-custom"] .footer__brands li:first-child::before {
        content: '';

        position: absolute;
        left: -1.6rem;
        right: -1.6rem;
        bottom: -1px;

        height: 2px;
        background-color: var(--brand-custom-color-tertiary);
    }
}

[data-component-scope="brand-custom"] .footer__brands :is(li, li > a) {
    display: flex;
    justify-content: center;
    align-items: center;
}

[data-component-scope="brand-custom"] .footer__brands img {
    display: block;

    width: 100%;
    height: 3.2rem;

    object-fit: contain;
}

[data-component-scope="brand-custom"] .footer__brands li:first-child img {
    height: 6rem;
}

[data-component-scope="brand-custom"] .footer__links-title {
    display: block;
    margin: 1rem 0 2rem;

    color: hsl(var(--brand-custom-color-primary-h), var(--brand-custom-color-primary-s), 70%);
    font-weight: 600;
    font-size: 2rem;
    line-height: 2.8rem;
}

@media (max-width: 1023px) {
    [data-component-scope="brand-custom"] .footer__links-section:empty {
        display: none;
    }
}

@media (max-width: 831px) {
    [data-component-scope="brand-custom"] .footer__links-section {
        flex-basis: calc(50% - 3.2rem);
    }
}

@media (max-width: 469px) {
    [data-component-scope="brand-custom"] .footer__links-section {
        flex-basis: 100%;
        text-align: center;
    }
}

[data-component-scope="brand-custom"] .footer__links li {
    margin: 1rem 0;

    line-height: 1.5em;
}

[data-component-scope="brand-custom"] .footer__extra {
    gap: 2rem;
    align-items: center;
    justify-content: center;

    margin: 3.2rem auto 2.2rem;
}

[data-component-scope="brand-custom"] .footer__logo img {
    display: block;
    height: 4.4rem;
    width: auto;
}

@media (max-width: 639px) {
    [data-component-scope="brand-custom"] .footer__copy {
        text-align: center;
    }
}

@media (min-width: 640px) and (max-width: 767px) {
    [data-component-scope="brand-custom"] .footer__copy {
        flex-basis: 214px;
    }
}

@media (min-width: 1300px) {
    [data-component-scope="brand-custom"] .footer__copy {
        flex-basis: 214px;
    }
}

[data-component-scope="brand-custom"] .footer__extra ul {
    display: flex;
    gap: .6rem;
}

[data-component-scope="brand-custom"] .footer__legal {
    gap: 1.3rem !important;

    padding: 0 2rem;

    text-transform: capitalize;
}

@media (max-width: 831px) {
    [data-component-scope="brand-custom"] .footer__legal {
        gap: 1rem 2rem !important;
        flex-wrap: wrap;
        justify-content: center;

        text-align: center;
    }
}

@media (min-width: 832px) {
    [data-component-scope="brand-custom"] .footer__legal li {
        position: relative;
    }

    [data-component-scope="brand-custom"] .footer__legal li:not(:first-child)::before {
        content: '';

        position: absolute;
        top: 50%;
        left: -0.7rem;
        transform: translateY(-50%);

        height: 1em;
        width: 1px;

        background-color: currentColor;
    }
}

@media (min-width: 640px) {
    [data-component-scope="brand-custom"] .footer__social {
        margin-left: auto;
    }
}

[data-component-scope="brand-custom"] .footer__social a {
    display: grid;
    align-content: center;
    justify-content: center;

    width: 3.2rem;
    height: 3.2rem;

    border: 2px solid currentColor;
    border-radius: 50%;
}

[data-component-scope="brand-custom"] .footer__social svg {
    height: 2.2rem;
}