Brainwashing For The Greater Good: The Imperial legal system’s penalties for pretty much every non-capital crime above the level of a misdemeanor (or for chronic misdemeanants) include, along with the fine/reparation, “memetic rehab and recon”, which is Exactly What It Says On The Tin, namely, having your mind edited to remove whatever bad ideas made you commit your special crime.
They are, of course, perfectly fair about this and do offer you the option to prize your self-integrity over your ethical stature. Depending on the magnitude of said special crime, you always receive the alternative option of either (a) renouncing your citizen-shareholdership and departing forthwith into exile, or (b) euthanasia.
(Note: Also, when you consider how this looks from the inside, remember that people perform mental editing on themselves all the time for various self-developmental purposes, including moral growth. Also also, there are many fewer laws in the first place.)