Generalized Landau theory for continuous phase transitions