/* نوافذ الشروط والأحكام وسياسة الخصوصية */
.terms-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.terms-modal.active {
    opacity: 1;
    visibility: visible;
}

.terms-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    padding: 0;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.8);
    position: relative;
    animation: modalPop 0.2s ease;
    font-family: 'Cairo', sans-serif;
}

.terms-close {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #f3f4f6;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #374151;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 10;
}

.terms-close:hover {
    background: #e5e7eb;
    color: #374151;
    transform: rotate(90deg);
}

.terms-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    padding: 40px 30px 30px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}



.terms-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.terms-logo img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.terms-logo h2 {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.terms-header h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.terms-text {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
    color: #374151;
    line-height: 1.7;
}

.terms-text::-webkit-scrollbar {
    width: 6px;
}

.terms-text::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.terms-text::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.terms-text::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.terms-section {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(59, 130, 246, 0.02);
    border-radius: 12px;
    border-right: 4px solid #3b82f6;
}

.terms-section h4 {
    color: #1e40af;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.terms-section h4 i {
    color: #3b82f6;
    font-size: 20px;
}

.terms-section p {
    margin-bottom: 8px;
    font-size: 15px;
    color: #4b5563;
}

.terms-section p strong {
    color: #1f2937;
    font-weight: 600;
}

.terms-footer {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 20px;
    text-align: center;
    border-top: 1px solid #e5e7eb;
    margin-top: 20px;
}

.terms-footer p {
    margin: 5px 0;
    font-size: 14px;
    color: #6b7280;
}

.terms-footer strong {
    color: #1f2937;
    font-weight: 600;
}

@keyframes modalPop {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}



@media (max-width: 768px) {
    .terms-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .terms-header {
        padding: 30px 20px 25px;
    }
    
    .terms-header h3 {
        font-size: 24px;
    }
    
    .terms-text {
        padding: 20px;
    }
    
    .terms-section {
        padding: 15px;
    }
    
    .terms-section h4 {
        font-size: 16px;
    }
}