/* ===========================================
   Legal Pages CSS - Privacy Policy & Terms
   =========================================== */

/* Legal Hero Section */
.legal-hero {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: var(--white);
    text-align: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin-bottom: 25px;
    transition: var(--transition);
    text-decoration: none;
}

.back-link:hover {
    color: var(--white);
    transform: translateX(-5px);
}

[dir="ltr"] .back-link:hover {
    transform: translateX(5px);
}

.legal-hero h1 {
    font-size: 2.8rem;
    color: var(--white);
    margin-bottom: 15px;
    font-weight: 800;
}

.last-updated {
    font-size: 0.95rem;
    opacity: 0.85;
}

/* Legal Content Section */
.legal-content {
    padding: 80px 0;
    background: var(--white);
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
}

.content-wrapper .section {
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.content-wrapper .section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.content-wrapper h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.content-wrapper h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 600;
}

.content-wrapper p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-color);
    margin-bottom: 15px;
}

.content-wrapper ul {
    margin: 15px 0 15px 30px;
    padding: 0;
}

[dir="rtl"] .content-wrapper ul {
    margin: 15px 30px 15px 0;
}

.content-wrapper ul li {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-color);
    margin-bottom: 10px;
    position: relative;
}

.content-wrapper ul li strong {
    color: var(--dark-color);
    font-weight: 600;
}

.content-wrapper a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: var(--transition);
}

.content-wrapper a:hover {
    color: var(--primary-dark);
}

/* Note/Warning Boxes */
.note {
    background: rgba(245, 158, 11, 0.1);
    border-right: 4px solid var(--accent-color);
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: var(--radius-sm);
}

[dir="ltr"] .note {
    border-right: none;
    border-left: 4px solid var(--accent-color);
}

.note strong {
    color: var(--accent-color);
}

/* Contact Info Box */
.contact-info {
    background: var(--light-bg);
    padding: 25px;
    border-radius: var(--radius-md);
    margin-top: 20px;
}

.contact-info p {
    margin-bottom: 10px;
}

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

.contact-info strong {
    color: var(--dark-color);
    font-weight: 600;
}

/* Acceptance Note */
.acceptance-note {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    border: 2px solid var(--primary-light);
    padding: 25px;
    border-radius: var(--radius-md);
    margin-top: 40px;
    text-align: center;
}

.acceptance-note p {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin: 0;
}

/* Table of Contents (Optional Enhancement) */
.toc {
    background: var(--light-bg);
    padding: 25px;
    border-radius: var(--radius-md);
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
}

.toc h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

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

[dir="rtl"] .toc ul {
    margin: 0;
}

.toc ul li {
    margin-bottom: 8px;
}

.toc ul li a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.toc ul li a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-hero {
        padding: 120px 0 50px;
    }
    
    .legal-hero h1 {
        font-size: 2rem;
    }
    
    .legal-content {
        padding: 60px 0;
    }
    
    .content-wrapper h2 {
        font-size: 1.5rem;
    }
    
    .content-wrapper h3 {
        font-size: 1.15rem;
    }
    
    .content-wrapper p,
    .content-wrapper ul li {
        font-size: 1rem;
    }
    
    .content-wrapper .section {
        margin-bottom: 35px;
        padding-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .legal-hero h1 {
        font-size: 1.6rem;
    }
    
    .content-wrapper h2 {
        font-size: 1.3rem;
    }
    
    .content-wrapper ul {
        margin-right: 20px;
        margin-left: 20px;
    }
    
    .contact-info,
    .acceptance-note {
        padding: 20px;
    }
}

/* Print Styles for Legal Documents */
@media print {
    .top-header,
    .back-link,
    .main-footer {
        display: none;
    }
    
    .legal-hero {
        background: var(--white) !important;
        color: var(--dark-color) !important;
        padding: 40px 0 20px;
    }
    
    .legal-hero h1 {
        color: var(--dark-color) !important;
    }
    
    .content-wrapper .section {
        page-break-inside: avoid;
    }
    
    .content-wrapper h2,
    .content-wrapper h3 {
        page-break-after: avoid;
    }
}
