Let $x_1,\dots, x_n$ be the embeddings of $\mathcal O$ into $\overline{\mathbb Q}$. Every monomial in $x_1,\dots, x_n$ restricts to a character of $\mathcal O^\times$. If some polynomial in $x_1,\dots, x_n$ vanishes on units, then we get a linear relation among characters of $\mathcal O^\times$, unless two of the monomials in $x_1,\dots, x_n$ appearing in the polynomial give the same character of $\mathcal O^\times$. Thus all relations are generated by the relations of the form $\prod_{i=1}^n x_i^{d_i} - \prod_{i=1}^n x_i^{e_i}$ where these two monomials give the same character or equivalently by $1- \prod_{i=1}^n x_i^{e_i}$ for $e_i \in \mathbb Z$ where this monomial gives the trivial character.
Each complex conjugation element of the Galois group defines a permutation of the set $\{1,\dots,n\}$ of embeddings. If, for all units, we have $$ 1= \prod_{i=1}^n x_i^{e_i}$$ then we have $$ 1 = \prod_{i=1}^n x_i^{e_i} \overline{ \prod_{i=1}^n x_i^{e_i} } = \prod_{i=1}^n |x_i|^{ 2e_i } .$$ By Dirichlet's unit theorem, this can only happen if all the exponents on each real place are equal, and all the exponents on each complex place are double that. In other words, for each real place $i$ we must have $e_i=n$ for some constant $n$, and for each complex place $i$ we must have $e_i+ e_{\sigma{i}}=2n$, so altogether we must have $e_i + e_{\sigma(i)}=2n$ for all $i$.
This can only be no constant if the graph whose edges are $(i, \sigma(i))$ for all complex conjugations $\sigma$ has a bipartite connected component. In this case, because the graph is Galois-invariant, every component is bipartite, and because each connected graph is bipartite in at most one way, the graph of this set of functions is the number of components plus one.
We have to convert this information back into Galois theory, and then number theory. Because each vertex of the graph defines a part of its connected component, the stabilizer of a part contains the vertex stabilizer, hence corresponds to a subfield. Because each complex conjugation sends one part to the other part of the same graph, all complex conjugations in the Galois group of this field are equal, so it is a CM field. Moreover, the number of complex places of this field is the number of components (orbit-stabilizer theorem).
So we can see that the number of relations is at most the number of complex places of the maximum CM subfield, plus one. Is this exactly equal to the number of relations? Yes, because in such a CM field $K$ with totally real subfield $L$, a finite index subgroup of the unit group is contained in $L$, and so we have the one relation from $L$ plus $[L: \mathbb Q]$. Then we can pull these relations back to any extension of $K$ by the norm map.
Thus, for $\mathcal O$ the ring of integers of a number field $F$, $K$ the maximal CM subfield, $L$ its maximal totally real subfield, the Zariski closure of the units is the inverse image under $N_{F}^K$ of the Zariski closure of the units of $K$, which is a finite union of cosets of the norm one torus of $L$.