Indeed. I think what I'm imagining is something like Typst for courts and lawyers.
Imagine if, nationwide, we lawyers could draft in plain text and never (or rarely) have to worry about court-specific typesetting rules or wrestling with Word!