Since its an contest it is different from sweepstakes laws and yes the contest is legal according to CA laws