A family of Microsoft word processing software products for creating web, email, and print documents.
In your sample document, the TOC picks up heading levels 1–3, and the headings in the document are level 4. That explains why (most) headings disappear from the table of contents as you update it.