.brand-footer {
    --footer-background: #f3f6fc;
    --footer-glow: rgba(8, 124, 189, .08);
    --footer-text: #26384d;
    --footer-link: #52657c;
    --footer-link-hover: #075f91;
    --footer-muted: #52657c;
    --footer-heading: #182b43;
    --footer-line: #d7e1ee;
    --footer-accent: #087cbd;
    --footer-social-surface: #fff;
    --footer-social-hover-border: rgba(8, 124, 189, .45);
    --footer-social-hover-surface: rgba(8, 124, 189, .07);
    padding: 0;
    border-top: 1px solid var(--footer-line);
    background:
        radial-gradient(ellipse at 12% 0, var(--footer-glow), transparent 42%),
        var(--footer-background);
    color: var(--footer-text);
    font-size: .875rem;
    line-height: 1.5;
}

.brand-footer-shell {
    width: min(1240px, calc(100% - 64px));
    margin-inline: auto;
}

.brand-footer a {
    color: var(--footer-link);
    text-decoration: none;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.brand-footer a:hover {
    color: var(--footer-link-hover);
}

.brand-footer :is(a, button):focus-visible {
    outline: 2px solid var(--footer-accent);
    outline-offset: 4px;
    border-radius: 4px;
}

.brand-footer .ui-icon {
    width: 17px;
    height: 17px;
    margin: 0;
}

.brand-footer-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding-block: 28px;
    border-bottom: 1px solid var(--footer-line);
}

.brand-footer-identity {
    display: flex;
    align-items: center;
    gap: 32px;
    min-width: 0;
}

.brand-footer-logo {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: 212px;
    height: 48px;
}

.brand-footer-logo img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 160ms ease;
}

.brand-footer-logo-dark {
    opacity: 0;
    visibility: hidden;
}

.brand-footer-logo-light {
    opacity: 1;
    visibility: visible;
}

.brand-footer-identity p,
.brand-footer-contact p {
    margin: 0;
    color: var(--footer-muted);
    font-size: .875rem;
    line-height: 1.7;
}

.brand-footer-contact {
    display: grid;
    justify-items: end;
    gap: 10px;
    flex-shrink: 0;
}

.brand-footer-contact p {
    font-size: .8125rem;
}

.brand-footer .brand-footer-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid #087cbd;
    border-radius: 10px;
    background: #087cbd;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
    color: #fff;
    font-size: .875rem;
    font-weight: 600;
}

.brand-footer .brand-footer-cta:hover {
    border-color: #075f91;
    background: #075f91;
    color: #fff;
}

.brand-footer-directory {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    padding-block: 28px;
}

.brand-footer-column {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.brand-footer .brand-footer-label {
    margin: 0;
    color: var(--footer-heading);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .09em;
    line-height: 1.5;
    text-transform: uppercase;
}

.brand-footer-column .brand-footer-label {
    margin-bottom: 10px;
}

.brand-footer-column a,
.brand-footer-column .settings-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    padding: 6px 0;
    border: 0;
    background: none;
    color: var(--footer-link);
    font-family: inherit;
    font-size: .875rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    overflow-wrap: anywhere;
}

.brand-footer-column .settings-link {
    cursor: pointer;
    transition: color 160ms ease;
}

.brand-footer-column :is(a, .settings-link):hover {
    color: var(--footer-link-hover);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.brand-footer-column img {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    object-fit: contain;
}

.brand-footer-column .brand-footer-directory-all {
    margin-top: 6px;
    color: var(--footer-link-hover);
    font-size: .8125rem;
    font-weight: 600;
}

.brand-footer-connect,
.brand-footer-follow {
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand-footer-connect {
    justify-content: space-between;
    padding-block: 14px;
    border-block: 1px solid var(--footer-line);
}

.brand-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.brand-footer-social a {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--footer-line);
    border-radius: 10px;
    background: var(--footer-social-surface);
}

.brand-footer-social a:hover {
    border-color: var(--footer-social-hover-border);
    background: var(--footer-social-hover-surface);
    color: var(--footer-link-hover);
}

.brand-footer .brand-footer-top,
.brand-footer-bottom a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
}

.brand-footer-top {
    flex-shrink: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--footer-link);
    font-family: inherit;
    font-size: .8125rem;
    line-height: inherit;
    cursor: pointer;
    transition: color 160ms ease;
}

.brand-footer-top:hover {
    color: var(--footer-link-hover);
}

.brand-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 24px;
    padding-block: 16px 18px;
    color: var(--footer-muted);
    font-size: .75rem;
}

@media (max-width: 1100px) {
    .brand-footer-identity {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 800px) {
    .brand-footer-directory {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 32px;
    }

    .brand-footer-follow {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 600px) {
    .brand-footer-shell {
        width: calc(100% - 40px);
    }

    .brand-footer-intro {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
        padding-block: 24px;
    }

    .brand-footer-contact {
        justify-items: start;
        flex-shrink: 1;
    }

    .brand-footer-directory {
        gap: 24px 20px;
        padding-block: 24px;
    }

    .brand-footer-column a,
    .brand-footer-column .settings-link {
        min-height: 44px;
    }

    .brand-footer-connect {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .brand-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        padding-block: 20px 12px;
    }
}

@media (max-width: 380px) {
    .brand-footer-directory {
        column-gap: 12px;
    }

    .brand-footer-column a,
    .brand-footer-column .settings-link {
        gap: 6px;
        font-size: .8125rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .brand-footer a,
    .brand-footer button,
    .brand-footer-logo img {
        transition: none;
    }
}
