For orthogonal matrix, $Q$, $QQ^T=I\tag{1}$ Wikipedia states that $1=\det(I)=\det\left(Q^\mathrm{T}Q\right)=\det\left(Q^\mathrm{T}\right)\det(Q)=\bigl(\det(Q)\bigr)^2$
But I can't understand how the last equality (on the right) follows: $\det\left(Q^\mathrm{T}\right)\det(Q)=\bigl(\det(Q)\bigr)^2$
Is it the case that $\det\left(Q^T\right)=\det\left(Q\right)$? This would imply $Q^T=Q$, but taking the inverse of $(1)$ implies that $Q^T=Q^{-1}\ne Q$ which is a contradiction.
Before asking this question I searched this site and read this strongly related question. In one of the comments and the answer it is stated right from the start that $\det M^T=\det M$, but I still don't understand how this can be true.