﻿bo:root {
    --quantum: #01b0a9;
    --quantum-dark: #018b86;
    --dark: #0f172a;
    --muted: #64748b;
    --soft: #f8fafc;
    --border: #e5e7eb;
}

body {
    margin: 0;
    background: radial-gradient(circle at top right, rgba(1, 176, 169, 0.12), transparent 34%), linear-gradient(180deg, #f8fafc 0%, #eef7f6 100%);
    color: #334155;
    line-height: 1.9;
}

html[dir="rtl"] body {
    font-family: "Tajawal", "Cairo", "Segoe UI", sans-serif;
}

html[dir="ltr"] body {
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.legal-page {
    min-height: 100vh;
    padding: 40px 16px;
}

.legal-container {
    width: min(1040px, 100%);
    margin: 0 auto;
}

.legal-card {
    overflow: hidden;
    border: 1px solid rgba(1, 176, 169, 0.12);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
}

.legal-hero {
    position: relative;
    padding: 42px 42px 36px;
    background: linear-gradient(135deg, rgba(1, 176, 169, 0.96), rgba(1, 139, 134, 0.96)), url("../images/share-image.jpg") center/cover;
    color: #fff;
}

    .legal-hero::after {
        content: "";
        position: absolute;
        inset-inline-end: -80px;
        top: -80px;
        width: 220px;
        height: 220px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.12);
    }

.legal-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    font-weight: 800;
}

    .legal-logo img {
        width: 46px;
        height: 46px;
        object-fit: contain;
        border-radius: 12px;
        background: #fff;
        padding: 6px;
    }

.legal-hero h1 {
    position: relative;
    z-index: 2;
    margin: 0 0 12px;
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 900;
}

.legal-hero p {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0;
    opacity: 0.96;
    font-size: 1.05rem;
}

.legal-body {
    padding: 42px;
}

.legal-section {
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}

    .legal-section:first-child {
        padding-top: 0;
    }

    .legal-section:last-child {
        border-bottom: 0;
    }

    .legal-section h2 {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0 0 14px;
        color: var(--dark);
        font-size: 1.25rem;
        font-weight: 900;
    }

        .legal-section h2 span {
            display: inline-grid;
            place-items: center;
            width: 34px;
            height: 34px;
            min-width: 34px;
            border-radius: 12px;
            background: rgba(1, 176, 169, 0.11);
            color: var(--quantum-dark);
            font-size: 0.95rem;
        }

    .legal-section p {
        margin: 0 0 12px;
        color: #475569;
    }

    .legal-section ul {
        margin: 0;
        padding-inline-start: 22px;
    }

    .legal-section li {
        margin-bottom: 8px;
        color: #475569;
    }

    .legal-section strong {
        color: #1e293b;
    }

.legal-note {
    margin-top: 28px;
    padding: 18px 20px;
    border-radius: 18px;
    background: #f1fbfa;
    border: 1px solid rgba(1, 176, 169, 0.18);
    color: #0f766e;
    font-weight: 700;
}

.legal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.92rem;
}

    .legal-footer a,
    .legal-section a {
        color: var(--quantum-dark);
        font-weight: 700;
        text-decoration: none;
    }

        .legal-footer a:hover,
        .legal-section a:hover {
            text-decoration: underline;
        }

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    background: #ecfeff;
    color: var(--quantum-dark);
    text-decoration: none;
    font-weight: 800;
}

@media (max-width: 768px) {
    .legal-page {
        padding: 18px 10px;
    }

    .legal-hero,
    .legal-body {
        padding: 28px 22px;
    }

    .legal-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}
