"There" probably wasn't.
If the North thought that the South did not have a legal basis for secession, why didn't they take the seceeded states to court in an effort to bring them back into the union? Why did they instead resort to force of arms?
OK, it's two questions.