Legality of Scottish independence referendum under the spotlight