Actually bitcoin is not legal in many countries, few countries only now accept bitcoin as legal. It depe ds upon the government of the countries which you live. In your country bitcoin is legal means then you can use it otherwise it is illegal. In your country bitcoin is banned means it is not legal, but in future other countrie will also have more chance to accept bitcoin as legal in their country.