organic law
The fundamental law of a state or country that serves as a basis for all other laws and social organization; it may be written, such as a constitution, or unwritten.