The Article 267 of the Treaty on the Functioning of the European Union (TFEU) provides:
The Court of Justice of the European Union shall have jurisdiction to give preliminary rulings concerning:
(a) the interpretation of the Treaties;
(b) the validity and interpretation of acts of the institutions, bodies, offices or agencies of the Union;
What are the reasons to declare a legal act of the EU (such as regulation or directive) invalid?
The Article 263 of the TFEU provides:
The Court of Justice of the European Union shall review the legality of legislative acts, of acts of the Council, of the Commission and of the European Central Bank, other than recommendations and opinions, and of acts of the European Parliament and of the European Council intended to produce legal effects vis-à-vis third parties. It shall also review the legality of acts of bodies, offices or agencies of the Union intended to produce legal effects vis-à-vis third parties.
What are the differences between the validity (under the Article 267) and the legality (under the Article 263)?