A court declared the arrest of Youth Akali Dal leader Jaskaranjit Singh illegal in a POCSO case, ordering his immediate release.