No, it is not illegal. There are laws protecting older employees (e.g. those age 40 or over) from being discriminated against, but no laws protecting younger employees from age-related discrimination; therefore, a minimum age for such a management position is legal.