There’s no legislation against them as far as I’m aware, think it’s more widespread in Spain as, given the comparative weakness of their lower tiers, they haven’t been able to utilise the domestic loan market for their promising kids in the same way English clubs have. They kind of operate more on those terms tbh.
But yeah, I can’t immediately think of any actual examples for domestic transfers tbh.