Earth and other Federation planets were often depicted to be somewhat utopian in nature, however there are cases where domestic crimes have been depicted at various points throughout Star Trek.
Were there any standard laws and punishments for crimes across Federation controlled planets and space? Were they standardised or did they differ depending on the planet or region of space?
How were severe crimes punished vs minor ones?