Pictures help....
The spacing of the via/contact will be independent of the metal or diffusion enclosure, unless I'm not understanding something. If you have multiple contacts or vias there could be metal around them all so the enclosure doesn't apply between the contact/via but does around the perimeter