Legal entity document automation