what is the role of the Attorney General in providing legal opinions to public authorities