/* Legal pages — Privacy Policy (page-privacy-policy.php)
   and Terms of Service (page-terms-of-service.php).
   Shared by both templates; everything is namespaced .hs-legal__*. */

.hs-legal__hero {
  padding-bottom: clamp(36px, 4vw, 56px);
}

.hs-legal__lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--hs-slate);
  max-width: 62ch;
  margin: 24px 0 0;
}

/* Visible draft notice: structure awaiting verified company details. */
.hs-legal__draft {
  max-width: 76ch;
  margin: 28px 0 0;
  padding: 14px 18px;
  background-color: var(--hs-white);
  border-left: 3px solid var(--hs-orange);
  border-radius: 0 var(--radius-control) var(--radius-control) 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--hs-slate);
}

.hs-legal__draft strong {
  color: var(--hs-navy);
}

/* Document meta strip in the hero. */
.hs-legal__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  margin: 32px 0 0;
  border-top: 1px solid var(--hs-mist);
}

.hs-legal__meta-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--hs-mist);
}

.hs-legal__meta-row dt {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hs-slate);
}

.hs-legal__meta-row dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--hs-ink);
  overflow-wrap: break-word;
}

/* Anchored sections clear the sticky header when jumped to. */
.hs-legal__block {
  scroll-margin-top: 96px;
}

/* Section intro: heading left, note right (house pattern). */
.hs-legal__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 64px;
  align-items: end;
  margin-bottom: 36px;
}

.hs-legal__h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin: 0;
}

.hs-legal__intro-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--hs-slate);
  max-width: 56ch;
  margin: 0;
}

/* Readable measure for body copy inside the wide page container. */
.hs-legal__body {
  max-width: 700px;
}/* Report-style definition rows. */
.hs-legal__rows {
  background-color: var(--hs-white);
  border: 1px solid var(--hs-mist);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin: 0;
}

.hs-legal__row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 22px;
  border-top: 1px solid var(--hs-mist);
}

.hs-legal__row:first-child {
  border-top: 0;
}

.hs-legal__row dt {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hs-slate);
  padding-top: 3px;
}

.hs-legal__row dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--hs-ink);
  overflow-wrap: break-word;
}

.hs-legal__note {
  margin: 18px 0 0;
  padding-left: 16px;
  border-left: 2px solid var(--hs-mist);
  font-size: 14px;
  line-height: 1.7;
  color: var(--hs-slate);
}

/* Bracketed placeholders: unverified detail that must stay visible.
   Background and border derive from --hs-orange (accent only, never a surface). */
.hs-legal__ph {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background-color: #FFF7E8;
  border: 1px dashed rgba(245, 158, 11, 0.7);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--hs-ink);
}

/* In-page table of contents. */
.hs-legal__toc-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  margin: 0;
  padding: 0;
}

.hs-legal__toc-item {
  border-top: 1px solid var(--hs-mist);
}

.hs-legal__toc-link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-height: 44px;
  padding: 12px 0;
  color: var(--hs-navy);
  font-size: 15px;
  font-weight: 600;
}

.hs-legal__toc-link:hover {
  color: var(--hs-blue);
}

.hs-legal__toc-num {
  flex: none;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--hs-blue);
  font-variant-numeric: tabular-nums;
}

.hs-legal__toc-label {
  flex: 1 1 auto;
  min-width: 0;
}

/* Closing block: contact route, contents and the sister page. */
.hs-legal__closing {
  border-bottom: 0;
}

.hs-legal__closing-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px 56px;
}

.hs-legal__closing-actions {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.hs-legal__inline-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  color: var(--hs-blue);
}

/* Focus visibility for everything these templates render. */
.hs-legal a:focus-visible,
.hs-legal .hs-btn:focus-visible {
  outline: 2px solid var(--hs-blue);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Responsive: single column. */
@media (max-width: 900px) {
  .hs-legal__intro,
  .hs-legal__meta {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .hs-legal__intro {
    align-items: start;
  }

  .hs-legal__meta {
    gap: 0;
  }

  .hs-legal__closing-inner {
    flex-direction: column;
  }

  .hs-legal__closing-actions {
    width: 100%;
  }

  .hs-legal__closing-actions .hs-btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .hs-legal__row,
  .hs-legal__meta-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .hs-legal__row dt,
  .hs-legal__meta-row dt {
    padding-top: 0;
  }

  .hs-legal__toc-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .hs-legal__lead {
    font-size: 17px;
  }
}/* Legal document body: rendered from the page content when the owner supplies
   their own final text (see the content-first branch in the two legal templates). */
.hs-legal__doc {
  max-width: 780px;
}

.hs-legal__doc > :first-child {
  margin-top: 0;
}