It is illegal for a child to buy a 12, 16 or 18 rated game in a shop but this law does not apply online.