/* ========== TERMS MODAL STYLES ==========*/
/* Модальное окно с правилами */

.terms-modal {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--yellow-btn);
    border-radius: 12px;
    z-index: 200;
    padding: 30px;
    overflow-y: auto;
}

.terms-modal.active {
    display: block;
}

.terms-modal__content {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.terms-modal__close {
    position: absolute;
    top: -10px;
    right: 0;
    width: 32px;
    height: 32px;
    font-size: 32px;
    color: var(--text-dark);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
}

.terms-modal__close:hover {
    transform: scale(1.2);
}

.terms-modal__title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 20px 0;
    text-align: center;
}

.terms-modal__text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
}

.terms-modal__text p {
    margin: 0 0 15px 0;
}

.terms-modal__text p:last-child {
    margin-bottom: 0;
}
