A composite strategy for the legal and ethical use of data mining