
/* ==========================================
   KARAM AL BALAD - PRIVACY POLICY
========================================== */

/* Footer link */

.about-footer .about-privacy-link {
    border: 0;
    background: transparent;
    color: #b59b6a;

    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.6px;

    padding: 8px 12px;
    cursor: pointer;

    transition: color 0.3s ease,
                opacity 0.3s ease;
}

.about-footer .about-privacy-link:hover {
    color: #f7f4ee;
}

.about-footer .about-privacy-link:focus-visible {
    outline: 2px solid #b59b6a;
    outline-offset: 4px;
}

/* Fullscreen blurred overlay */

.kh-privacy-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    background: rgba(3, 9, 20, 0.82);

    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.kh-privacy-overlay[hidden] {
    display: none !important;
}

body.kh-privacy-open {
    overflow: hidden;
}

/* Premium navy panel */

.kh-privacy-panel {
    position: relative;

    width: min(960px, 100%);
    height: min(85dvh, 820px);

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border-radius: 22px;

    border: 1px solid
        rgba(181, 155, 106, 0.35);

    background:
        radial-gradient(
            ellipse at top right,
            rgba(43, 76, 115, 0.32),
            transparent 55%
        ),
        linear-gradient(
            150deg,
            #15263b 0%,
            #101c2a 48%,
            #091322 100%
        );

    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.55),
        inset 0 0 75px rgba(181, 155, 106, 0.035);

    color: #f7f4ee;
}

/* Header */

.kh-privacy-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;

    padding: 30px 42px 24px;

    border-bottom: 1px solid
        rgba(181, 155, 106, 0.22);
}

.kh-privacy-eyebrow {
    margin: 0 0 12px;

    font-family: "DM Sans", sans-serif;
    font-size: 10px;
    letter-spacing: 2.5px;

    color: #b59b6a;
}

.kh-privacy-header h2 {
    margin: 0;

    font-family: "Cormorant Garamond", serif;
    font-weight: 400;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.1;

    color: #f7f4ee;
}

.kh-privacy-header h2 span {
    color: #b59b6a;
}

.kh-privacy-tagline {
    margin: 9px 0 0;

    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    line-height: 1.6;

    color: rgba(247, 244, 238, 0.63);
}

/* Close button */

.kh-privacy-close {
    flex-shrink: 0;

    width: 42px;
    height: 42px;

    border-radius: 50%;

    border: 1px solid
        rgba(181, 155, 106, 0.45);

    background: transparent;
    color: #b59b6a;

    font-size: 28px;
    line-height: 1;

    cursor: pointer;

    transition: background 0.3s,
                color 0.3s,
                transform 0.3s;
}

.kh-privacy-close:hover {
    background: #b59b6a;
    color: #101c2a;
    transform: rotate(90deg);
}

/* Scrollable legal content */

.kh-privacy-content {
    flex: 1;
    min-height: 0;

    overflow-y: auto;
    overscroll-behavior: contain;

    padding: 30px 42px 45px;

    direction: ltr;
    text-align: left;

    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    line-height: 1.9;

    color: rgba(247, 244, 238, 0.84);

    scrollbar-color:
        #b59b6a transparent;

    scrollbar-width: thin;
}

.kh-privacy-content h2 {
    margin: 34px 0 12px;

    font-family: "Cormorant Garamond", serif;
    font-size: 29px;
    font-weight: 500;
    line-height: 1.25;

    color: #e4c590;
}

.kh-privacy-content h2:first-child {
    margin-top: 0;
}

.kh-privacy-content h3 {
    margin: 22px 0 8px;

    font-size: 14px;
    font-weight: 600;

    color: #f1d4a4;
}

.kh-privacy-content p {
    margin: 0 0 15px;
    line-height: 1.9;
}

.kh-privacy-content ul {
    margin: 8px 0 20px;
    padding-left: 24px;
}

.kh-privacy-content li {
    margin-bottom: 8px;
    padding-left: 4px;
}

.kh-privacy-content li::marker {
    color: #b59b6a;
}

.kh-privacy-content .kh-privacy-date {
    color: #b59b6a;
    font-size: 12px;
    margin-bottom: 24px;
}

/* Bottom bar */

.kh-privacy-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 16px 42px;

    border-top: 1px solid
        rgba(181, 155, 106, 0.22);
}

.kh-privacy-bottom > span {
    font-family: "DM Sans", sans-serif;
    font-size: 10px;
    letter-spacing: 1.8px;

    color: rgba(247, 244, 238, 0.52);
}

