I noticed your link to the MC that mentioned the Torah. It’s an interesting thing to think about. Surely, God’s Laws existed before being revealed to Moses? Idolatry, murder, adultery must have been wrong prior to the Bereshit and from the moment Adam and Eve departed the Garden practiced.
The Magna Carta was based on remnants of the Roman legal system, surviving in the Latin-literate clerical population of England.