Smart contracts are completely legal as they are nothing but a computer program that facilitates disintermediation and transparency. In fact, they can reduce a lot of burden on the legal system by their very nature. They facilitate commercial efficiency and minimize transaction and legal costs.