Gap's chief legal and administrative officer Lauri Shanahan is to leave the company to pursue fresh challenges after 15 years with the fashion retailer.