Unless you are really unlucky, the cat will be fine. You could find that the "cat cover" is cracked which can be TIG welded for little money.
I own a 2.0i and had all this when i first bought it 5 years ago. The engine light (emissions) is notorious on these N46 engines so don't be fearful that you have bought a bad zed. Just buy a cheap code reader & you can see what the code is for & turn the light out. My zed suffered from this terribly at first and the code is always P040 Catalyst below threshold.
I overcame this problem when i realised that the N46 likes to be driven hard occasionally. I when possible, always take her up to at least 4000 revs through the gear range & very, very rarely see this light come on. Although on a rare occasion when stuck in traffic for a long period it will appear randomly with the same code. I have a couple of friends with the same engine & this is typical with theirs also.
You mention the idle is not perfect, this is also a very common characteristic on the N46 which can be sorted by having the valvetronic adaptations cleared, ISTA software can do this.
As mentioned, i have had mine for over 5 years & love it to bits. Like all older cars they have their foibles but it all adds up to their character, the only thing i don't like on mine is the measly 150bhp but its fast enough for me
Cheers, tug