Each class gets its own part via the docx package's footnotes/endnotes maps, counted from 1, and the anchor becomes a reference run. Import reads both parts, skipping the separator entries Word references from nowhere, and flattens a multi-paragraph note to hard breaks. The numbering settings ride w:footnotePr/w:endnotePr in settings.xml — a post-pack pass, as the package exposes neither.