.docx is a much nicer format than doc.
It is literally a zip file containing a some xml files [0]. Having said that, the spec is still 106 pages, but the entire xml schema is only 8 pages; the rest is exposistion.
[0] Some features (such as embedding images) probably involve including non-xml files.
[1] https://msdn.microsoft.com/en-us/library/dd773189(v=office.1...