Absolutely, it is legal to have a qualified person write your analytical essay. If you need additional information on the agreement between the website and yourself, you just need to check the requirements of the website.