I used discrete curve lines connected to each other but in the end it created a boundary between them. In the picture, I added Curve to Mesh with Curve Circle
I sincerely apologize that my nodes are so messy and unclear. But basically I'm trying to Instance on Points the new Curve Lines to the end points of the original Curve Lines and rotate it $90°$.
I hope there is a way to make a single curve with a square spiral shape!