Who is the legal heir?

Civil law Article 882 Inheritance shall commence upon the death of the deceased.

The person who inherits the rights and obligations of the deceased is called the heir. Civil law defines the range of heirs.

It’s quite difficult to understand.I made it on a hypertext-structured page, as shown below.