Which of the following anatomical structures separates the thoracic cavity from the abdominopelvic cavity?

A. Diaphragm
B. Inguinal ligament
C. Peritoneal membrane
D. Heart