Role of legal opinion in mitigating legal risks