Before debating legality. The authenticity of your literature review should be your biggest worry. The results and references will be a result of one of the biggest defects of chatgpt. Hallucinations. The sources may look legit but they are mostly wrong.