.footer {
    background: linear-gradient(90deg, #0B1597 0%, #E28E46 100%);
}

.footer__container {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-top: 40px;
    padding-bottom: 32px;
}

.footer__top {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Logo + social */
.footer__brand {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    column-gap: 27px;
}

.footer__logo {
    display: block;
}

.footer__social {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.footer__social-title {
    font-size: 14px;
    line-height: normal;
    color: var(--white);
}

.footer__social-list {
    display: flex;
    gap: 12px;
}

.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, .1);
    border-radius: 50%;
    transition: background-color .2s ease;
}

.footer__social-link:hover,
.footer__social-link:focus-visible {
    background: rgba(255, 255, 255, .2);
}

.footer__social-icon {
    display: block;
}

/* Link columns */
.footer__nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 27px;
}

.footer__column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__heading {
    font-size: 14px;
    font-weight: 500;
    line-height: normal;
    color: var(--white);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer__link {
    font-size: 14px;
    line-height: 1.5;
    color: var(--gray-50);
    text-decoration: none;
}

.footer__link:hover,
.footer__link:focus-visible {
    text-decoration: underline;
}

/* Divider + legal */
.footer__legal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-top: 32px;
    text-align: center;
    color: var(--gray-200);
    border-top: 1px solid rgba(255, 255, 255, .4);
}

.footer__address {
    font-size: 12px;
    line-height: 1.5;
}

.footer__copyright {
    font-size: 14px;
    line-height: 1;
}

/* Ecosystem bar (full-bleed) */
.footer__ecosystem {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 16px 4%;
    background: #041E42;
}

.footer__ecosystem-text {
    font-size: 12px;
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--white);
}

.footer__ecosystem-logo {
    display: block;
}

@media (min-width: 768px) {
    .footer__container {
        padding-top: 48px;
    }

    .footer__top {
        gap: 40px;
    }

    .footer__brand {
        display: flex;
        gap: 122px;
    }

    .footer__nav {
        display: flex;
        justify-content: space-between;
    }
}

@media (min-width: 1200px) {
    .footer__container {
        padding-top: 60px;
        padding-bottom: 40px;
    }

    .footer__top {
        flex-direction: row;
        gap: 218px;
    }

    .footer__brand {
        flex-direction: column;
        gap: 40px;
    }

    .footer__nav {
        flex: 1 1 0;
        min-width: 0;
    }

    .footer__legal {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}
