I thought Mozilla was a foundation not a company.
It's both. When I worked there, the Foundation (non-profit) owned the Corporation (for-profit). If you donate to Mozilla it's going to the non-profit org.
Would be interested in hearing more about your views on this. I use Firefox and Thunderbird almost exclusively, and every time I think about donating money I then remember all the wasted time and effort they've poured into what seem to be pipe dreams over the years. I WANT them to succeed. I WANT there to be an alternative on the desktop to Chrome (now that Edge is basically rebranded Chromium), and on iOS to both Chrome and Safari, I WANT to support their excellent documentation portal (which everyone else rides on the back of - even MS points to it a lot now). But man, I just don't trust the powers-that-be there to make non-braindead strategic decisions, year after year. Talk me out of that prejudice against them, please?