3. The removal or the retention of a child is to be considered wrongful, within the meaning of this Act, where it is in breach of rights of custody attributed to one or several persons or bodies under the law of Québec or of the designated State in which the child was habitually resident immediately before the removal or retention and where, at the time of removal or retention, those rights were actually exercised by one or several persons or bodies or would have been so exercised but for the removal or retention.
The rights of custody mentioned in the first paragraph may arise in particular by operation of law, or by reason of a judicial or administrative decision, or by reason of an agreement having legal effect under the law of Québec or of the designated State.