/* =========================================================
   Polymathic Group — Law Office page
   Extends styles.css. The overview and highlights sections use the shared
   .prod-* product page components; the rules below cover the sections that
   remain specific to this page.
   ========================================================= */

.law-sheet {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(246, 244, 238, 0.96) 100%
  );
}

.law-workflow,
.law-related {
  padding: var(--section-space) 0;
}

/* Module cross-links inside the overview bullet list. */
.prod-bullets a {
  color: var(--navy-900);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(169, 132, 52, 0.4);
  text-underline-offset: 3px;
}

.prod-bullets a:is(:hover, :focus-visible) {
  color: var(--brass);
  text-decoration-color: currentColor;
}

/* =========================================================
   Workflow
   ========================================================= */

.law-workflow {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.law-workflow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--content-gap);
}

.law-workflow h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 600;
  line-height: 1.2;
}

.law-workflow-copy {
  position: relative;
  padding: 2px 0 2px 30px;
}

.law-workflow-copy::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: var(--line);
  content: "";
}

.law-workflow-copy::after {
  position: absolute;
  top: 0;
  left: -1px;
  width: 3px;
  height: 52px;
  background: var(--brass);
  content: "";
}

.law-workflow-copy p {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.law-workflow-copy p + p {
  margin-top: 18px;
}

/* =========================================================
   Related modules
   ========================================================= */

/* Plain paper under the white related-module cards, between the white band
   above and the pale brass closing band. */
.law-related {
  background: var(--paper);
}

.law-related .card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* =========================================================
   Responsive layout
   ========================================================= */

@media (max-width: 860px) {
  .law-workflow-grid {
    grid-template-columns: 1fr;
  }

  .law-workflow-copy {
    margin-top: 2px;
    padding: 24px 0 0;
  }

  .law-workflow-copy::before {
    top: 0;
    right: 0;
    bottom: auto;
    width: auto;
    height: 1px;
  }

  .law-workflow-copy::after {
    top: -1px;
    left: 0;
    width: 52px;
    height: 3px;
  }
}

@media (max-width: 720px) {
  .law-related .card-grid {
    grid-template-columns: 1fr;
  }
}
