buying and selling bitcoins for profit might be illegal if you don't have the proper licenses, but I am sure that depends to a large extent on the scale you do it. There is a difference between trading your twenty euros to your friend for some dollars, and setting up a business that exchanges euros and dollars.