/* Terms of Use Modal Styles */
.terms-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.terms-modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 35px;
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.4s ease;
    direction: rtl;
}

.terms-modal-close {
    color: #aaa;
    float: left;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    position: absolute;
    left: 20px;
    top: 15px;
}

.terms-modal-close:hover,
.terms-modal-close:focus {
    color: #667eea;
}

.terms-modal-content h1 {
    color: #667eea;
    text-align: center;
    margin-bottom: 15px;
    font-size: 2rem;
}

.terms-modal-content h2 {
    color: #009688;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.terms-modal-content p {
    color: #333;
    line-height: 1.8;
    text-align: right;
    margin-bottom: 15px;
    font-size: 1rem;
}

.terms-section {
    margin-bottom: 25px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .terms-modal-content {
        margin: 5% auto;
        padding: 20px;
        width: 95%;
        max-height: 85vh;
    }
    
    .terms-modal-content h1 {
        font-size: 1.5rem;
    }
    
    .terms-modal-content h2 {
        font-size: 1.2rem;
    }
    
    .terms-modal-content p {
        font-size: 0.9rem;
    }
}

