Of course, it is legal to use websites to buy backlinks. We wrote about it above too in detail.