footer.dd-footer-v4-ready .dd-footer-v4-social-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    width: max-content;
    max-width: min(780px, calc(100vw - 40px));
    min-width: 0;
}

footer.dd-footer-v4-ready .dd-footer-v4-policies {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px 21px;
    margin-left: clamp(10px, 2vw, 28px);
    transform: translateY(-2px);
}

footer.dd-footer-v4-ready .dd-footer-v4-policies a {
    font-size: 12px !important;
    line-height: 1.5 !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    color: #786970 !important;
    white-space: nowrap;
    border: 0 !important;
    transition: color .18s ease;
}

footer.dd-footer-v4-ready .dd-footer-v4-policies a:hover,
footer.dd-footer-v4-ready .dd-footer-v4-policies a:focus-visible {
    color: #8c1739 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

footer.dd-footer-v4-ready .dd-footer-v3-bottom {
    box-sizing: border-box !important;
    grid-column: 1 / -1;
    flex-basis: 100%;
    width: 100% !important;
    max-width: none !important;
    margin: 13px 0 0 !important;
    padding: 19px 0 22px !important;
    left: auto !important;
    transform: none !important;
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 14px 25px;
}

footer.dd-footer-v4-ready .dd-footer-v4-empty-row {
    display: none !important;
}

footer.dd-footer-v4-ready .dd-footer-v3-legal-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px 16px;
    margin-left: auto;
}

@media (max-width: 1050px) {
    footer.dd-footer-v4-ready .dd-footer-v3-bottom {
        flex-wrap: wrap !important;
    }

    footer.dd-footer-v4-ready .dd-footer-v3-legal-line {
        margin-left: 0;
        justify-content: flex-start;
    }

    footer.dd-footer-v4-ready .dd-footer-v4-policies {
        margin-left: 0;
        gap: 8px 18px;
    }
}

@media (max-width: 650px) {
    footer.dd-footer-v4-ready .dd-footer-v3-bottom {
        padding: 16px 0 20px !important;
        gap: 11px !important;
    }

    footer.dd-footer-v4-ready .dd-footer-v4-social-row {
        width: 100% !important;
        max-width: 100% !important;
        gap: 9px 13px !important;
    }

    footer.dd-footer-v4-ready .dd-footer-v4-policies {
        flex-basis: 100%;
        transform: none;
        gap: 8px 16px;
    }

    footer.dd-footer-v4-ready .dd-footer-v4-policies a {
        font-size: 11px !important;
    }
}
