/* Footer and bottom action fixes. */
.mobile-conversion-bar {
    display: none;
}

.footer {
    overflow: hidden;
}

.footer .footer-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1.8fr) repeat(3, minmax(150px, 1fr));
    gap: 44px;
    align-items: start;
    margin-bottom: 42px;
}

.footer .footer-about p {
    max-width: 520px;
}

.footer .footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer .footer-social a,
.footer .footer-contact-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 8px;
}

.footer .footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer .footer-col a {
    min-height: 28px;
}

.footer .footer-col--contact a {
    display: flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    max-width: 100%;
    min-height: 44px;
    margin-bottom: 14px;
    line-height: 1.45;
}

.footer .footer-col--contact a span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.footer .footer-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer .footer-contact-icon .icons {
    width: 18px !important;
    height: 18px !important;
}

.footer .footer-bottom {
    gap: 24px;
}

.footer-legal-links {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    justify-content: flex-end;
}

.footer-legal-links a {
    color: inherit;
    text-decoration: none;
}

.footer-legal-links a:hover,
.footer-legal-links a:focus-visible {
    color: var(--primary-light);
}

@media (max-width: 1024px) {
    .footer .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px 28px;
    }

    .footer .footer-about,
    .footer .footer-col--contact {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    html.page-home body {
        padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    }

    .mobile-conversion-bar {
        position: fixed;
        left: calc(10px + env(safe-area-inset-left, 0px));
        right: calc(10px + env(safe-area-inset-right, 0px));
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        z-index: 1520;
        display: grid;
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
        gap: 8px;
        padding: 8px;
    }

    .footer .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer .footer-about,
    .footer .footer-col {
        min-width: 0;
    }

    .footer .footer-about p {
        max-width: none;
    }

    .footer .footer-col--contact a {
        width: 100%;
    }

    .footer .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        text-align: left;
    }

    .footer-legal-links {
        justify-content: flex-start;
        gap: 8px;
    }

    .footer-legal-links a {
        display: inline-flex;
        align-items: center;
        min-height: 36px;
        padding: 7px 10px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.04);
    }

    body.nav-open .mobile-conversion-bar,
    body.contact-in-view .mobile-conversion-bar {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(calc(100% + 18px));
    }
}
