I would like to note this:
I never have suggested that a war on Earth be the focus of a Trek series.
I outlined a potential Trek series once that featured a war breaking out on Earth that lasted about a season.
The featured ship (the Enterprise) was among the ships ordered to evacuate Federation personnel from Earth and help enforce a blockade of Earth to prevent any weapons or supplies from being shipped in from off world.
The "war" was mostly seen through intel reports from Federation sources on Earth and from orbital scans.
Needless to say because of the Federation blockade, no combat took place in space.
Nonsense. Why would Federation personnel be evacuated from Earth? Why blockade the planet? It's Federation territory; it would be irresponsible for Starfleet and the Federation to just allow the population to fight amongst themselves to no end.
Earth itself is not Federation territory.
Earth is a Federation member.
Just as the U.S. is a member of the United Nations. That in no way gives the UN authority to operate inside the U.S. disregarding U.S. sovereignty.
Nonsense. It's been made clear on numerous occasions that the Federation is a state, not an international organization. We've seen the Federation conducting foreign affairs binding on its people rather than consulting each individual member world's government in Star Trek VI and DS9. We've seen the Federation declare war in DS9. In "Homefront"/"Paradise Lost," we saw that the Federation President has the right to declare martial law on a Federation world unilaterally, without needing to contact that world's government, in response to an emergency. In TNG's "Force of Nature," we saw the Federation Council pass a law that was binding on all Federation worlds. And of course, there's the Federation Starfleet, a military organization that obeys the Federation, not the member worlds. It's also been clear that the UFP has established borders that it controls, such as in "The Best of Both Worlds," when Picard describes the UFP has having territory.
It is pretty clear throughout Star Trek that member planets laws are a priority and take precedence over those of the Federation when it comes to internal matters.
There has been no such indication. It has been made clear throughout Trek that the UFP has a genuine commitment to federalism, but it does remain, as the name says, a federation.