David Cay Johnston is a Pulitzer-Prize winning tax journalist who has spent his career exposing the methods, both legal and illegal, that the super-rich and mega-corporations have used to escape or reduce their contribution to social welfare. Perfectly Legal is essentially a series of vignettes about this topic. The book begins by examining the tax cuts and other perfectly intentional ways that the tax system has favored the wealthy and fostered the growing inequality of wealth and power we are suffering from today. He briefly reviews the evidence: the economy has grown substantially over the past few decades, yet wages for over 90% of Americans have risen, in real terms, by only a nickel an hour. The vast increases in productivity have all been siphoned off into the coffers on the extremely wealthy.
As Johnston explains, part of this has to do with executive pay. As executives demand ever more absurd levels of compensation, regardless of their real worth to shareholders, this money must either be taken away from the salaries of other workers or away from the pool of capital that can be invested in productive expansion, research, and repair. As there is no free lunch, executive overpay hurts everyone except the executives.
Another wealth redistribution scheme emerged when Social Security taxes were raised to expand the pool of capital in the SS fund. This was necessary because, after cutting taxes on the rich, the government needed to use the SS fund to support basic government functions, and the existing pool wasn't large enough. Since the maximum contribution to social security taxes is low (around $110,000 at the moment), these tax increases hurt the low and middle classes but were essentially irrelevant to the wealthy.
A potentially unintentional but very important turn of fate made the Alternative Minimum Tax, which was created to prevent the upper classes from paying no taxes by using a surfeit of deductions, into an increasingly nasty surprise for the middle classes. Since its creation, due to inflation and legislative adjustments, the AMT has shifted its burden from the rich to the not-so-rich. This became a particular problem when the Bush tax cuts went into effect. While the tax cuts reduced the official income tax, it didn't affect the AMT, so many families who would have been entitled to the tax cut were instead merely forced to pay the AMT - which, by its nature, offers many fewer deductions and often ends up being more expensive than the normal income tax. For some reason I never grasped, this problem didn't threaten the upper class.
The rest of the book focuses on the battle between the IRS and those who would use illegal or underhanded means to avoid paying taxes. It seems that the IRS has been under attack for several decades now, as Republicans have realized that demonizing the tax-man is good politics. The result has been a handcuffed IRS that doesn't have the resources it needs to go after even a handful of the nearly ubiquitous tax avoidance schemes and tax shelters and straight-up lies used by corporations and the super rich to cheat the government and the people. IRS agents are often actively discouraged from pursuing high-profile tax cheats, apparently because the cheats are political donors with an access to the ear of politicians willing and able to call off the IRS. Instead, the IRS has been legally mandated to audit Earned Income Tax Credit returns at a higher-than-average rate, despite the facts that that demographic by definition doesn't have access to the kind of professional help they need to avoid making simple mistakes on tax returns, that that demographic, even in aggregate can't cheat the government out of an amount of money that would be worth pursuing, and that they are essentially automatically crippled by even the accusation of cheating.
The rich, on the other hand, are often able to essentially ignore the legal repercussions of being caught cheating. And with the complex schemes they are able to purchase from expert lawyers and accountants, their cheating is rarely caught. When they do go to court, expensive legal letters purchased from accountants often force the court to acknowledge that the evader purchased the avoidance scheme on the good faith advice of people who knew better that the scheme was legal. At worst, the company is forced to pay the taxes, so the scheme bears essentially no risk.
In this low-risk environment, tax cheats of various stripes have proliferated among slightly lower classes as well, and Johnston spends a decent amount of the book on them as well, essentially to point out that an absence of enforcement encourages cheating. The IRS estimates losses to tax fraud at up to $500 billion per year, though Johnston seems to, reasonably, believe that the IRS' estimates are generally low.