Sure, CSAM is unlawful. Around the world, it's criminalised below Intercontinental agreements similar to the UN Convention on the Legal rights on the Child. Legal guidelines vary a little, nevertheless the Main information is identical: children needs to be protected from exploitation, and CSAM is usually a direct violation of their rights and safe