Section 35 of the Scotland Act. Scotland can have a democratically elected Parliament but Westminster will intervene if it doesn't like a bill passed in Holyrood.