For instructions on setting up heading numbering in Word for Windows, see https://shaunakelly.com/word/numbering/numbering20072010.html .
The corresponding instructions for Word for Mac can be found at https://www.brandwares.com/bestpractices/2016/06/outline-numbering-in-word-for-os-x/ .