.l2g-public-benefit-terms-inline {
    margin: 12px 0 0;
}

.l2g-public-benefit-terms-link {
    color: #0A2A5E;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.l2g-benefit-terms-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: center;
    padding: 24px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}

.l2g-benefit-terms-modal.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.l2g-benefit-terms-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 25, 49, .62);
    backdrop-filter: blur(3px);
}

.l2g-benefit-terms-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    max-height: min(82vh, 820px);
    overflow: auto;
    padding: 34px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(7, 25, 49, .24);
    color: #4B5968;
    outline: none;
}

.l2g-benefit-terms-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #F2F6F8;
    color: #0A2A5E;
    font: inherit;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.l2g-benefit-terms-modal__close:hover,
.l2g-benefit-terms-modal__close:focus-visible {
    background: #E7EFF3;
}

.l2g-benefit-terms-modal__header {
    padding-right: 40px;
    margin-bottom: 24px;
}

.l2g-benefit-terms-modal__eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #7AB648;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.l2g-benefit-terms-modal__header h2 {
    margin: 0 0 8px;
    color: #0A2A5E;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.15;
}

.l2g-benefit-terms-modal__header p {
    margin: 0;
    color: #687887;
    font-size: 15px;
    line-height: 1.55;
}

.l2g-benefit-terms-modal__body {
    padding-top: 22px;
    border-top: 1px solid #E3EBEF;
    font-size: 15px;
    line-height: 1.7;
}

.l2g-benefit-terms-modal__body > :first-child {
    margin-top: 0;
}

.l2g-benefit-terms-modal__body > :last-child {
    margin-bottom: 0;
}

body.l2g-benefit-terms-modal-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .l2g-benefit-terms-modal {
        align-items: end;
        padding: 12px;
    }

    .l2g-benefit-terms-modal__dialog {
        width: 100%;
        max-height: 88vh;
        padding: 28px 22px 24px;
        border-radius: 18px;
    }

    .l2g-benefit-terms-modal__header {
        padding-right: 34px;
        margin-bottom: 20px;
    }

    .l2g-benefit-terms-modal__body {
        font-size: 14px;
    }
}
