/* ===== LEGAL PAGES (Privacy & Terms) ===== */

/* Hero */
.legal-hero-section {
    background: linear-gradient(135deg, #050508 0%, #0e0e16 50%, #050508 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    padding: 160px 0 80px;
    position: relative;
    text-align: center;
}

.legal-hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 50% 60%,
        rgba(65, 105, 225, 0.12) 0%,
        transparent 60%
    );
    pointer-events: none;
}

.legal-hero-content {
    position: relative;
    z-index: 1;
}

.legal-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #5b7fff;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding: 6px 16px;
    background: rgba(91, 127, 255, 0.1);
    border: 1px solid rgba(91, 127, 255, 0.25);
    border-radius: 50px;
}

.legal-hero-content h1 {
    font-size: 56px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.15;
}

.legal-hero-content p {
    font-size: 14px;
    color: var(--text);
    margin: 0;
}

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

.legal-content-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 50% 30%,
        rgba(65, 105, 225, 0.04) 0%,
        transparent 60%
    );
    pointer-events: none;
}

/* Legal body */
.legal-body {
    position: relative;
    z-index: 1;
}

/* Individual section block */
.legal-section {
    padding: 40px 0;
    border-bottom: 1px solid rgba(65, 105, 225, 0.1);
}

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

.legal-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #4169e1 0%, #5b7fff 100%);
    color: white;
    font-size: 13px;
    font-weight: 700;
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(65, 105, 225, 0.35);
}

.legal-section p {
    font-size: 15px;
    color: #475569;
    line-height: 1.9;
    margin-bottom: 18px;
}

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

/* CTA block at the bottom */
.legal-cta {
    margin-top: 60px;
    padding: 40px 50px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%);
    border: 1px solid rgba(65, 105, 225, 0.15);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.legal-cta p {
    font-size: 17px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

/* Arabic */
[lang="ar"] .legal-hero-content h1 {
    font-size: 48px;
}

[lang="ar"] .legal-section h2 {
    font-size: 20px;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

[lang="ar"] .legal-section p {
    font-size: 14px;
    line-height: 2;
}

[lang="ar"] .legal-cta {
    flex-direction: row-reverse;
}

/* Responsive */
@media (max-width: 992px) {
    .legal-hero-content h1 {
        font-size: 44px;
    }
}

@media (max-width: 768px) {
    .legal-hero-section {
        padding: 130px 0 60px;
    }

    .legal-hero-content h1 {
        font-size: 36px;
    }

    .legal-content-section {
        padding: 60px 0 80px;
    }

    .legal-section h2 {
        font-size: 18px;
        gap: 12px;
    }

    .section-num {
        min-width: 36px;
        height: 36px;
        font-size: 12px;
        border-radius: 8px;
    }

    .legal-cta {
        flex-direction: column;
        text-align: center;
        padding: 30px 25px;
        gap: 20px;
    }

    [lang="ar"] .legal-hero-content h1 {
        font-size: 32px;
    }
}
