You can find the tangent line of a curve at a point $\alpha(t)=(\alpha_1(t),\alpha_2(t))$ by the formula $$ \det\begin{pmatrix} X-\alpha_1(t) & \alpha_1'(t) \\\ Y-\alpha_2(t) & \alpha_2'(t)\end{pmatrix} $$ (for the sake of completeness, with your curve it is the locus of $(X,Y)$ such that $-\sin t \; (\log \tan \frac{t}{2} +X-Y) +X \csc t-\cot t$).
Now it's only a matter of computation of the length of the segment between $\alpha(t)$ and the $Y$-axis intercept of the former line. Am I right?