ICOs for anonymous projects are illegal and it is still going on, I have not seen any litigation related to these projects as these projects are unknown owners.
For projects with clear owners and company registrations, the ICO is legal since they have registered the company in a country that allows an ICO to be held, usually an ICO comes with AML / KYC standards.
be careful with KYC, not everything that is legal and asks for KYC can look good. sometimes you will just fall victim to documents that were taken away by a project scam. we have seen it in the past, don't be repeated for this year and in the future. The ICO may still be running, but how can the market respond when a clearer one is on the market?