On algebraic curves over real closed fields. I