Hola, Americana.
Reading the webpage, the lawyers seem to be saying that being illegal is OK with Canada and the applicant can file " in the country in which the applicant is currently residing if (i) the applicant has at any point in the past lawfully resided in that country for a period of one (1) year or more ..." This I remember from when I was considering my own situation back in 2010. Basically, if you didn't at some point have status for at least a year, then you can't file and you must file in your home country. Does this make sense, people? I'd love to be wrong about this, but for that and other reasons, I actually went home and did everything from there.