The Scottish court system are a distinctive part of the UK's legal framework.