Did China have a legal system that made the emperor
accountable to any temporal authority? (As a legal matter, not simply a practical one.) In the received political systems of the West, authority has at least been nominally shared for millennia, albeit across varying dimensions and with brief lapses into absolute rule.
For example, while as a practical matter the Roman Catholic Pope's role during the Holy Roman Empire was largely constrained to spiritual and religious matters, the Pope nonetheless retained significant secular authority (e.g. over lands, etc) that the Emperor was obliged to respect. Failing to do so would result in illegality. Likewise the Emperor was at least in principle equal with other monarchs in Europe, so had obligations viz-a-viz them that couldn't be unilaterally skirted. Contrast that with the Westphalian system, where legal sovereignty is absolute within a territorial domain and where failure to respect an interstate obligation doesn't necessarily manifest as any kind of domestic illegality. Thus, when a state violates a treaty there's no expectation that its citizens construe the violation as illegitimate and to act and be responsible accordingly. (Modern international human rights theory being a very recent exception.)
I know Chinese legal, political, and religious systems were rich and sophisticated, but AFAIU in Imperial China, which accounts for most of the past 2000 years of mainland Chinese political history, the emperor was legally accountable to no temporal authority. Though, of course, it behooved emperors to abstain from exercising that absolute authority, obey legal and other norms, and adhere to their heavenly mandate.
It's an important distinction because it reflects cultures' (and thus its peoples') conceptions of power and legitimacy, which in turn directly constrains what is practically achievable by authority figures within and without their domain. It's no accident the Westphalian system of states arose in the West, nor the successful, widespread systemization of democratic political systems. Similarly, it's not surprising why Westerns in particular (which is not to say uniquely) would find interesting such an abstruse question regarding the exoneration of Dante.