Ensuring compliance with tax regulations through legal opinions