/* ===== Legal Pages Dark Professional Styling ===== */

/* Dark Theme Variables */
:root {
    /* Dark Theme Colors */
    --primary-color: #ffd700;        /* ذهبي للعناصر المميزة */
    --secondary-color: #ffb347;      /* ذهبي فاتح */
    --accent-color: #ffd700;         /* لون التمييز */
    --text-color: #ffffff;           /* نص أبيض */
    --text-light: #e0e0e0;           /* نص رمادي فاتح */
    --bg-color: #0a0a0a;             /* خلفية سوداء داكنة */
    --white: #1a1a1a;                /* أبيض داكن للبطاقات */
    --black: #000000;                 /* أسود خالص */
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    --gradient-secondary: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
    --gradient-gold: linear-gradient(45deg, #ffd700, #ffb347);
    
    /* Shadows */
    --shadow-light: 0 2px 10px rgba(0,0,0,0.3);
    --shadow-medium: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-heavy: 0 8px 40px rgba(0,0,0,0.5);
    
    /* Borders */
    --border-color: #333333;
    --border-radius: 10px;
    --border-radius-large: 20px;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* Body Dark Theme */
body {
    background: var(--bg-color);
    color: var(--text-color);
    font-family: 'Cairo', 'Amiri', Arial, sans-serif;
}

/* Breadcrumbs Enhancement */
.breadcrumbs {
    background: var(--gradient-primary);
    padding: 1rem 0;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-light);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumbs ol {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    color: var(--text-color);
    font-weight: 500;
}

.breadcrumbs li:not(:last-child)::after {
    content: "›";
    margin: 0 0.5rem;
    color: var(--accent-color);
    font-size: 1.2rem;
}

.breadcrumbs a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.breadcrumbs a:hover {
    color: var(--accent-color);
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-1px);
}

/* Section Headers Enhancement */
.legal-section-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.legal-section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
}

.legal-section-header .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Amiri', serif;
}

.legal-section-header .section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Content Sections */
.privacy-content,
.terms-content,
.refund-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.privacy-intro,
.terms-intro,
.refund-intro {
    background: var(--gradient-secondary);
    padding: 2rem;
    border-radius: var(--border-radius-large);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-medium);
    border-left: 5px solid var(--accent-color);
    border: 1px solid var(--border-color);
}

.privacy-intro h2,
.terms-intro h2,
.refund-intro h2 {
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
    font-family: 'Amiri', serif;
}

.privacy-intro p,
.terms-intro p,
.refund-intro p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin: 0;
}

/* Section Styling */
.privacy-section,
.terms-section,
.refund-section {
    background: var(--white);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
}

.privacy-section:hover,
.terms-section:hover,
.refund-section:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-color);
}

.privacy-section h3,
.terms-section h3,
.refund-section h3 {
    color: var(--accent-color);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Amiri', serif;
}

.privacy-section h3::before,
.terms-section h3::before,
.refund-section h3::before {
    content: "📋";
    font-size: 1.2rem;
}

.privacy-section ul,
.terms-section ul,
.refund-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.privacy-section li,
.terms-section li,
.refund-section li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-right: 2rem;
    transition: var(--transition);
    color: var(--text-light);
}

.privacy-section li:last-child,
.terms-section li:last-child,
.refund-section li:last-child {
    border-bottom: none;
}

