@media (max-width: 799px) {
    .references {
        align-items: flex-start;
        min-height: auto;
        padding-bottom: 24px;
    }

    .references-content {
        width: 100%;
    }

    .references-list {
        display: flex;
        width: 100%;
        gap: 10px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 0 0 18px;
    }

    .references-list::-webkit-scrollbar {
        display: none;
    }

    .reference-card {
        flex: 0 0 260px;
        min-height: 130px;
        scroll-snap-align: center;
    }

    .reference-dots {
        display: flex;
        justify-content: center;
        gap: 6px;
    }

    .reference-dots span {
        width: 7px;
        height: 7px;
        border: 1px solid var(--green);
        border-radius: 999px;
        transition: width 180ms ease, background-color 180ms ease;
    }

    .reference-dots span.is-active {
        width: 18px;
        background: var(--green);
    }

    .contact-socials {
        order: 4;
        display: flex;
        justify-content: center;
        gap: 18px;
        margin-top: 36px;
    }

    .contact-socials .social-link {
        width: 28px;
        height: 28px;
    }

    .contact-legal {
        order: 5;
        width: calc(100% + 40px);
        min-height: 190px;
        margin: 62px -20px 0;
        padding: 22px 16px 26px;
        background: var(--green);
        color: var(--dark);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 10px;
    }

    .contact-footer-logo {
        order: 1;
        display: block;
        width: 100px;
        height: auto;
    }

    .contact-legal p {
        order: 2;
        margin-top: 2px;
    }

    .contact-legal-links {
        order: 3;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin-top: 8px;
    }

    .contact-legal a,
    .contact-legal p {
        color: var(--dark);
        font-size: 14px;
        line-height: 1.2;
        text-align: center;
    }

    .contact-legal a:hover {
        color: var(--white);
    }

}
