[data-component-scope="brand-custom"].footer {
    padding: 7rem 2rem 5rem;

    background-color: var(--color-primary);

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

[data-component-scope="brand-custom"] .footer__brands {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

@media (max-width: 639px) {
    [data-component-scope="brand-custom"] .footer__brands li {
        flex-basis: calc(50% - 2rem);
    }
}

[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: 100%;
    max-height: 10rem;

    object-fit: contain;
}

[data-component-scope="brand-custom"] .footer-top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding-top: 7rem;
    font-size: 1.4rem;
    color: var(--color-secondary);
}

[data-component-scope="brand-custom"] .footer-top .footer-content {
    grid-column: 1;
    justify-self: start;
}

[data-component-scope="brand-custom"] .footer-top .footer-generic {
    grid-column: 2;
    justify-self: center;
}

[data-component-scope="brand-custom"] .footer-content a:hover,
[data-component-scope="brand-custom"] .footer-content a:focus {
    color: var(--color-secondary);
}

[data-component-scope="brand-custom"] .footer-content .footer-content__logo,
[data-component-scope="brand-custom"] .footer-content .footer-content__contact,
[data-component-scope="brand-custom"] .footer-content .footer-content__social {
    display: flex;
    align-content: center;
    justify-content: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
}

[data-component-scope="brand-custom"] .footer-generic .footer-generic__links {
    display: flex;
    gap: 3rem;
    justify-content: center;
    list-style: none;
}

[data-component-scope="brand-custom"] .footer-content__logo {
    margin-bottom: 2rem;
}

[data-component-scope="brand-custom"] .footer-content__logo img {
    height: auto;
    max-width: 15rem;
}

[data-component-scope="brand-custom"] .footer-content__social li {
    border-radius: 50%;
    border: 1px solid var(--color-secondary);
    width: 35px;
    height: 35px;
    padding: 6px;
    background: transparent;
}

[data-component-scope="brand-custom"] .footer-content__social li:hover,
[data-component-scope="brand-custom"] .footer-content__social li:focus,
[data-component-scope="brand-custom"] .footer-content__social li:hover .social__link svg,
[data-component-scope="brand-custom"] .footer-content__social li:focus .social__link svg {
    cursor: pointer;
    border-color: var(--color-accent);
    color: var(--color-accent);
}

[data-component-scope="brand-custom"] .footer-content__social .social__link svg {
    width: 100%;
    height: 100%;
    transition: fill 0.3s ease;
}

@media (max-width: 768px) {
    [data-component-scope="brand-custom"] .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 10px;
    }

    [data-component-scope="brand-custom"] .footer-top .footer-content,
    [data-component-scope="brand-custom"] .footer-top .footer-generic {
        grid-column: 1;
        justify-self: center;
    }

    [data-component-scope="brand-custom"] .footer-content .footer-content__logo,
    [data-component-scope="brand-custom"] .footer-content .footer-content__contact,
    [data-component-scope="brand-custom"] .footer-content .footer-content__social {
        justify-content: center;
    }

    [data-component-scope="brand-custom"] .footer-generic .footer-generic__links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    [data-component-scope="brand-custom"] .footer-generic .footer-generic__links li {
        white-space: nowrap;
    }
}