role of legal advisor