If you're finding additional weirdness where the numbers don't add up, try .environment(\.defaultMinListRowHeight, 0) - sometimes section space or headers/footers have a minimum size that won't be overridden by other modifiers such as listSectionSpacing.
IMO Apple has over-engineered all of this. A concept like bottom padding would have been so much simpler.
Topic:
UI Frameworks
SubTopic:
SwiftUI