In Scotland, a legal advisor is a legally qualified lawyer who provides independent advice on the law and court procedure to justices of the peace.