how is it legal exactly?
The recent development is that there is now news that her team coordinated it. She previously stated under oath that they did not, which is opening up the door for perjury which is of course illegal.
There's, apparently, no law making it illegal. Which is how most things that are legal are legal. What are you confused about?