All rights and obligations of passengers and railway companies are laid down in a European law (Regulation 2021/782). This law replaces the European Regulation 1371/2007, which was in force until 06/06/2023.The railways can always do more than what is required, but never something which is worse for you.

Regulation 2021/782