The legality of bitcoin depends on who you are, and what youre doing with it.
There are three main categories of bitcoin stakeholder. Someone may fall under more than one of these categories, and each category has its own legal considerations.
Depending on which country you live, if your country prohibits bitcoin then bitcoin becomes illegal and if your country receives bitcoin then it becomes legal.