/* Estilos para Modais Legais (Termos e Política) */

.legal-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.legal-modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.legal-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    border-bottom: 2px solid #e5e7eb;
    background: linear-gradient(135deg, #0066CC 0%, #8B5CF6 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.legal-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.legal-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 32px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
}

.legal-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.legal-modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
    line-height: 1.8;
    color: #4b5563;
}

.legal-modal-body h2 {
    color: #1f2937;
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 2px solid #e5e7eb;
}

.legal-modal-body h2:first-child {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.legal-modal-body h3 {
    color: #374151;
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 15px;
}

.legal-modal-body p {
    margin-bottom: 15px;
}

.legal-modal-body ul,
.legal-modal-body ol {
    margin: 15px 0;
    padding-left: 30px;
}

.legal-modal-body li {
    margin-bottom: 10px;
}

.legal-modal-body a {
    color: #0066CC;
    text-decoration: underline;
}

.legal-modal-body a:hover {
    color: #0052A3;
}

.legal-modal-body strong {
    color: #1f2937;
}

.legal-modal-body small {
    color: #6b7280;
    font-size: 12px;
}

/* Scrollbar personalizada */
.legal-modal-body::-webkit-scrollbar {
    width: 8px;
}

.legal-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.legal-modal-body::-webkit-scrollbar-thumb {
    background: #0066CC;
    border-radius: 4px;
}

.legal-modal-body::-webkit-scrollbar-thumb:hover {
    background: #0052A3;
}

/* Responsive */
@media (max-width: 768px) {
    .legal-modal {
        padding: 10px;
    }

    .legal-modal-content {
        max-height: 95vh;
        border-radius: 8px;
    }

    .legal-modal-header {
        padding: 20px;
    }

    .legal-modal-header h2 {
        font-size: 20px;
    }

    .legal-modal-body {
        padding: 20px;
    }

    .legal-modal-body h2 {
        font-size: 20px;
    }

    .legal-modal-body h3 {
        font-size: 18px;
    }
}

