Distillation isn't illegal. But LLM vendors are free to block attempts at distillation or prohibit it in customer contracts.