Creating a legal style of case with line at bottom and in the middle

I believe this should be a rather easy task.

Before continuing, I recommend you:

  • Format this post, see How to post in the Questions category.
  • For a visual question like this, it’s helpful to attach images.
  • Add whether what you have so far is able to compile.
    • Or, if you for some reason can’t check that, mention this was made by AI, if it’s the case. I bring that up because it’s not the first time wrong quotes were used. Though I could be wrong and it’s automatically formatted like that by the forum.

Using a grid should achieve what I assume is what you’re asking for:

#set par(justify: true)
#show heading.where(level: 1): set align(center)

#let field(name) = grid(
  columns: 1fr,
  align: right,
  v(2em),
  line(length: 100%),
  smallcaps(name),
)

#grid(
  columns: (1fr, 1fr),
  inset: 1em,
  align: center + horizon,
  grid.cell(
    stroke: (right: 1pt, bottom: 1pt)
  )[
    #field[Plaintiff]
    vs.
    #field[Defendant]
  ],
  [
    C A. No: CV-xxxxxx=xx
  ],
)

= Complaint introduction

#lorem(50)
Output

1 Like