/* Legal Pages Styling */
body {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    background-color: var(--bg-primary);
    min-height: 100vh;
    margin: 0;
    color: var(--text-primary);
    line-height: 1.8;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.legal-content {
    flex: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: 120px 30px 60px;
    width: 100%;
}

.legal-header {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-color, #e0e0e0);
}

.legal-header h1 {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--primary-color, #6C63FF), var(--secondary-color, #4CAF50));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.effective-date {
    color: var(--text-secondary, #666);
    font-size: 0.95em;
    font-weight: 500;
}

.legal-container {
    background: var(--card-bg, #fff);
    border-radius: 12px;
    padding: 50px;
    box-shadow: var(--shadow-md, 0 4px 6px rgba(0, 0, 0, 0.1));
}

.intro-section {
    background: var(--bg-secondary, #f8f9fa);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 40px;
    border-left: 4px solid var(--primary-color, #6C63FF);
}

.intro-section p {
    margin: 10px 0;
    font-size: 1.05em;
    color: var(--text-primary);
}

.legal-section {
    margin-bottom: 50px;
}

.legal-section h2 {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color, #6C63FF);
}

.legal-section h3 {
    font-size: 1.3em;
    font-weight: 600;
    margin: 25px 0 15px;
    color: var(--text-primary);
}

.legal-section p {
    margin: 15px 0;
    color: var(--text-secondary, #555);
    font-size: 1.05em;
}

.legal-section ul {
    margin: 20px 0;
    padding-left: 30px;
}

.legal-section ul li {
    margin: 12px 0;
    color: var(--text-secondary, #555);
    position: relative;
}

.legal-section ul li strong {
    color: var(--text-primary);
    font-weight: 600;
}

.legal-section a {
    color: var(--primary-color, #6C63FF);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.legal-section a:hover {
    color: var(--secondary-color, #4CAF50);
    text-decoration: underline;
}

.contact-section {
    background: var(--bg-secondary, #f8f9fa);
    padding: 30px;
    border-radius: 8px;
    border: 2px solid var(--border-color, #e0e0e0);
}

.contact-info {
    margin-top: 20px;
    padding: 20px;
    background: var(--card-bg, #fff);
    border-radius: 6px;
}

.contact-info p {
    margin: 10px 0;
    font-size: 1.05em;
}

/* Footer Legal Links */
.footer-legal {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9em;
}

.footer-legal a {
    color: var(--text-secondary, #888);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--primary-color, #6C63FF);
}

.footer-legal span {
    color: var(--text-secondary, #888);
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-content {
        padding: 100px 20px 40px;
    }

    .legal-header h1 {
        font-size: 2.2em;
    }

    .legal-container {
        padding: 30px 20px;
    }

    .legal-section h2 {
        font-size: 1.5em;
    }

    .legal-section h3 {
        font-size: 1.2em;
    }

    .footer-legal {
        flex-direction: column;
        gap: 5px;
    }

    .footer-legal span {
        display: none;
    }
}

/* Dark Mode Support */
[data-theme="dark"] .legal-container {
    background: var(--card-bg);
}

[data-theme="dark"] .intro-section {
    background: var(--bg-tertiary);
}

[data-theme="dark"] .contact-section {
    background: var(--bg-tertiary);
}

[data-theme="dark"] .contact-info {
    background: var(--bg-secondary);
}
