/* Import Cairo Font */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
    --gradient-start: #6B46C1;
    --gradient-end: #3B82F6;
    --primary: #8B5CF6;
    --white: #FFFFFF;
    --dark: #1F2937;
    --gray: #6B7280;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.9);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    direction: rtl;
    background: var(--white);
    color: var(--dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Terms and Conditions Page Styles */
.terms-conditions {
    padding: 120px 0 60px;
    background: var(--white);
    color: var(--dark);
    line-height: 1.8;
}

.terms-header {
    text-align: center;
    margin-bottom: 50px;
}

.terms-header h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    font-weight: 700;
}

.terms-header .last-updated {
    color: var(--gray);
    font-size: 1rem;
    font-weight: 500;
}

.terms-content {
    max-width: 900px;
    margin: 0 auto;
}

.terms-section {
    margin-bottom: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    border-right: 4px solid var(--primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.terms-section h2 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.terms-section h3 {
    color: var(--dark);
    font-size: 1.2rem;
    margin: 20px 0 10px;
    font-weight: 600;
}

.terms-section p {
    margin-bottom: 15px;
    color: var(--dark);
}

.terms-section ul {
    list-style: none;
    padding-right: 20px;
}

.terms-section ul li {
    margin-bottom: 10px;
    position: relative;
    padding-right: 20px;
}

.terms-section ul li:before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    right: 0;
}

.definitions-list {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.definitions-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}

.definitions-list li:last-child {
    border-bottom: none;
}

.intro-text {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--primary);
    margin-bottom: 20px;
}

.intro-text p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--dark);
}

.highlight-box {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(80, 200, 120, 0.1));
    border: 1px solid var(--primary);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.highlight-box strong {
    color: var(--primary);
    font-weight: 600;
}

.highlight-box ul {
    margin-top: 10px;
}

.back-to-home {
    text-align: center;
    margin-top: 50px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--white);
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    transition: transform 0.3s ease;
    font-weight: 600;
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}


/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .terms-conditions {
        padding: 100px 0 40px;
    }
    
    .terms-header h1 {
        font-size: 2rem;
    }
    
    .terms-section {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .terms-section h2 {
        font-size: 1.3rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .terms-header h1 {
        font-size: 1.8rem;
    }
    
    .terms-section {
        padding: 15px;
        border-right: 3px solid var(--primary);
    }
    
    .terms-section h2 {
        font-size: 1.2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}