Legal aspects of adoption