The queen is royal too: she cannot move or remain into check, and can be checkmated. Qhe has the right to castle with either rook.

Vernon R. Parton (1970).