A team led by Legacy Real Estate Developers has sold the former Casio America headquarters building in Dover, completing a plan that repositioned more than 126,000 square feet of industrial and office space in less than nine months.