/* Privacy Policy Modal Styles */

.privacy-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in;
}

.privacy-modal.fade-out {
    animation: fadeOut 0.3s ease-out;
}

.privacy-modal-content {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s ease-out;
}

.privacy-modal-content.shake {
    animation: shake 0.5s ease-in-out;
}

.privacy-modal-header {
    background: linear-gradient(135deg, #0066CC 0%, #0052a3 100%);
    color: #ffffff;
    padding: 20px 25px;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.privacy-modal-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

.privacy-icon {
    font-size: 24px;
}

.privacy-modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}

.privacy-modal-body p {
    color: #333333;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.privacy-modal-body p:last-child {
    margin-bottom: 0;
}

.privacy-modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #e0e0e0;
    background-color: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.privacy-acceptance {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.privacy-checkbox-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.privacy-checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin: 0 10px 0 0;
}

.privacy-checkbox-wrapper label {
    font-size: 15px;
    font-weight: 500;
    color: #333333;
    cursor: pointer;
    margin: 0;
}

.privacy-accept-button {
    width: 100%;
    padding: 14px 24px;
    background-color: #cccccc;
    color: #666666;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: not-allowed;
    transition: all 0.3s ease;
}

.privacy-accept-button.enabled {
    background: linear-gradient(135deg, #28a745 0%, #20914a 100%);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.privacy-accept-button.enabled:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.privacy-accept-button.enabled:active {
    transform: translateY(0);
}

.privacy-notice {
    text-align: center;
    margin-top: 12px;
}

.privacy-notice small {
    color: #666666;
    font-size: 12px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

/* Scrollbar styling for modal body */
.privacy-modal-body::-webkit-scrollbar {
    width: 8px;
}

.privacy-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.privacy-modal-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.privacy-modal-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .privacy-modal-content {
        width: 95%;
        max-height: 85vh;
    }

    .privacy-modal-header h2 {
        font-size: 18px;
    }

    .privacy-modal-body {
        padding: 20px;
    }

    .privacy-modal-body p {
        font-size: 13px;
    }

    .privacy-modal-footer {
        padding: 15px 20px;
    }
}
