﻿
.terms-modal {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    backdrop-filter: blur(2px);
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.terms-modal.show {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.terms-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 25px 30px;
    border-radius: 16px;
    width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    animation: slideUp 0.4s ease forwards;
    opacity: 0;
    transform: translateY(40px);
}

.terms-modal.show .terms-modal-content {
    opacity: 1;
    transform: translateY(0);
}

.terms-body {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #555;
    cursor: pointer;
    transition: color 0.3s ease;
}

    .close-btn:hover {
        color: #000;
    }

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media screen and (max-width: 600px) {
    .terms-modal-content {
        width: 90%;
        padding: 20px 20px;
    }
}

