Plex is perfectly legal when you stream from their server or upload content that was illegally obtained.