/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #fafafa;
    direction: rtl;
    text-align: right;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.header-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.last-updated {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Main content */
.content {
    padding: 3rem 2rem;
}

.policy-content {
    max-width: 100%;
}

/* Sections */
.policy-section {
    margin-bottom: 3rem;
}

.policy-section:last-child {
    margin-bottom: 2rem;
}

/* Typography */
h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

h3 {
    font-size: 1.25rem;
    font-weight: 500;
    color: #4a5568;
    margin: 1.5rem 0 0.75rem 0;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.7;
    color: #4a5568;
}

/* Lists */
ul {
    margin: 1rem 2rem 1rem 0;
}

li {
    margin-bottom: 0.5rem;
    color: #4a5568;
    line-height: 1.6;
}

li::marker {
    color: #667eea;
}

/* Contact info */
.contact-info {
    background-color: #f7fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    margin-top: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

/* Footer */
footer {
    background-color: #2d3748;
    color: white;
    padding: 2rem;
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        margin: 0;
        box-shadow: none;
    }
    
    header {
        padding: 2rem 1rem 1.5rem;
    }
    
    .header-content h1 {
        font-size: 2rem;
    }
    
    .content {
        padding: 2rem 1rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.125rem;
    }
    
    ul {
        margin-left: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1.5rem 1rem;
    }
    
    .header-content h1 {
        font-size: 1.75rem;
    }
    
    .content {
        padding: 1.5rem 1rem;
    }
    
    .contact-info {
        padding: 1rem;
    }
    
    footer {
        padding: 1.5rem 1rem;
    }
}

/* Print styles */
@media print {
    body {
        background-color: white;
        color: black;
    }
    
    .container {
        box-shadow: none;
        max-width: none;
    }
    
    header {
        background: none;
        color: black;
        border-bottom: 2px solid #333;
    }
    
    .footer-link {
        color: black;
    }
    
    .contact-info {
        background-color: #f5f5f5;
        border-left-color: #333;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for better accessibility */
a:focus,
button:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    body {
        background-color: white;
        color: black;
    }
    
    header {
        background: black;
        color: white;
    }
    
    h2, h3 {
        color: black;
    }
    
    p, li {
        color: black;
    }
}
