compensation legal definition