The ruler of which Muslim empire created an enormous legal code for his empire?

A.
Safavid Empire

B.
Mughal Empire

C.
Ottoman Empire