Under British law, only descendants of Sophia are in line for the throne. They must additionally not be Catholics, not marry to Catholics and get permission from the British monarch for any marriage they make. Presently there are almost 5000 descendants of Sophia although not all are in the line of succession. Additionally anyone in the line of succession has automatic British citizenship, despite the fact that most of them are German nationals.