Kodi is a Program which enables you to use 3rd party Programs to watch Movies, TV Shows, Live TV, and Live Sports
You get access to all this content by Streaming it over the Internet, using someone else content.
There is no Law that states streaming media is Illegal.
Here is a Preview of the Program and a Custom Build for it.