if you are living in such a country where bitcoin is banned. then if you are holding or selling your bitcoin then it is illegal. but if your country has yet not given any statement about bitcoin then it is legal. and you can use or can sell it very easily. without any restriction.