.privacy-section li::before,
.terms-section li::before,
.refund-section li::before {
    content: "✓";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.privacy-section li:hover,
.terms-section li:hover,
.refund-section li:hover {
    background: var(--bg-color);
    padding-right: 2.5rem;
    border-radius: 8px;
    color: var(--text-color);
}

.privacy-section p,
.terms-section p,
.refund-section p {
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Special Notice */
.privacy-notice,
.terms-notice,
.refund-notice {
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
    border: 2px solid var(--accent-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
    box-shadow: var(--shadow-medium);
}

.privacy-notice::before,
.terms-notice::before,
.refund-notice::before {
    content: "⚠️";
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
}

.privacy-notice h3,
.terms-notice h3,
.refund-notice h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 600;
    font-family: 'Amiri', serif;
}

.privacy-notice p,
.terms-notice p,
.refund-notice p {
    color: var(--text-light);
    font-weight: 500;
    margin: 0;
}

/* Footer Information */
.privacy-footer,
.terms-footer,
.refund-footer {
    background: var(--gradient-primary);
    color: var(--text-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-top: 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
}

.privacy-footer p,
.terms-footer p,
.refund-footer p {
    margin: 0.5rem 0;
    font-weight: 500;
    color: var(--text-light);
}

/* Enhanced Lists */
.privacy-section ol,
.terms-section ol,
.refund-section ol {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
}

.privacy-section ol li,
.terms-section ol li,
.refund-section ol li {
    counter-increment: step-counter;
    position: relative;
    padding: 1rem 0 1rem 3rem;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    color: var(--text-light);
}

.privacy-section ol li::before,
.terms-section ol li::before,
.refund-section ol li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gradient-gold);
    color: var(--black);
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.privacy-section ol li:hover,
.terms-section ol li:hover,
.refund-section ol li:hover {
    background: var(--bg-color);
    border-radius: 8px;
    padding-right: 1rem;
    color: var(--text-color);
}

/* Strong Text Styling */
.privacy-section strong,
.terms-section strong,
.refund-section strong {
    color: var(--accent-color);
    font-weight: 600;
}

/* Links Styling */
.privacy-section a,
.terms-section a,
.refund-section a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.privacy-section a:hover,
.terms-section a:hover,
.refund-section a:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-section-header .section-title {
        font-size: 2rem;
    }
    
    .legal-section-header .section-subtitle {
        font-size: 1rem;
    }
    
    .privacy-content,
    .terms-content,
    .refund-content {
        padding: 0 0.5rem;
    }
    
    .privacy-section,
    .terms-section,
    .refund-section {
        padding: 1.5rem;
    }
    
    .privacy-intro,
    .terms-intro,
    .refund-intro {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .breadcrumbs,
    .floating-whatsapp,
    .scroll-top-btn {
        display: none !important;
    }
    
    .privacy-section,
    .terms-section,
    .refund-section {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Accessibility Enhancements */
.privacy-section:focus-within,
.terms-section:focus-within,
.refund-section:focus-within {
    outline: 2px solid #8B4513;
    outline-offset: 2px;
}

/* Animation for sections */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.privacy-section,
.terms-section,
.refund-section {
    animation: fadeInUp 0.6s ease-out;
}

/* Enhanced Typography */
.privacy-content h2,
.terms-content h2,
.refund-content h2 {
    font-family: 'Amiri', serif;
    font-weight: 700;
}

.privacy-content h3,
.terms-content h3,
.refund-content h3 {
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
}

/* Dark Theme Applied Successfully */

/* Additional Dark Theme Enhancements */
.container {
    background: transparent;
}

/* Header Dark Theme Override */
.header {
    background: var(--bg-color) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

/* Navigation Dark Theme */
.nav-link {
    color: var(--text-light) !important;
}

.nav-link:hover {
    color: var(--accent-color) !important;
    background: var(--white) !important;
}

/* WhatsApp Button Dark Theme */
.whatsapp-btn {
    background: #25D366 !important;
    color: white !important;
}

.whatsapp-btn:hover {
    background: #128C7E !important;
    transform: scale(1.05) !important;
}

/* Footer Dark Theme */
.footer {
    background: var(--bg-color) !important;
    color: var(--text-color) !important;
    border-top: 1px solid var(--border-color) !important;
}

.footer-section h3,
.footer-section h4 {
    color: var(--accent-color) !important;
}

.footer-links a {
    color: var(--text-light) !important;
}

.footer-links a:hover {
    color: var(--accent-color) !important;
}

/* Floating WhatsApp Button */
.floating-whatsapp a {
    background: #25D366 !important;
    color: white !important;
    box-shadow: var(--shadow-medium) !important;
}

.floating-whatsapp a:hover {
    background: #128C7E !important;
    transform: scale(1.05) !important;
}

/* Scroll to Top Button */
.scroll-top-btn {
    background: var(--gradient-gold) !important;
    color: var(--black) !important;
}

.scroll-top-btn:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5) !important;
}
