/* Shared legal footer links; all page-content styles are scoped to legal pages. */
.site-footer .footer-brand-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  flex-shrink: 0;
  gap: 24px;
}

.site-footer .footer-legal-links {
  display: flex;
  align-items: center;
}

.site-footer .footer-legal-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer .footer-legal-links a:hover,
.site-footer .footer-legal-links a[aria-current="page"] {
  color: var(--accent);
}

.site-footer .footer-legal-links a:focus-visible,
.legal-page a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.legal-page {
  background: var(--white);
}

.legal-content {
  width: min(960px, calc(100% - var(--page-gutter)));
  margin: var(--section-space) auto;
}

.legal-content h2 {
  margin: 36px 0 24px;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.2;
}

.legal-draft-notice {
  padding: 24px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
}

.legal-draft-notice strong {
  font-size: 18px;
}

.legal-draft-notice p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.legal-details {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  margin: 0 0 32px;
}

.legal-details dt,
.legal-details dd {
  min-width: 0;
  margin: 0;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.legal-details dt {
  padding-right: 28px;
  color: var(--ink);
  font-weight: 700;
}

.legal-details dd {
  color: var(--muted);
}

.legal-details address {
  font-style: normal;
}

.legal-details dt:last-of-type,
.legal-details dd:last-of-type {
  border-bottom: 0;
}

.legal-contact {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.legal-contact a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 640px) {
  .legal-details {
    grid-template-columns: 1fr;
  }

  .legal-details dt {
    padding: 24px 0 8px;
    border-bottom: 0;
  }

  .legal-details dd {
    padding: 0 0 24px;
  }
}
