legating