In Virginia's case, it's secession declaration: "This ordinance shall take effect and be an act of this day, when ratified by a majority of the voter of the people of this State cast at a poll to be taken thereon on the fourth Thursday in May next, in pursuance of a schedule hereafter to be enacted." Virginia was admitted to the confederacy weeks before it had legally seceded from the Union.
Thanks for admitting that State secession was indeed legal. Congratulations...
;>)