Yes it is legal and they make it that way. Hence why the refusal letters are generic. Detailed, case-specific explanations would lead to legal challenges. By providing more generic reasons, IRCC aims to minimize potential legal complications.
So in the eyes of the IRCC you're perceived as an...