If you purchased a flat built in the 2000s and possess the full property chain and legal registry papers, its legality depends on whether it was approved by municipal or revenue authorities at the time. Even if it's decades old, any construction deviating from approved plans is considered illegal. You may need to explore government amnesty schemes to regularise the flat if it wasn't initially approved or has unapproved additions.