legecy