/* =========================================================
   FINMARKET — site footer
   ========================================================= */

.fm-footer {
    padding: clamp(56px, 9vh, 110px) clamp(20px, 4.5vw, 72px) clamp(26px, 4vh, 44px);
    background-color: #111111;
    color: #ffffff;
    font-family: 'Inter', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
    line-height: normal;
    -webkit-font-smoothing: antialiased;
    /* Most Finmarket pages leave the body white, so on high-DPI phones the white shows
       through as a hairline where the last section meets the footer at a fractional pixel. */
    box-shadow: 0 -2px 0 #111111;
}

.fm-footer, .fm-footer * { box-sizing: border-box; }

.fm-footer a { text-decoration: none; }

.fm-footer__inner {
    max-width: 1560px;
    margin: 0 auto;
}

.fm-footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: clamp(32px, 4vw, 72px);
}

.fm-footer__col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.fm-footer__col--brand { gap: 0; }

.fm-footer__logo img {
    display: block;
    height: clamp(32px, 3.4vw, 44px);
    width: auto;
}

.fm-footer__about {
    max-width: 36ch;
    margin: 22px 0 0;
    font-size: 14px;
    line-height: 1.68;
    color: rgba(255, 255, 255, .66);
    text-wrap: pretty;
}

.fm-footer__title {
    margin: 0 0 4px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .5);
}

.fm-footer__link {
    padding: 2px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, .72);
}

.fm-footer__contact {
    font-size: 14px;
    color: rgba(255, 255, 255, .72);
}

.fm-footer__address {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .66);
}

.fm-footer__social {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

    .fm-footer__social a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, .2);
        color: rgba(255, 255, 255, .72);
        font-size: 15px;
        text-decoration: none;
        transition: border-color .3s ease, color .3s ease, background .3s ease;
    }

        .fm-footer__social a:hover,
        .fm-footer__social a:focus-visible {
            border-color: #54243D;
            background: #54243D;
            color: #ffffff;
        }

/* ---------- bottom bar ---------- */

.fm-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 32px;
    align-items: center;
    justify-content: space-between;
    margin-top: clamp(38px, 6vh, 80px);
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .14);
}

.fm-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 26px;
    align-items: center;
}

.fm-footer__legal a,
.fm-footer__legal span,
.fm-footer__credit,
.fm-footer__copyright {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, .62);
}

.fm-footer__credit a {
    color: rgba(255, 255, 255, .62);
    border-bottom: 1px solid rgba(255, 255, 255, .2);
}
