Impossible Foods Inc. legal chief Dana Wagner is leaving the meatless burger company to take on the top lawyer role at San Francisco-based tech firm Twilio Inc.