/* ============================================================
   LEGAL PAGES  (privacy policy and similar long-form text)
   Uses the existing theme tokens so it follows light/dark mode.
   ============================================================ */

.legal-page {
  padding-block: clamp(3rem, 7vw, 6rem);
}

.legal-shell {
  max-width: 54rem;
  margin-inline: auto;
}

/* ---------- masthead ---------- */

.legal-head {
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--color-border, rgb(0 0 0 / 0.12));
}

.legal-head__eyebrow {
  display: block;
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent, #c8862c);
  margin-bottom: 0.9rem;
}

.legal-head__title {
  font-family: var(--font-display, Fraunces, Georgia, serif);
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  line-height: 1.1;
  font-weight: 500;
  color: var(--color-text, #14181f);
  margin: 0 0 1rem;
}

.legal-head__meta {
  font-size: 0.875rem;
  color: var(--color-text-muted, #5b6472);
  margin: 0;
}

/* ---------- callout ---------- */

.legal-callout {
  border: 1px solid var(--color-border, rgb(0 0 0 / 0.14));
  border-left: 3px solid var(--color-accent, #c8862c);
  background: var(--color-surface-offset, rgb(0 0 0 / 0.03));
  border-radius: 6px;
  padding: 1.35rem 1.5rem;
  margin-bottom: 3rem;
}

.legal-callout h2 {
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--color-text, #14181f);
  margin: 0 0 0.5rem;
}

.legal-callout p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text-muted, #5b6472);
  margin: 0;
}

/* ---------- body ---------- */

.legal-body > section {
  margin-bottom: 2.75rem;
  scroll-margin-top: 6rem;
}

.legal-body h2 {
  font-family: var(--font-display, Fraunces, Georgia, serif);
  font-size: 1.4rem;
  line-height: 1.25;
  font-weight: 500;
  color: var(--color-text, #14181f);
  margin: 0 0 0.9rem;
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
}

.legal-body h2 .legal-num {
  flex: none;
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent, #c8862c);
  letter-spacing: 0.04em;
  padding-top: 0.25rem;
}

.legal-body h3 {
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--color-text, #14181f);
  margin: 1.6rem 0 0.5rem;
}

.legal-body p,
.legal-body li {
  font-size: 1rem;
  line-height: 1.72;
  color: var(--color-text-muted, #4d5663);
}

.legal-body p {
  margin: 0 0 1rem;
}

.legal-body ul {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  list-style: none;
}

.legal-body ul li {
  position: relative;
  margin-bottom: 0.6rem;
}

.legal-body ul li::before {
  content: "";
  position: absolute;
  left: -1.15rem;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent, #c8862c);
}

.legal-body strong {
  color: var(--color-text, #14181f);
  font-weight: 650;
}

.legal-body a {
  color: var(--color-accent, #c8862c);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-body a:hover {
  color: var(--color-accent-hover, #a86f1f);
}

/* ---------- vendor / contact tables ---------- */

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.4rem 0 1.25rem;
  font-size: 0.94rem;
}

.legal-table th,
.legal-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.9rem 0.7rem 0;
  border-bottom: 1px solid var(--color-divider, rgb(0 0 0 / 0.08));
  line-height: 1.55;
}

.legal-table th {
  width: 12rem;
  font-family: var(--font-body, system-ui, sans-serif);
  font-weight: 650;
  color: var(--color-text, #14181f);
  white-space: nowrap;
}

.legal-table td {
  color: var(--color-text-muted, #4d5663);
}

@media (max-width: 34rem) {
  .legal-table th,
  .legal-table td {
    display: block;
    width: auto;
    white-space: normal;
    border-bottom: 0;
    padding: 0;
  }
  .legal-table th {
    padding-top: 0.9rem;
  }
  .legal-table td {
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--color-divider, rgb(0 0 0 / 0.08));
  }
}

/* ---------- office contact blocks ---------- */

.legal-offices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
  margin: 1.25rem 0 0.5rem;
}

.legal-office {
  border: 1px solid var(--color-border, rgb(0 0 0 / 0.12));
  border-radius: 6px;
  padding: 1.1rem 1.2rem;
}

.legal-office h3 {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.legal-office p {
  margin: 0 0 0.3rem;
  font-size: 0.94rem;
  line-height: 1.6;
}

.legal-office a {
  color: var(--color-accent, #c8862c);
  text-decoration: none;
}

.legal-office a:hover {
  text-decoration: underline;
}
