Law courts in Scotland are a separate part of the UK's legal framework.