What is the difference between critical illness and terminal illness

What is the difference between critical illness and terminal illness