The legal framework