/* ==========================================================================
   MECAS Techsolutions - Legal pages
   --------------------------------------------------------------------------
   Privacy Policy and Terms & Conditions. Neither is designed in the PDF, so
   this reuses the established page hero, type scale and rules rather than
   introducing anything new. One readable column, no invented components.
   ========================================================================== */

.legal {
  max-width: 76ch;
  margin-inline: auto;
}

.legal__meta {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-5);
  border-bottom: var(--border-w) solid var(--border);
  font-size: var(--fs-small);
  color: var(--ink-muted);
}

.legal h2 {
  margin-top: var(--space-7);
  margin-bottom: var(--space-4);
  font-size: var(--fs-h3);
  text-transform: uppercase;
}

/* The short blue rule that marks headings everywhere else on the site. */
.legal h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin-top: var(--space-3);
  background-color: var(--color-rule);
}

.legal h3 {
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
  font-size: var(--fs-h4);
  color: var(--ink-heading);
}

.legal p { margin-bottom: var(--space-4); }

.legal ul {
  margin: 0 0 var(--space-4);
  padding: 0;
  list-style: none;
}

.legal ul li {
  position: relative;
  padding-left: var(--space-5);
  margin-bottom: var(--space-2);
}

.legal ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background-color: var(--color-accent);
  border-radius: var(--radius-round);
}

/* Unresolved values stand out rather than blending into the copy, so none can
   reach production unnoticed. */
.legal [data-placeholder],
.placeholder {
  padding: 1px 6px;
  background-color: var(--blue-050);
  border-bottom: 2px solid var(--color-accent);
  font-weight: var(--fw-semibold);
  color: var(--ink-heading);
  white-space: nowrap;
}

.legal__toc {
  margin-bottom: var(--space-6);
  padding: var(--space-5);
  background-color: var(--surface-alt);
  border-radius: var(--radius-md);
}

.legal__toc h2 {
  margin-top: 0;
  margin-bottom: var(--space-3);
  font-size: var(--fs-h4);
}

.legal__toc h2::after { display: none; }

.legal__toc ol {
  margin: 0;
  padding-left: var(--space-5);
  columns: 2;
  column-gap: var(--space-6);
  font-size: var(--fs-small);
}

.legal__toc li { margin-bottom: var(--space-2); }

@media (max-width: 575.98px) {
  .legal__toc ol { columns: 1; }
}
