It is legal because there is no law that says it isn't.