Law courts in Scotland are a unique part of the UK’s legal framework.