CMC Markets legal director departs