30 Prisons, some of which are dreadful places in which to be, whilst others can be surprisingly pleasant, as far as somewhere can be pleasant when you are not allowed to leave it. Some are short term places of confinement, others are where you will spend the rest of your life unless you manage to escape.
Most criminals who are locked up as a punishment or to await trial are just confined in regular cellblocks or jails, but not all of them. Some are so dangerous that ordinary prisons just will not hold them. Others have secrets that cannot be allowed to be spread, or their crimes are so dreadful that they deserve a greater punishment then normal incarceration or even execution. In yet other cases the ruler had a nasty sense of humour...
Pirates' many bejeweled rings and piercings actually had a practical purpose - when the pirate or sailor died, the rings could be taken off as payment for a proper burial, saving him from a watery grave. This could be tied into regional culture, or made into a quest (The Pirate's Lost Rings, etc.). Also gives treasure-seeking divers another thing to look for besides crusty old chests.