In legal filing there's usually standard fonts and spacing sizes. For civil cases:
Rule 32. Form of Briefs, Appendices, and Other Papers
Paper Size, Line Spacing, and Margins. The brief must be on 8 1/2 by 11 inch paper. The text must be double-spaced, but quotations more than two lines long may be indented and single-spaced. Headings and footnotes may be single-spaced. Margins must be at least one inch on all four sides. Page numbers may be placed in the margins, but no text may appear there.
(5)
Typeface. Either a proportionally spaced or a monospaced face may be used.
(A) A proportionally spaced face must include serifs, but sans-serif type may be used in headings and captions. A proportionally spaced face must be 14-point or larger.
(B) A monospaced face may not contain more than 10 1/2 characters per inch.
(6)
Type Styles. A brief must be set in a plain, roman style, although italics or boldface may be used for emphasis. Case names must be italicized or underlined.
(7)
Length.
(A)
Page Limitation. A principal brief may not exceed 30 pages, or a reply brief 15 pages, unless it complies with Rule 32(a)(7)(B).
(B)
Type-Volume Limitation.
(i) A principal brief is acceptable if it:
• contains no more than 13,000 words; or
• uses a monospaced face and contains no more than 1,300 lines of text.
(ii) A reply brief is acceptable if it contains no more than half of the type volume specified in Rule 32(a)(7)(B)(i).
Lawyers will typically use an editor either with built-in counter or a plug-in that will count these for them and ensure that the filing is compliant.
The only significant loophole is footnotes: "footnotes may be single-spaced". Sometimes you can see a lot of arguments delegated to footnotes due to size restrictions.
I don't think Elon's team is going to need any formatting tricks: 8 pages is enough, and I think they'll also respect the judge's small signal that they should keep it short and focused.
Elon's lawyers are the adults in the room.