/* =========================================================
   Legal pages — Privacy Policy + Terms & Conditions
   Alakaber Construction Industries
   Scoped with ak-pp- ; نفس ألوان صفحة FAQ / صفحات الموقع
========================================================= */

.ak-pp-page {
    --pp-primary: #564895;
    --pp-primary-dark: #3c326b;
    --pp-deep: #231e43;
    --pp-deep-2: #18152e;
    --pp-lilac: #c9bff5;
    --pp-soft: #f2eff9;
    --pp-soft-2: #faf9fc;
    --pp-border: #e8e3ef;
    --pp-ink: #211e2b;
    --pp-muted: #6d6877;
    --pp-header-offset: 104px;
    color: var(--pp-ink);
    background: #fff;
    text-align: start;
    overflow-x: clip;
}

    .ak-pp-page h1, .ak-pp-page h2, .ak-pp-page p {
        margin-top: 0;
    }

    .ak-pp-page a {
        text-decoration: none;
    }

/*
 * styles.css يضع للعربي: html[lang="ar"] body * { unicode-bidi: plaintext; }
 * فيأخذ كل سطر اتجاهه من أول حرف فيه (النص الذي يبدأ بـ Google أو HTTPS يذهب لليسار).
 * هنا نرجع لاتجاه الصفحة الطبيعي.
 */
html[lang="ar"] .ak-pp-page,
html[lang="ar"] .ak-pp-page * {
    unicode-bidi: normal;
}

    html[lang="ar"] .ak-pp-page [dir] {
        unicode-bidi: isolate;
    }

[dir="rtl"] .ak-pp-flip {
    display: inline-block;
    transform: scaleX(-1);
}

/* ================= Hero ================= */
.ak-pp-hero {
    position: relative;
    padding-block: clamp(30px, 4vw, 48px) clamp(34px, 4.5vw, 54px);
    color: #fff;
    background: radial-gradient(circle at 78% 18%, rgba(125, 105, 199, .3), transparent 32%), linear-gradient(135deg, var(--pp-deep-2), var(--pp-deep) 55%, #30285a);
    overflow: hidden;
}

.ak-pp-hero-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.7) 60%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.7) 60%, transparent 100%);
}

.ak-pp-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    margin-bottom: 20px;
    font-size: .86rem;
    color: rgba(255, 255, 255, .7);
}

    .ak-pp-breadcrumb a {
        color: rgba(255, 255, 255, .8);
    }

        .ak-pp-breadcrumb a:hover {
            color: #fff;
        }

    .ak-pp-breadcrumb [aria-current] {
        color: #fff;
        font-weight: 600;
    }

.ak-pp-eyebrow {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    color: var(--pp-lilac);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .06em;
}

[dir="rtl"] .ak-pp-eyebrow {
    letter-spacing: 0;
}

.ak-pp-hero h1 {
    margin-bottom: 12px;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 850;
    line-height: 1.2;
}

.ak-pp-hero-lead {
    max-width: 680px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, .78);
    font-size: clamp(.98rem, 1.3vw, 1.08rem);
    line-height: 1.9;
}

.ak-pp-updated {
    display: flex;
    width: fit-content;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    font-size: .86rem;
    color: rgba(255, 255, 255, .85);
}

    .ak-pp-updated time {
        color: #fff;
        font-weight: 700;
    }

/* صف "آخر تحديث" + رابط الصفحة القانونية المرتبطة (الشروط ↔ الخصوصية) */
.ak-pp-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.ak-pp-related {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--pp-lilac);
    color: var(--pp-deep);
    font-size: .86rem;
    font-weight: 700;
    transition: background-color .2s;
}

    .ak-pp-related:hover {
        background: #fff;
        color: var(--pp-primary);
    }

/* ================= Layout ================= */
.ak-pp-body {
    padding-block: clamp(34px, 5vw, 64px) clamp(44px, 6vw, 80px);
}

.ak-pp-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

@media (min-width: 992px) {
    .ak-pp-layout {
        grid-template-columns: 280px minmax(0, 1fr);
        gap: clamp(36px, 4vw, 64px);
    }
}

@media (min-width: 1200px) {
    .ak-pp-layout {
        grid-template-columns: 300px minmax(0, 1fr);
    }
}

/* ================= TOC (desktop) ================= */
.ak-pp-aside {
    display: none;
}

@media (min-width: 992px) {
    .ak-pp-aside {
        display: block;
        position: sticky;
        top: var(--pp-header-offset);
        max-height: calc(100vh - var(--pp-header-offset) - 20px);
        overflow-y: auto;
        scrollbar-width: thin;
    }
}

.ak-pp-toc {
    padding: 18px 14px;
    border: 1px solid var(--pp-border);
    border-radius: 16px;
    background: var(--pp-soft-2);
}

.ak-pp-toc-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 6px 10px;
    font-size: .92rem;
    font-weight: 800;
}

    .ak-pp-toc-title i {
        color: var(--pp-primary);
        font-size: 1.1rem;
    }

.ak-pp-toc ol,
.ak-pp-toc-mobile ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .ak-pp-toc a,
    .ak-pp-toc-mobile a {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 8px 10px;
        border-radius: 10px;
        color: var(--pp-muted);
        font-size: .88rem;
        line-height: 1.55;
        transition: background-color .2s, color .2s;
    }

        .ak-pp-toc a:hover,
        .ak-pp-toc-mobile a:hover {
            background: #fff;
            color: var(--pp-primary);
        }

        .ak-pp-toc a.is-active {
            background: #fff;
            color: var(--pp-primary);
            font-weight: 700;
            box-shadow: 0 4px 12px rgba(43, 35, 74, .06);
        }

