The legal aspects of the mental health care of adolescents