/* Privacy Consent Popup Styles - GDPR/COPD Ecuador */

.privacy-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    font-family: 'Source Sans 3', sans-serif;
}

.privacy-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.privacy-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 720px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 0;
    animation: popupSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes shake {
    0%, 100% { transform: translate(-50%, -50%); }
    25% { transform: translate(-52%, -50%); }
    75% { transform: translate(-48%, -50%); }
}

.privacy-popup-header {
    background: linear-gradient(135deg, #000 0%, #333 100%);
    color: #fff;
    padding: 1.25rem 1.5rem;
    border-radius: 20px 20px 0 0;
    text-align: center;
}

.privacy-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 1rem;
    border-radius: 10px;
}

.privacy-popup-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.privacy-popup-body {
    padding: 1.25rem 1.5rem 1.5rem;
    color: #333;
}

.privacy-intro {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.privacy-info-box {
    background: #f8f9fa;
    border-left: 4px solid #000;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-radius: 8px;
}

.privacy-info-box.bg-success-subtle {
    background: #d1e7dd;
    border-left-color: #198754;
}

.privacy-info-box.bg-primary-subtle {
    background: #cfe2ff;
    border-left-color: #0d6efd;
}

.privacy-info-box h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #000;
}

.privacy-info-box ul {
    margin: 0;
    padding-left: 1.25rem;
}

.privacy-info-box li {
    margin-bottom: 0.35rem;
    line-height: 1.5;
}

.privacy-warning {
    background: #fff3cd;
    border: 2px solid #ffc107;
    padding: 0.85rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.privacy-warning p {
    margin: 0;
    color: #856404;
}

.privacy-policy-link {
    text-align: center;
    margin: 1rem 0;
    font-size: 0.95rem;
}

.privacy-policy-link a {
    color: #0d6efd;
    font-weight: 600;
    text-decoration: underline;
}

.privacy-notice {
    background: #f8d7da;
    border: 1px solid #f5c2c7;
    padding: 0.85rem;
    border-radius: 8px;
    color: #842029;
    text-align: center;
}

.privacy-popup-footer {
    display: flex;
    gap: 1rem;
    padding: 0 1.5rem 1.5rem;
    justify-content: space-between;
}

.privacy-popup-footer .btn {
    flex: 1;
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.privacy-popup-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.privacy-footer-note {
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    padding: 0 1.5rem 1.25rem;
    margin: 0;
}

.privacy-info-box summary {
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.privacy-info-box summary::-webkit-details-marker {
    display: none;
}

.privacy-info-box summary::after {
    content: '+';
    float: right;
    font-weight: 700;
    color: #000;
}

.privacy-info-box[open] summary::after {
    content: '–';
}

@media (max-width: 768px) {
    .privacy-popup-content {
        width: 95%;
        max-height: 92vh;
    }

    .privacy-popup-header {
        padding: 1rem 1.25rem;
    }

    .privacy-logo {
        width: 52px;
        height: 52px;
    }

    .privacy-popup-body {
        padding: 1rem 1.25rem 1.25rem;
    }

    .privacy-popup-footer {
        flex-direction: column;
        gap: 0.75rem;
    }
}