.ak-pp-toc-num {
    flex: 0 0 auto;
    min-width: 22px;
    color: var(--pp-primary);
    font-weight: 700;
    font-size: .78rem;
    line-height: 1.95;
    direction: ltr;
}

/* ================= TOC (tablet / mobile) ================= */
.ak-pp-toc-mobile {
    margin-bottom: 28px;
    border: 1px solid var(--pp-border);
    border-radius: 14px;
    background: var(--pp-soft-2);
}

@media (min-width: 992px) {
    .ak-pp-toc-mobile {
        display: none;
    }
}

.ak-pp-toc-mobile summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    font-weight: 800;
    font-size: .95rem;
    cursor: pointer;
    list-style: none;
}

    .ak-pp-toc-mobile summary::-webkit-details-marker {
        display: none;
    }

    .ak-pp-toc-mobile summary > span {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .ak-pp-toc-mobile summary i {
        color: var(--pp-primary);
        font-size: 1.1rem;
    }

.ak-pp-chevron {
    transition: transform .25s;
}

.ak-pp-toc-mobile[open] .ak-pp-chevron {
    transform: rotate(180deg);
}

.ak-pp-toc-mobile ol {
    padding: 0 8px 10px;
    border-top: 1px solid var(--pp-border);
    padding-top: 8px;
}

/* ================= Sections ================= */
.ak-pp-article {
    min-width: 0;
    max-width: 860px;
}

.ak-pp-section {
    padding-block: 28px;
    border-top: 1px solid var(--pp-border);
    scroll-margin-top: var(--pp-header-offset);
}

    .ak-pp-section:first-of-type {
        padding-top: 0;
        border-top: 0;
    }

.ak-pp-section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.ak-pp-section-num {
    flex: 0 0 auto;
    color: var(--pp-primary);
    font-size: .85rem;
    font-weight: 800;
    direction: ltr;
}

.ak-pp-section-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--pp-soft);
    color: var(--pp-primary);
    font-size: 1.15rem;
}

.ak-pp-section-head h2 {
    margin: 0;
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    font-weight: 800;
    line-height: 1.4;
}

/* محتوى المحرر (Quill 1.x): فقرات، قوائم، روابط، محاذاة */
.ak-pp-content {
    color: #45414f;
    font-size: 1rem;
    line-height: 1.95;
    overflow-wrap: anywhere;
}

[dir="rtl"] .ak-pp-content {
    line-height: 2.05;
}

    .ak-pp-content p {
        margin: 0 0 12px;
    }

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

    .ak-pp-content ul,
    .ak-pp-content ol {
        margin: 4px 0 14px;
        padding-inline-start: 1.4rem;
        padding-inline-end: 0;
    }

    .ak-pp-content ul {
        list-style: none;
    }

        .ak-pp-content ul > li {
            position: relative;
        }

            .ak-pp-content ul > li::before {
                content: "";
                position: absolute;
                top: .85em;
                inset-inline-start: -1.05rem;
                width: 6px;
                height: 6px;
                border-radius: 50%;
                background: var(--pp-primary);
            }

    .ak-pp-content ol {
        list-style: decimal;
    }

        .ak-pp-content ol > li::marker {
            color: var(--pp-primary);
            font-weight: 700;
        }

    .ak-pp-content li {
        margin-bottom: 4px;
    }

    .ak-pp-content strong {
        color: var(--pp-ink);
        font-weight: 700;
    }

    .ak-pp-content a {
        color: var(--pp-primary);
        font-weight: 600;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

    .ak-pp-content .ql-align-center {
        text-align: center;
    }

    .ak-pp-content .ql-align-right {
        text-align: right;
    }

    .ak-pp-content .ql-align-left {
        text-align: left;
    }

    .ak-pp-content .ql-indent-1 {
        padding-inline-start: 2em;
    }

    .ak-pp-content .ql-indent-2 {
        padding-inline-start: 4em;
    }

/* ================= Contact card ================= */
.ak-pp-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px 22px;
    margin-top: 16px;
    padding: 24px;
    border: 1px solid var(--pp-border);
    border-radius: 18px;
    background: var(--pp-soft-2);
}

.ak-pp-contact-icon {
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--pp-primary);
    color: #fff;
    font-size: 1.5rem;
}

.ak-pp-contact-text {
    flex: 1 1 300px;
    min-width: 0;
}

    .ak-pp-contact-text h2 {
        margin-bottom: 4px;
        font-size: 1.15rem;
        font-weight: 800;
    }

    .ak-pp-contact-text p {
        margin: 0;
        color: var(--pp-muted);
        font-size: .92rem;
        line-height: 1.8;
    }

.ak-pp-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ak-pp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 9px 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: .92rem;
    font-weight: 700;
    white-space: nowrap;
    transition: background-color .2s, color .2s, border-color .2s;
}

.ak-pp-btn-primary {
    background: var(--pp-primary);
    color: #fff;
}

    .ak-pp-btn-primary:hover {
        background: var(--pp-primary-dark);
        color: #fff;
    }

.ak-pp-btn-outline {
    border-color: var(--pp-primary);
    background: #fff;
    color: var(--pp-primary);
}

    .ak-pp-btn-outline:hover {
        background: var(--pp-primary);
        color: #fff;
    }

@media (max-width: 575.98px) {
    .ak-pp-content {
        font-size: .95rem;
    }

    .ak-pp-section {
        padding-block: 22px;
    }

    .ak-pp-contact {
        padding: 18px;
    }

    .ak-pp-contact-icon {
        display: none;
    }

    .ak-pp-contact-actions,
    .ak-pp-contact-actions .ak-pp-btn {
        width: 100%;
    }
}
