.privacy-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    animation: fadeIn 0.3s ease-in-out;
    overflow-y: auto;
}

.privacy-modal.show {
    display: block;
}

.privacy-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.7) 0%, 
        rgba(248, 249, 250, 0.75) 50%, 
        rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: -1;
}

.privacy-modal-content {
    position: relative;
    background: #ffffff;
    max-width: 1000px;
    width: 95%;
    margin: 2rem auto;
    border-radius: 0;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.8);
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 2px solid rgba(59, 130, 246, 0.1);
    aspect-ratio: 210/297;
    min-height: auto;
}

.privacy-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.privacy-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.privacy-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.privacy-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
    transform: scale(1.1);
}

.privacy-modal-body {
    padding: 2rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.privacy-content {
    line-height: 1.7;
    color: #374151;
}

.privacy-content h3 {
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
    position: relative;
}

.privacy-content h3:first-child {
    margin-top: 0;
}

.privacy-content h3::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 3rem;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1px;
}

.privacy-content p {
    margin: 1rem 0;
    text-align: justify;
}

.privacy-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.privacy-content li {
    margin: 0.5rem 0;
    position: relative;
}

.privacy-content li::marker {
    color: #667eea;
}

.privacy-modal-footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
}

.privacy-modal-footer-close {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.privacy-modal-footer-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.privacy-modal-body::-webkit-scrollbar {
    width: 8px;
}

.privacy-modal-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.privacy-modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

.privacy-modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

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

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1200px) {
    .privacy-modal-content {
        max-width: 900px;
        width: 90%;
    }
}

@media (max-width: 768px) {
    .privacy-modal-content {
        width: 95%;
        margin: 1rem auto;
        aspect-ratio: auto;
        min-height: auto;
    }
    
    .privacy-modal-header {
        padding: 1rem 1.5rem;
    }
    
    .privacy-modal-header h2 {
        font-size: 1.25rem;
    }
    
    .privacy-modal-body {
        padding: 1.5rem;
    }
    
    .privacy-content h3 {
        font-size: 1.1rem;
    }
    
    .privacy-modal-footer {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .privacy-modal-content {
        width: 98%;
        margin: 0.5rem auto;
    }
    
    .privacy-modal-header {
        padding: 0.75rem 1rem;
    }
    
    .privacy-modal-header h2 {
        font-size: 1.1rem;
    }
    
    .privacy-modal-body {
        padding: 1rem;
    }
    
    .privacy-content h3 {
        font-size: 1rem;
        margin: 1.5rem 0 0.75rem 0;
    }
    
    .privacy-modal-footer {
        padding: 1rem;
    }
    
    .privacy-modal-footer-close {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }
}

.privacy-modal-content:focus-within {
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.8),
        0 0 0 3px rgba(59, 130, 246, 0.1);
}

.privacy-modal * {
    transition: color 0.2s ease, background-color 0.2s ease;
}

.privacy-content a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.privacy-content a:hover {
    color: #5a67d8;
    border-bottom-color: #5a67d8;
} 