Whether bitcoin is legal or not depends upon the country that you reside in and how the laws regarding crypto work there