yes it is illegal because age cannot be a bar (in civilised countries)unless there is a documented physical disability. You can not discriminate against people just because you think the health insurance will be expensive.