Foundations cant get their political donations for personal use.
The answer is simple. . . the have their family members create political consulting firms which are PAID for advice from their contributions whatever the "consultant firm" bills, usually through another third party, say an ad agency, which really engages them for their "expertise" in knowing all about the candidate, and bills that cost to the campaign. Voilá, money in the bank.