Normal punishments tend to involve either fines, imprisonment, amputation or execution, but not all crimes are going to be bad enough to be executed for, and imprisonment is often a waste of resources. Here are thirty punishments for those who get out of line and get caught and convicted.
Many, perhaps most fantasy lands are monarchies, which can be ruled well when the monarch is a clever and able man or woman devoted to his or her people. But what happens when the monarch is ill, or is tyrannically cruel, or a young child, or is otherwise blatantly unfit to rule? How can he or she be dealt with without risking civil war as powerful nobles fight for the crown?
A lot of what adventurers do is illegal, from fighting and carrying weapons in towns, to robbery and tomb raiding. Sooner or later, many of them are going to be arrested and find themselves up before a judge.
In the Cosmic Era, the proliferation of arcanotech, cyborgs, robots, parapsychic threats, black market weapons, new illegal drugs constantly hitting the market, all backed up by large organized criminal syndicates, the average police officer doesn't stand a chance.
Mining in a certain area turns all exposed skin (maybe just parts that are actively disturbing the chemicals that cause the reaction) of the those doing the mining to a dark blue color. Will wear off taking as many years/days spent in the mine. ... meeting a party of blue-skinned humans armed with pick-axes etc. Strange disease? Demon offspring? Curse? If they meet only one ex-worker, they will very carefully listen to any stories he says, no matter if drunken or insane, or just makes up to get a beer.