Brazil has what is known as the Felca law, which requires providers of app stores and "terminal operating systems" to do age verification and to provide secure auditable APIs that meet government standards for doing the same. Presumably, specific distros like Red Hat can go through a government approval process in order to be legal to distribute in Brazil, but without such certification and without providing such system-level APIs, a random distro like Debian will be illegal to distribute in Brazil.