Private servers running on emulator software (eAthena, Freya etc.) are legal in a way. Gravity sued the creators and lost. But those that still run on Aegis software, which is Gravities child, are illegal as in other words, it still belongs to them and every such server owner may easily pay the consequences.