I would like to format something using tabularx where the first row has a column starting at the left margin and one starting at the right, and the following rows being only one column spanning the entire text width allowing linebreaks in the text. Below is my code:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{multicol}
\usepackage{tabularx}
\begin{document}
\section{Introduction}
\begin{flushleft}
\begin{tabularx}{\textwidth}{@{}X @{\extracolsep{\fill}} r @{}}
Text beginning at left margin & Something at right margin \
\hline
Here is some text that can get longer and longer until it causes a linebreak eventually & \
\textit{Some closing text that would go to the next line soon because of the cell to the right} & \
\end{tabularx}
\end{flushleft}
\begin{flushleft}
\begin{tabularx}{\textwidth}{@{}X @{\extracolsep{\fill}} r @{}}
Text beginning at left margin & Something at right margin \
\hline
\multicolumn{2}{p{\textwidth}}{Here is some longer sentence that goes past the original column on the right } \
\multicolumn{2}{p{\textwidth}}{\textit{Here is some text that can get longer and longer and longer and longer and longer until it causes a linebreak eventually}} \
\end{tabularx}
\end{flushleft}
\end{document}
In the picture below, the top part looks as expected, however, the bottom two rows do not have their columns merged.
When I try to do it with the bottom code, I first notice an indentation of the 2nd and 3rd row. Does that come from the multicolumn command? How do I modify the indentation? Also, the text in these rows exceeds the right page margin when using \textwidth as the width of p column. If I a length that is equal top the paperwidth minus the margins, it works. What is going on here?
Also, I am happy about alternative suggestions to format.

