An ethico-legal framework for social data science