.kh-privacy-done {
    border: 1px solid #b59b6a;

    padding: 11px 30px;
    border-radius: 4px;

    background: transparent;
    color: #e4c590;

    font-family: "DM Sans", sans-serif;
    font-size: 11px;
    letter-spacing: 1.5px;

    cursor: pointer;
    transition: 0.3s ease;
}

.kh-privacy-done:hover {
    background: #b59b6a;
    color: #101c2a;
}

.kh-privacy-close:focus-visible,
.kh-privacy-done:focus-visible {
    outline: 2px solid #f1d4a4;
    outline-offset: 4px;
}

/* Mobile */

@media (max-width: 600px) {

    .kh-privacy-overlay {
        padding: 10px;
    }

    .kh-privacy-panel {
        width: 100%;
        height: calc(100dvh - 20px);
        border-radius: 16px;
    }

    .kh-privacy-header {
        padding: 22px 20px 18px;
    }

    .kh-privacy-header h2 {
        font-size: 38px;
    }

    .kh-privacy-content {
        padding: 20px 22px 35px;
        font-size: 12px;
    }

    .kh-privacy-content h2 {
        font-size: 25px;
    }

    .kh-privacy-bottom {
        padding: 14px 20px;
    }

    .kh-privacy-bottom > span {
        font-size: 8px;
        letter-spacing: 1px;
    }

    .kh-privacy-done {
        padding: 10px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kh-privacy-close,
    .kh-privacy-done,
    .about-privacy-link {
        transition: none;
    }
}

/* ==========================================
   PRIVACY POLICY - MEETING ROOM BACKGROUND
========================================== */

.kh-privacy-panel {
    background:
        linear-gradient(
            rgba(5, 12, 25, 0.30),
            rgba(5, 12, 25, 0.30)
        ),
        url("../meeting-rooms/assets/meeting-dark-background.png")
        center center / cover no-repeat !important;

    background-color: #101c2a;
}

/* Keep the textured background visible
   behind all Privacy Policy text */

.kh-privacy-content {
    background: transparent !important;
}

/* Elegant transparent header and footer */

.kh-privacy-header,
.kh-privacy-bottom {
    background: rgba(7, 16, 32, 0.18);
    backdrop-filter: blur(4px);
}

/* ==========================================
   PRIVACY POLICY - ARABIC SUPPORT
========================================== */

/* Arabic popup interface */

.kh-privacy-panel[lang="ar"] {
    direction: rtl;
}

.kh-privacy-panel[lang="ar"] .kh-privacy-header,
.kh-privacy-panel[lang="ar"] .kh-privacy-bottom {
    direction: rtl;
    text-align: right;
}

.kh-privacy-panel[lang="ar"] .kh-privacy-header h2 {
    font-family: "Noto Naskh Arabic", Tahoma, serif;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.5;
    letter-spacing: 0;
}

.kh-privacy-panel[lang="ar"] .kh-privacy-tagline,
.kh-privacy-panel[lang="ar"] .kh-privacy-eyebrow,
.kh-privacy-panel[lang="ar"] .kh-privacy-done {
    font-family: "Tajawal", Tahoma, sans-serif;
    letter-spacing: 0;
}

/* Arabic legal text */

.kh-privacy-panel[lang="ar"] .kh-privacy-content {
    direction: rtl !important;
    text-align: right !important;

    font-family: "Tajawal", Tahoma, Arial, sans-serif;
    font-size: 15px;
    line-height: 2.1;
}

.kh-privacy-panel[lang="ar"] .kh-privacy-content h2 {
    font-family: "Noto Naskh Arabic", Tahoma, serif;
    font-size: 29px;
    line-height: 1.6;
    letter-spacing: 0;
}

.kh-privacy-panel[lang="ar"] .kh-privacy-content h3 {
    font-family: "Tajawal", Tahoma, sans-serif;
    font-size: 17px;
    line-height: 1.7;
}

.kh-privacy-panel[lang="ar"] .kh-privacy-content p {
    line-height: 2.1;
}

/* Arabic bullet lists */

.kh-privacy-panel[lang="ar"] .kh-privacy-content ul {
    direction: rtl;
    text-align: right;

    padding-left: 0;
    padding-right: 26px;
}

.kh-privacy-panel[lang="ar"] .kh-privacy-content li {
    padding-left: 0;
    padding-right: 4px;
    line-height: 2;
}

/* Mobile */

@media (max-width: 600px) {

    .kh-privacy-panel[lang="ar"] .kh-privacy-content {
        font-size: 14px;
        line-height: 2;
    }

    .kh-privacy-panel[lang="ar"] .kh-privacy-content h2 {
        font-size: 25px;
    }

    .kh-privacy-panel[lang="ar"] .kh-privacy-content h3 {
        font-size: 16px;
    }
}
