Yes, it's totally legal and the only way you can apply for a study permit when on a tourist permit. Send your application package, passport, a pre paid return UPS envelope to VAC office in Los Angeles. They will check your application and everything is okay they will forward it to the visa...