News Corp legal chief quits after seven years in top job