/* --------------------------------------------------
   Legal Pages (Privacy, Terms, Contact)
   تنسيقات الصفحات القانونية
-------------------------------------------------- */

.legal-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f4ba2 0%, #1e293b 100%);
    color: #fff;
    font-family: 'Cairo', sans-serif;
    padding: 30px 20px;
    box-sizing: border-box;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Navigation */
.legal-nav {
    margin-bottom: 30px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    transform: translateX(4px);
}

/* Header */
.legal-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.legal-logo {
    font-size: 60px;
    margin-bottom: 15px;
    display: inline-block;
    animation: float 4s ease-in-out infinite;
}

.legal-header h1 {
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 10px;
    letter-spacing: -0.5px;
}

.legal-date,
.legal-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.legal-subtitle {
    color: rgba(255, 255, 255, 0.75);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Content */
.legal-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legal-content section {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 28px 24px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.3s ease;
}

.legal-content section:hover {
    background: rgba(255, 255, 255, 0.09);
}

.legal-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 14px;
    color: #fbbf24;
    display: flex;
    align-items: center;
    gap: 8px;
}

.legal-content p {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 10px;
}

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

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

.legal-content ul li {
    position: relative;
    padding-right: 18px;
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
}

.legal-content ul li::before {
    content: "◆";
    position: absolute;
    right: -4px;
    color: #fbbf24;
    font-size: 10px;
    top: 6px;
}

.legal-content ul li:last-child {
    margin-bottom: 0;
}

/* Contact Box */
.contact-box {
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    padding: 18px 20px;
    margin-top: 12px;
}

.contact-box p {
    margin: 0;
    font-weight: 600;
    font-size: 16px;
}

.contact-box a {
    color: #fbbf24;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.contact-box a:hover {
    color: #fcd34d;
    text-decoration: underline;
}

/* Support Card */
.support-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 24px;
    margin-top: 16px;
    transition: all 0.3s ease;
}

.support-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.support-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.support-info h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.support-email {
    color: #fbbf24;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    display: block;
    margin-bottom: 6px;
    transition: color 0.2s;
    word-break: break-all;
}

.support-email:hover {
    color: #fcd34d;
    text-decoration: underline;
}

.support-note {
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.5) !important;
    margin: 0 !important;
}

/* Help Grid */
.help-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.help-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.help-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.help-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
}

.help-item h3 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.help-item p {
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.65) !important;
    margin: 0 !important;
    line-height: 1.6 !important;
}

/* FAQ */
.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 12px;
    transition: background 0.2s;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.faq-item h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: #fbbf24;
}

.faq-item p {
    margin: 0 !important;
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Footer */
.legal-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.legal-footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.legal-footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s;
}

.legal-footer-links a:hover {
    color: #fbbf24;
}

.legal-footer-links .separator {
    color: rgba(255, 255, 255, 0.25);
    font-size: 14px;
}

.legal-footer p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

/* --------------------------------------------------
   Responsive
-------------------------------------------------- */
@media (max-width: 600px) {
    .legal-page {
        padding: 20px 14px;
    }

    .legal-header h1 {
        font-size: 28px;
    }

    .legal-logo {
        font-size: 48px;
    }

    .legal-content section {
        padding: 20px 16px;
    }

    .legal-content h2 {
        font-size: 19px;
    }

    .legal-content p,
    .legal-content ul li {
        font-size: 14px;
    }

    .help-grid {
        grid-template-columns: 1fr;
    }

    .support-card {
        flex-direction: column;
        text-align: center;
    }

    .support-email {
        font-size: 17px;
    }
}