/* ============================================================================
   Privacy Page — AMI Global Theme Bridge
   Loaded after privacy-professional.css
   ========================================================================== */

body.privacy-page {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif !important;
    background:
        radial-gradient(ellipse 70% 45% at 0% 0%, rgba(var(--ami-brand-rgb), 0.10), transparent 55%),
        radial-gradient(ellipse 50% 35% at 100% 8%, rgba(var(--ami-accent-rgb), 0.08), transparent 50%),
        var(--ami-canvas) !important;
    color: var(--ami-text);
}

html[dir="rtl"] body.privacy-page {
    font-family: 'Cairo', 'Plus Jakarta Sans', system-ui, sans-serif !important;
}

[data-bs-theme="dark"] body.privacy-page,
body.dark-mode.privacy-page,
body.s-dark.privacy-page {
    background:
        radial-gradient(ellipse 80% 50% at 8% -8%, rgba(var(--ami-brand-rgb), 0.26), transparent 55%),
        radial-gradient(ellipse 55% 40% at 95% 12%, rgba(var(--ami-accent-rgb), 0.14), transparent 50%),
        linear-gradient(160deg, var(--ami-brand-950) 0%, var(--ami-brand-900) 45%, var(--ami-brand-800) 100%) !important;
}

body.privacy-page .privacy-orb-1 { background: var(--ami-brand-500) !important; }
body.privacy-page .privacy-orb-2 { background: var(--ami-accent) !important; }

body.privacy-page .privacy-grid {
    background-image:
        linear-gradient(rgba(var(--ami-brand-rgb), 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--ami-brand-rgb), 0.06) 1px, transparent 1px) !important;
}

body.privacy-page .privacy-header {
    background: color-mix(in srgb, var(--ami-surface) 82%, transparent) !important;
    border-bottom-color: var(--ami-border) !important;
}

body.privacy-page .privacy-header-cta,
body.privacy-page .privacy-btn-primary,
body.privacy-page .privacy-lang-labels {
    background: var(--ami-grad-brand) !important;
    box-shadow: var(--ami-sh-brand);
}

body.privacy-page .privacy-hero-badge {
    background: rgba(var(--ami-brand-rgb), 0.14) !important;
    border-color: rgba(var(--ami-brand-rgb), 0.28) !important;
    color: var(--ami-brand-700) !important;
}

[data-bs-theme="dark"] body.privacy-page .privacy-hero-badge {
    color: var(--ami-brand-300) !important;
}

body.privacy-page .privacy-hero-title-ar {
    color: var(--ami-brand-600) !important;
}

[data-bs-theme="dark"] body.privacy-page .privacy-hero-title-ar {
    color: var(--ami-brand-300) !important;
}

body.privacy-page .privacy-doc {
    background: color-mix(in srgb, var(--ami-surface) 94%, transparent) !important;
    border-color: var(--ami-border) !important;
    box-shadow: var(--ami-sh-lg) !important;
}

body.privacy-page .privacy-section {
    border-top-color: var(--ami-border) !important;
}

body.privacy-page .privacy-section:nth-child(even) {
    background: color-mix(in srgb, var(--ami-surface-2) 70%, transparent);
}

body.privacy-page .privacy-section-en {
    border-inline-end-color: var(--ami-border) !important;
}

body.privacy-page .privacy-section a {
    color: var(--ami-brand-600) !important;
}

[data-bs-theme="dark"] body.privacy-page .privacy-section a {
    color: var(--ami-brand-300) !important;
}

body.privacy-page .privacy-theme-toggle {
    background: rgba(var(--ami-brand-rgb), 0.12) !important;
    border-color: rgba(var(--ami-brand-rgb), 0.22);
    color: var(--ami-brand-600) !important;
}

body.privacy-page .privacy-theme-toggle:hover {
    background: var(--ami-brand-600) !important;
    border-color: var(--ami-brand-600);
    color: #fff !important;
}

[data-bs-theme="dark"] body.privacy-page .privacy-theme-toggle {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff !important;
}

[data-bs-theme="dark"] body.privacy-page #theme-icon-dark { display: none; }
[data-bs-theme="dark"] body.privacy-page #theme-icon-light { display: block; }
[data-bs-theme="dark"] body.privacy-page #theme-icon-appearance { color: #b8a4ff; }

[data-bs-theme="dark"] body.privacy-page .privacy-header,
[data-bs-theme="dark"] body.privacy-page .privacy-footer {
    background: color-mix(in srgb, var(--ami-brand-950) 72%, transparent) !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
}

[data-bs-theme="dark"] body.privacy-page .privacy-doc {
    background: color-mix(in srgb, var(--ami-brand-900) 88%, transparent) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

[data-bs-theme="dark"] body.privacy-page .privacy-btn-ghost {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.14);
    color: #fff !important;
}

body.privacy-page #amiThemePanel {
    z-index: 10050;
}
