#footer {
    --footer-bg: #101b2d;
    --footer-bg-deep: #0a1423;
    --footer-heading: #ffffff;
    --footer-text: #b9c4d2;
    --footer-muted: #8e9bad;
    --footer-accent: #ffd400;
    --footer-border: rgba(255, 255, 255, 0.1);
    font-family: var(--dd-body-font, Avenir, "Open Sans", Arial, sans-serif);
}

#footer .footer-main {
    background:
        radial-gradient(circle at 10% 110%, rgba(255, 212, 0, 0.12), transparent 34%),
        linear-gradient(135deg, #132238 0%, var(--footer-bg) 62%, #0c1727 100%) !important;
    border-top: 2px solid var(--footer-accent);
    padding: 42px 32px 38px;
}

body#bpm #footer .footer-main .footer-main__grid {
    align-items: start;
    display: grid !important;
    gap: 34px;
    grid-template-columns: minmax(260px, 1.35fr) repeat(var(--footer-section-count, 4), minmax(130px, 0.75fr));
    margin: 0 auto;
    max-width: 1240px;
    padding: 0 !important;
}

#footer .footer-brand {
    min-width: 0;
    padding-right: 12px;
}

#footer .footer-brand__logo {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: inline-flex;
    min-height: 64px;
    padding: 8px 13px;
}

#footer .footer-brand__logo img {
    display: block;
    height: auto;
    max-height: 54px;
    object-fit: contain;
    width: 190px;
}

#footer .footer-brand p {
    color: var(--footer-text) !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
    margin: 18px 0 0;
    max-width: 360px;
}

#footer .footer-brand__guide-link {
    align-items: center;
    color: var(--footer-accent) !important;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    gap: 7px;
    margin-top: 18px;
    text-decoration: none;
    transition: color 0.18s ease, gap 0.18s ease;
}

#footer .footer-brand__guide-link svg {
    height: 18px;
    width: 18px;
}

#footer .footer-brand__guide-link:hover,
#footer .footer-brand__guide-link:focus-visible {
    color: #ffe86d !important;
    gap: 10px;
}

#footer .footer-social {
    align-items: center;
    display: flex;
    gap: 9px;
    margin-top: 20px;
}

#footer .footer-social a {
    align-items: center;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--footer-border);
    border-radius: 50%;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
    width: 38px;
}

#footer .footer-social a svg {
    color: #ffffff;
    display: block;
    height: 17px;
    width: 17px;
}

#footer .footer-social a:hover,
#footer .footer-social a:focus-visible {
    background-color: rgba(255, 212, 0, 0.16);
    border-color: var(--footer-accent);
    transform: translateY(-2px);
}

#footer .footer-social a:hover svg,
#footer .footer-social a:focus-visible svg {
    color: var(--footer-accent);
}

#footer .footer-nav-group {
    margin: 0;
    min-width: 0;
    padding: 0;
}

#footer .footer-nav-group > summary {
    cursor: default;
    list-style: none;
}

#footer .footer-nav-group > summary::-webkit-details-marker {
    display: none;
}

#footer .footer-nav-group .headline {
    align-items: center;
    color: var(--footer-heading) !important;
    display: flex;
    font-family: var(--dd-heading-font, Montserrat, Avenir, "Open Sans", Arial, sans-serif);
    font-size: 16px !important;
    font-weight: 800 !important;
    justify-content: space-between;
    letter-spacing: -0.015em;
    line-height: 1.3 !important;
    margin: 3px 0 13px;
}

#footer .footer-nav-group .headline svg {
    display: none;
    height: 18px;
    transition: transform 0.18s ease;
    width: 18px;
}

#footer .footer-nav-group .link-list {
    display: grid !important;
    gap: 9px;
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
}

#footer .footer-nav-group .link-list li {
    color: var(--footer-text) !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    overflow: visible !important;
    white-space: normal !important;
    width: auto !important;
}

#footer .footer-nav-group .link-list a {
    color: var(--footer-text) !important;
    display: inline-flex !important;
    line-height: 1.4 !important;
    padding: 2px 0;
    position: relative;
    text-decoration: none;
    transition: color 0.18s ease, transform 0.18s ease;
}

#footer .footer-nav-group .link-list a::before {
    background: var(--footer-accent);
    border-radius: 50%;
    content: "";
    height: 5px;
    left: -12px;
    opacity: 0;
    position: absolute;
    top: 9px;
    transform: scale(0.6);
    transition: opacity 0.18s ease, transform 0.18s ease;
    width: 5px;
}

#footer .footer-nav-group .link-list a:hover,
#footer .footer-nav-group .link-list a:focus-visible {
    color: var(--footer-accent) !important;
    transform: translateX(4px);
}

#footer .footer-nav-group .link-list a:hover::before,
#footer .footer-nav-group .link-list a:focus-visible::before {
    opacity: 1;
    transform: scale(1);
}

#footer .footer-bottom {
    background: var(--footer-bg-deep) !important;
    border-top: 1px solid var(--footer-border) !important;
    padding: 0 32px !important;
}

#footer .footer-bottom .bottom-content {
    align-items: center;
    display: flex;
    justify-content: center;
    margin: 0 auto;
    max-width: 1240px;
    padding: 17px 0 !important;
}

#footer .footer-bottom .footer-copyright {
    color: var(--footer-muted) !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    line-height: 1.45 !important;
    text-transform: none !important;
}

#footer .footer-bottom .footer-copyright-wrap {
    align-items: center;
    display: flex;
}

@media (max-width: 1100px) {
    body#bpm #footer .footer-main .footer-main__grid {
        gap: 28px 24px;
        grid-template-columns: minmax(280px, 1.25fr) repeat(2, minmax(170px, 0.75fr));
    }

    #footer .footer-brand {
        grid-row: span 2;
    }
}

@media (max-width: 767px) {
    #footer .footer-main {
        padding: 32px 18px 26px;
    }

    body#bpm #footer .footer-main .footer-main__grid {
        display: block !important;
    }

    #footer .footer-brand {
        border-bottom: 1px solid var(--footer-border);
        padding: 0 0 24px;
    }

    #footer .footer-brand p {
        max-width: none;
    }

    #footer .footer-nav-group {
        border-bottom: 1px solid var(--footer-border);
    }

    #footer .footer-nav-group .headline {
        cursor: pointer;
        font-size: 15px !important;
        margin: 0;
        min-height: 54px;
        padding: 14px 2px;
    }

    #footer .footer-nav-group .headline svg {
        display: block;
    }

    #footer .footer-nav-group[open] .headline svg {
        transform: rotate(180deg);
    }

    #footer .footer-nav-group:not([open]) > .link-list {
        display: none !important;
    }

    #footer .footer-nav-group .link-list {
        gap: 0;
        padding: 0 2px 15px !important;
    }

    #footer .footer-nav-group .link-list li {
        width: 100% !important;
    }

    #footer .footer-nav-group .link-list a {
        display: flex !important;
        min-height: 38px;
        padding: 8px 0;
    }

    #footer .footer-bottom {
        padding: 0 18px !important;
    }

    #footer .footer-bottom .bottom-content {
        align-items: center;
        padding: 16px 0 !important;
    }

    #footer .footer-bottom .footer-copyright {
        text-align: center !important;
    }
}

@media (max-width: 420px) {
    #footer .footer-brand__logo img {
        width: 175px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #footer .footer-brand__guide-link,
    #footer .footer-nav-group .headline svg,
    #footer .footer-nav-group .link-list a,
    #footer .footer-nav-group .link-list a::before,
    #footer .footer-social a {
        transition: none;
    }
}
