question: In what does the doctrine of legitimate expectations have roots?
sentence: The doctrine of legitimate expectation, which has its roots in the principles of legal certainty and good faith, is also a central element of the general principle of legal certainty in European Union law.