Legal aspects in dementia