It is fully legal to learn Ethical Hacking training course, until and unless you are authorized to hack any website/System/Server/Computer. DO NOT hack into others computer/phone or any other device without authorization.