Some writings of Plato and Aristotle, the law tables of Hammurabi of Babylon, or even the early parts of the Bible could be seen as legal literature.
What Babylonian ruler created formal law tables?
Hammurabi