A Scottish law company has acquired a rival firm