/* =======================================
   Privacy Consent Popup - חוק הגנת הפרטיות
   ======================================= */

.privacy-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    direction: rtl;
    opacity: 0;
    animation: privacyFadeIn 0.35s ease forwards;
}

@keyframes privacyFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.privacy-popup {
    background: #fff;
    border-radius: 16px;
    max-width: 540px;
    width: 92%;
    padding: 30px 28px 26px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    transform: translateY(30px);
    animation: privacySlideUp 0.4s ease 0.1s forwards;
    opacity: 0;
    position: relative;
}

@keyframes privacySlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.privacy-popup-icon {
    font-size: 42px;
    margin-bottom: 10px;
}

.privacy-popup h2 {
    color: #222;
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
}

.privacy-popup .privacy-subtitle {
    color: #888;
    font-size: 13px;
    margin-bottom: 16px;
}

.privacy-popup .privacy-text {
    color: #444;
    font-size: 14px;
    line-height: 1.85;
    margin-bottom: 22px;
    text-align: right;
    max-height: 260px;
    overflow-y: auto;
    padding: 14px 16px;
    background: #f9f9fb;
    border-radius: 10px;
    border: 1px solid #eee;
}

.privacy-popup .privacy-text b {
    color: #222;
}

.privacy-popup .privacy-text a {
    color: #1976D2;
    text-decoration: underline;
}

.privacy-popup .privacy-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 6px;
}

.privacy-popup .btn-privacy-accept {
    background: linear-gradient(135deg, #43A047, #66BB6A);
    color: #fff;
    border: none;
    padding: 13px 40px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(67, 160, 71, 0.35);
    min-width: 140px;
}

.privacy-popup .btn-privacy-accept:hover {
    background: linear-gradient(135deg, #388E3C, #43A047);
    box-shadow: 0 6px 20px rgba(67, 160, 71, 0.45);
    transform: translateY(-1px);
}

.privacy-popup .btn-privacy-decline {
    background: #f5f5f5;
    color: #777;
    border: 1px solid #ddd;
    padding: 13px 32px;
    border-radius: 10px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.privacy-popup .btn-privacy-decline:hover {
    background: #eaeaea;
    color: #555;
}

.privacy-popup .privacy-footer-note {
    margin-top: 14px;
    font-size: 11.5px;
    color: #aaa;
    line-height: 1.6;
}

/* Scrollbar for privacy text */
.privacy-popup .privacy-text::-webkit-scrollbar {
    width: 5px;
}
.privacy-popup .privacy-text::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}
.privacy-popup .privacy-text::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

/* Responsive */
@media screen and (max-width: 600px) {
    .privacy-popup {
        padding: 22px 18px 20px;
        max-width: 96%;
    }
    .privacy-popup h2 {
        font-size: 19px;
    }
    .privacy-popup .privacy-text {
        font-size: 13px;
        max-height: 220px;
        padding: 12px;
    }
    .privacy-popup .privacy-btns {
        flex-direction: column;
    }
    .privacy-popup .btn-privacy-accept,
    .privacy-popup .btn-privacy-decline {
        width: 100%;
    }
}
