Even the website you linked says explicitly that it's not illegal for children to share a bedroom, even if they are over the age of 10 and of opposite sex. It's considered overcrowded for purposes of various statistics but it's not illegal in the slightest.