I have this document structure:
\documentclass[11pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[margin=1in]{geometry}
\usepackage{tabularx}
\usepackage{booktabs}
\usepackage{etoc}
%\usepackage{hyperref}
\etocsettocstyle{}{}
% Section entries: no number, normal font, dotted leaders
\etocsetstyle{section}{}{}{\noindent\normalfont\etocname\dotfill\etocpage\par}{}
\setcounter{tocdepth}{1}
\begin{document}
% no title, no space before/after ToC
\begin{tabularx}{\textwidth}{X|X}
\toprule
Author & Luke Skywalker \\
\midrule
Company & Star Wars Inc. \\
\midrule
Role & Jedi Knight \\
\midrule
Contents & \tableofcontents \\
\bottomrule
\end{tabularx}
\section{Section Title 1}
Section 1 content goes here.
\section{Section Title 2}
Section 2 content goes here.
\section{Section Title 3}
Section 3 content goes here.
\end{document}
That produce this look that i like:

However, if i want the table of content to be clickable, i can uncomment \usepackage{hyperref}. Unfortunately, doing so will disalign the toc with the other column:

How can i avoid hyperref to interact with the line spacing (At least in the context of the toc)?

\vspace*{-\topskip}\tableofcontents. Of course you shouldn't be using vertical rules along withbooktabshorizontal rules.booktabsin my actual project. However, can you clarufy why i would need to avoid using booktabs and hyperref together in the future? Thanks in advance!\usepackage[utf8]{inputenc}is now useless.