Both your concerns are solved by modifying configuration of specific paragraph styles.
If you follow “usual” styling rules in Writer, your headings are formatting with one of Heading 1 in your text. When TOC is collected, the corresponding entries are styled Contents n in the TOC, e.g. Heading 1 => Contents 1, Heading 2 => Contents 2, etc.
Change some or all Contents n to create the hanging indent.
Similarly, footnotes are styled Footnote (surprising?). Modify the settings there to highligh the footnote number by adjusting left indent and first line indent. Note that the note number can be automatically followed by a tab to align start of the note on the left indent.
For better answer, mention OS name, exact LO version and save format. Most advices here are valid only when you save .odt. If you use DOCX, be prepared for (sometimes huge) discrepancies.