Legal aspects of addiction treatment