/* ════════════════════════════════════════════════════════════════
   PRIVACY POLICY — Stili dedicati alla modal Privacy Policy
   ════════════════════════════════════════════════════════════════
   Step 12e — Privacy Policy GDPR
   ════════════════════════════════════════════════════════════════ */


/* ──────────────────────────────────────────────────────────────
   Overlay scuro
   ────────────────────────────────────────────────────────────── */
#privacy-policy-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    animation: pp-fadeIn 0.2s ease-out;
}

#privacy-policy-overlay.hidden {
    display: none;
}

@keyframes pp-fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}


/* ──────────────────────────────────────────────────────────────
   Contenitore modal
   ────────────────────────────────────────────────────────────── */
#privacy-policy-modal {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 560px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: pp-popIn 0.28s ease-out;
}

@keyframes pp-popIn {
    from { opacity: 0; transform: translateY(-12px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)     scale(1);    }
}


/* ──────────────────────────────────────────────────────────────
   Header modal
   ────────────────────────────────────────────────────────────── */
.pp-header {
    background: linear-gradient(135deg, #5d6d7e 0%, #2c3e50 100%);
    color: white;
    padding: 1rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.pp-header h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    color: white;
}

.pp-close {
    background: transparent;
    color: white;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.4rem;
    border-radius: 6px;
    flex-shrink: 0;
    transition: background-color 0.15s ease;
}

.pp-close:hover {
    background-color: rgba(255, 255, 255, 0.18);
}


/* ──────────────────────────────────────────────────────────────
   Corpo modal con scroll
   ────────────────────────────────────────────────────────────── */
.pp-body {
    padding: 1.4rem 1.6rem;
    overflow-y: auto;
    flex: 1;
}

.pp-body p {
    margin: 0 0 0.75rem 0;
    color: #34495e;
    font-size: 0.9rem;
    line-height: 1.6;
}

.pp-body h3 {
    margin: 1.2rem 0 0.4rem 0;
    color: #2c3e50;
    font-size: 0.95rem;
    font-weight: 700;
}

.pp-body h3:first-child {
    margin-top: 0;
}

.pp-meta {
    font-size: 0.8rem;
    color: #95a5a6;
    margin-bottom: 1.2rem !important;
}

.pp-contact-link {
    color: #2471a3;
    text-decoration: none;
}

.pp-contact-link:hover {
    text-decoration: underline;
}


/* ──────────────────────────────────────────────────────────────
   Footer con pulsante chiudi
   ────────────────────────────────────────────────────────────── */
.pp-footer {
    padding: 0.8rem 1.6rem 1.2rem 1.6rem;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
    border-top: 1px solid #ecf0f1;
}

#btn-privacy-policy-chiudi {
    background-color: #eaecee;
    color: #2c3e50;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1.6rem;
    border-radius: 6px;
    transition: background-color 0.15s ease;
}

#btn-privacy-policy-chiudi:hover {
    background-color: #d5d8dc;
}
