It has joined a growing number of countries legislating to protect children and teenagers from the harmful effects of online platforms