My understanding is the for-profit structure was necessary in order to be able to do the search licensing deals finance Firefox.

That’s a separate for-profit. This one is narrowly scoped to operate thunderbird

No, MZLA is another subsidiary. You're talking about Mozilla Corporation.