The point that you appear not to be grasping, Naomi, is that the government I am describing will very probably not be a Tory one! And that is my devout wish, which is certainly as valid as yours to be free of the EU.
And, just as the current UK government is perfectly free to create legislation which applies solely to the UK, so will a Scottish government be perfectly free to create legislation which applies solely to an independent Scotland.
Most governments are subject to 'rules' created by international bodies of one sort or another...on arms, trade, security and so forth. Consequently, if Scotland became a part of the EU, why would it be a problem for Scots to accept EU rules, just as the UK has been doing for four decades? Or are you under the impression that - once free of the EU - Britain will be as free as a bird to ignore any of these it does not like?