I understand why the Spin operators in $x$, $y$ and $z$ direction are given by : $$ S_x = \begin{pmatrix} 0 &\hbar/2\\ \hbar/2 & 0 \end{pmatrix} \qquad S_y = \begin{pmatrix} 0 & -i\hbar/2\\ i\hbar/2 & 0 \end{pmatrix} \qquad S_z = \begin{pmatrix} \hbar/2 & 0\\ 0 & -\hbar/2 \end{pmatrix} $$
But why is the spin operator along an arbitrary direction $\vec{n}$ given by : $$S_{\vec{n}} = n_x \cdot{S_x} + n_y \cdot{S_y} +n_z \cdot{S_z} \qquad ? $$
I can see that it works along the $x$, $y$ and $z$ axis, and that is look like a scalar product between $\vec{n}$ and $ \textbf{S} = (S_x,S_y,S_z)$. I don't need a rigorous proof, a more physical explanation would be ok. I saw this post related, but no satisfactory answer.
EDIT:
Little precision, what is not clear for me is why I can do stuff with $\textbf{S}$ like if it was a vector. Also I would not be satisfied if you just say "it transforms like a vector". It is also not really clear what it would mean to take a scalar product with $\textbf{S}$.