For a nice curve $C$ which is a boundary of a smooth surface $D$, Stokes' theorem says that
$$\begin{align*} \oint_C \mathbf{F}\cdot d \mathbf{s} = \iint_D (\nabla \times \mathbf{F} )\cdot d\mathbf{A} \end{align*}$$
However, I don't think I understand exactly what is going on with the $d\mathbf{A}$ term. I would think that it is the vector of magnitude differential area $dA$ and direction $\hat{n}$, where $\hat{n}$ is the unit vector in the direction perpendicular to the orientation of $dA$. However, by reading practice problems online, I see that this is not the case. What exactly is the definition of this $d\mathbf{A}$?
In addition, many sources online show that after evaluating the dot product $(\nabla \times \mathbf{F} )\cdot \mathbf{A}$ (no $dA$ term), the surface integral is magically done only in the $xy$ plane, rather than any other randomly defined plane. Is this legal?