Secession is perfectly legal still, but the precedent of the civil war established that it cannot be undertaken unilaterally. To secede, a state would have to get congress to approve the cession, or do it by constitutional convention (the US constitution, with 3/4 of state legislatures approving the amendment, etc).