Postgres foreign key to a foreign key
If A is in one-to-zero-to-one relation with B, then B inherits its primary key from A:

If B is in one-to-zero-to-one relation with C, then C inherits its primary key from B, which is the primary key of A:

Nothing out of sort here, this is perfectly acceptable.