.Modal {
    position: fixed;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    background: white;
    padding: 15px;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    z-index: -1;
    pointer-events: none;
    display: flex;
    flex-direction: column;
}

.Modal.is-active {
    z-index: 100;
    opacity: 1;
    pointer-events: all;
}

.ModalHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ModalHeaderTitle {
    font-size: 16px;
    font-weight: bold;
}

.ModalBody p,
.ModalBody li {
    font-size: 12px;
}

.ModalBody h3 {
    font-size: 14px;
    font-weight: bold;
}

.ModalBody h4 {
    font-size: 13px;
    font-weight: bold;
}

.ModalBody h5 {
    font-size: 12px;
    font-weight: bold;
}

@media (min-width: 768px) {
    .Modal {
        top: 30px;
        left: 30px;
        right: 30px;
        bottom: 30px;
        padding: 30px;
    }

    .ModalHeaderTitle {
        font-size: 20px;
    }

    .ModalBody h3 {
        font-size: 18px;
    }

    .ModalBody h4 {
        font-size: 16px;
    }

    .ModalBody h5 {
        font-size: 14px;
    }

    .ModalBody p,
    .ModalBody li {
        font-size: 14px;
    }
}

.ModalHeaderClose {
    line-height: 0;
}

.ModalHeaderClose .modal-close {
    background: transparent;
    line-height: 0;
    transition: all 0.2s ease-in-out;
}

.Modal .modal-close:hover {
    color: rgb(22, 0, 163);
}

.Modal .modal-close svg {
    width: 16px;
    height: auto;
}

.ModalBody {
    margin-top: 30px;
    overflow-y: auto;
}

.ModalBody p,
.ModalBody ul li {
    line-height: 1.6;
}

.ModalBody ul li:not(:first-child) {
    margin-top: 8px;
}

/*.ModalBody h2 + * {*/
/*    margin-top: 30px;*/
/*}*/

.ModalBody *:not(:first-child) {
    margin-top: 15px;
}

