I suggest you read up on the very basic and fundamental differences between law and ethics. Sometimes they overlap, but it's not a necessary requirement. Indeed, there are many many examples of laws around the world that you will find unethical.
Obviously, any country can have an unethical legal system relative to another country's ethics. That is just another flimsy foundation for colonialism. On the other hand, give me a single example of a country whose legal system is unethical according to its own standards. And thanks for telling me to educate myself - valuable advice, that.