The new legislation will target access to social media, AI chatbots and online gaming for under-15s.