BBC appoints new legal head