How to create different horizontal margins in the Header and Footer? | Word 365

Double-click on the header or footer to get to Header and Footer options

On the ruler move the Left Indent and Right Indent markers to required locations

To change the footer margins click on the footer section and ruler will now show footer margins. On the ruler move the Left Indent and Right Indent markers to required locations.