/* ========================================
   MEME Legal Pages - Elegant Design
   ألوان هادية واحترافية (بدون بنفسجي)
   ======================================== */

.legal-page {
    padding: 60px 0 80px;
    background: #fafbfc;
    min-height: calc(100vh - 80px);
}

/* ========================================
   Hero Section
   ======================================== */

.legal-hero {
    text-align: center;
    padding: 60px 0 50px;
    position: relative;
    margin-bottom: 50px;
}

.legal-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, #B8941F, #d4af37);
    border-radius: 3px;
}

.legal-hero h1 {
    font-size: clamp(32px, 5vw, 44px);
    font-weight: 900;
    color: #111827;
    margin-bottom: 16px;
}

.legal-hero p {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

/* ========================================
   Legal Content
   ======================================== */

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    padding: 50px 60px;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
}

/* ========================================
   Sections
   ======================================== */

.legal-section {
    margin-bottom: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid #f3f4f6;
}

.legal-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.legal-section h2 {
    font-size: 26px;
    font-weight: 800;
    color: #2F5430;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-section h2::before {
    content: '';
    width: 6px;
    height: 28px;
    background: linear-gradient(180deg, #B8941F, #d4af37);
    border-radius: 3px;
    flex-shrink: 0;
}

.legal-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: #374151;
    margin-top: 28px;
    margin-bottom: 16px;
    padding-right: 18px;
    position: relative;
}

.legal-section h3::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: #8B7355;
    border-radius: 2px;
}

.legal-section p {
    font-size: 15px;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 16px;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

/* ========================================
   Lists - محسّن بدون تداخل
   ======================================== */

.legal-section ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.legal-section ul li {
    font-size: 15px;
    line-height: 1.8;
    color: #4b5563;
    padding: 10px 0 10px 18px;
    position: relative;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 6px;
}

.legal-section ul li:hover {
    background: #fafbfc;
    padding-right: 12px;
    padding-left: 22px;
}

.legal-section ul li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 18px;
    width: 6px;
    height: 6px;
    background: #059669;
    border-radius: 50%;
}

.legal-section ul li strong {
    color: #111827;
    font-weight: 700;
}

/* ========================================
   Links
   ======================================== */

.legal-section a {
    color: #2F5430;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(47, 84, 48, 0.3);
    transition: all 0.3s ease;
}

.legal-section a:hover {
    color: #1e3820;
    border-bottom-color: #1e3820;
}

/* ========================================
   Info Box
   ======================================== */

.info-box {
    background: linear-gradient(135deg, rgba(184, 148, 31, 0.08), rgba(212, 175, 55, 0.08));
    border: 1px solid rgba(184, 148, 31, 0.2);
    border-right: 4px solid #B8941F;
    border-radius: 10px;
    padding: 20px 24px;
    margin: 24px 0;
}

.info-box p {
    margin: 0;
    color: #6B5D4F;
}

.info-box strong {
    color: #B8941F;
}

/* ========================================
   Warning Box
   ======================================== */

.warning-box {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(220, 38, 38, 0.08));
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-right: 4px solid #ef4444;
    border-radius: 10px;
    padding: 20px 24px;
    margin: 24px 0;
}

.warning-box p {
    margin: 0;
    color: #991b1b;
}

/* ========================================
   Success Box
   ======================================== */

.success-box {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.08), rgba(4, 120, 87, 0.08));
    border: 1px solid rgba(5, 150, 105, 0.2);
    border-right: 4px solid #059669;
    border-radius: 10px;
    padding: 20px 24px;
    margin: 24px 0;
}

.success-box p {
    margin: 0;
    color: #065f46;
}

/* ========================================
   Table of Contents (اختياري)
   ======================================== */

.toc {
    background: #fafbfc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 28px;
    margin-bottom: 40px;
}

.toc h3 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
}

.toc h3::before {
    display: none;
}

.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc ul li {
    padding: 10px 0;
}

.toc ul li::before {
    display: none;
}

.toc ul li a {
    color: #2F5430;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    border: none;
    transition: all 0.3s ease;
}

.toc ul li a:hover {
    color: #1e3820;
    transform: translateX(-4px);
}

.toc ul li a::before {
    content: '→';
    font-weight: 700;
    color: #B8941F;
}

/* ========================================
   Contact Section
   ======================================== */

.contact-section {
    background: linear-gradient(135deg, #2F5430, #3d6b3c);
    color: #ffffff;
    padding: 40px;
    border-radius: 14px;
    text-align: center;
    margin-top: 50px;
}

.contact-section h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
}

.contact-section h3::before {
    display: none;
}

.contact-section p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
}

.contact-section .btn {
    background: #ffffff;
    color: #2F5430;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.contact-section .btn:hover {
    background: #fafbfc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 992px) {
    .legal-content {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .legal-page {
        padding: 40px 0 60px;
    }
    
    .legal-hero {
        padding: 40px 0 30px;
    }
    
    .legal-content {
        padding: 32px 28px;
    }
    
    .legal-section {
        margin-bottom: 36px;
        padding-bottom: 32px;
    }
    
    .legal-section h2 {
        font-size: 22px;
    }
    
    .legal-section h3 {
        font-size: 18px;
    }
    
    .legal-section ul li {
        padding-left: 16px;
    }
}

@media (max-width: 480px) {
    .legal-hero h1 {
        font-size: 28px;
    }
    
    .legal-content {
        padding: 24px 20px;
    }
    
    .legal-section h2 {
        font-size: 20px;
    }
    
    .legal-section ul li {
        padding-left: 14px;
        font-size: 14px;
    }
    
    .contact-section {
        padding: 32px 24px;
    }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    .legal-page {
        background: white;
        padding: 0;
    }
    
    .legal-hero::before {
        display: none;
    }
    
    .legal-content {
        box-shadow: none;
        border: none;
        padding: 0;
    }
    
    .contact-section {
        display: none;
    }
    
    .legal-section ul li:hover {
        background: none;
    }
}
