.legal-guarantee-footer {
    margin-top: 4px;
    text-align: center;
}

.legal-guarantee-footer .legal-guarantee-link,
.legal-guarantee-checkout .legal-guarantee-link,
.legal-guarantee-notice__links a {
    padding: 8px 0;
    color: #074f9f;
    font-size: 14px;
    line-height: 1.5;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-guarantee-footer .legal-guarantee-link,
.legal-guarantee-checkout .legal-guarantee-link {
    display: inline-block;
    font-weight: 600;
}

.legal-guarantee-checkout {
    clear: both;
    margin: 12px 0;
    text-align: left;
}

.legal-guarantee-sidebar {
    display: block;
    margin-top: 12px;
}

.legal-guarantee-policy {
    margin: 0 0 32px;
    color: #000;
    font-size: 16px;
    line-height: 1.5;
}

.legal-guarantee-policy .legal-guarantee-policy__heading {
    margin: 0 0 16px;
    color: inherit;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: inherit;
}

.legal-guarantee-policy .legal-guarantee-notice__links a,
.legal-guarantee-policy .legal-guarantee-notice__mobile-help {
    font-size: inherit;
    line-height: inherit;
}

.legal-guarantee-policy .legal-guarantee-notice {
    margin-left: 0;
}

.legal-guarantee-notice {
    max-width: 794px;
    margin: 0 auto;
}

.legal-guarantee-notice__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-bottom: 16px;
}

.legal-guarantee-notice__mobile-help {
    font-size: 14px;
    line-height: 1.5;
}

.legal-guarantee-notice__viewport {
    max-width: 100%;
    overflow-x: auto;
    background: #fff;
    -webkit-overflow-scrolling: touch;
}

.legal-guarantee-notice__viewport .legal-guarantee-notice__image {
    display: block;
    width: 100%;
    min-width: 595px;
    max-width: none;
    height: auto;
    margin: 0;
}

.legal-guarantee-modal .modal-inner-wrap {
    width: 880px;
    max-width: calc(100% - 32px);
    background: #fff;
}

.legal-guarantee-modal .modal-content {
    padding: 0 24px 24px;
}

.legal-guarantee-notice__viewport:focus-visible,
.legal-guarantee-link:focus-visible,
.legal-guarantee-notice__links a:focus-visible {
    outline: 2px solid #074f9f;
    outline-offset: 3px;
}

@media (min-width: 768px) {
    .legal-guarantee-notice__mobile-help {
        display: none;
    }

    .legal-guarantee-footer {
        margin-top: 0;
    }

    .legal-guarantee-footer .legal-guarantee-link {
        padding: 2px 0 0;
    }
}

@media (max-width: 767px) {
    .legal-guarantee-footer {
        padding: 0 40px 8px;
    }

    .modal-popup.legal-guarantee-modal {
        left: 0;
    }

    .modal-popup.legal-guarantee-modal .modal-inner-wrap {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .legal-guarantee-modal .modal-header {
        padding: 20px 48px 16px 16px;
    }

    .legal-guarantee-modal .modal-content {
        padding: 0 16px 24px;
    }
}
