/* Legal / policy pages  --  readable long-form prose on the shared
   checkout-chrome header. Reuses tokens from styles.css. */

.legal-main {
  padding: 2.5rem 0 4rem;
}

.legal-doc {
  max-width: 820px;
  margin: 0 auto;
}

.legal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.legal-breadcrumb a { color: var(--deep-teal); }
.legal-breadcrumb a:hover { color: var(--deep-teal-strong); }

.legal-doc h1 {
  margin: 0 0 0.4rem;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.15;
}

.legal-updated {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-doc h2 {
  margin: 2.2rem 0 0.6rem;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-dark);
  scroll-margin-top: 90px;
}

.legal-doc h3 {
  margin: 1.4rem 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
}

.legal-doc p,
.legal-doc li {
  color: rgba(var(--textdark-rgb), 0.86);
  font-size: 1rem;
  line-height: 1.7;
}

.legal-doc ul,
.legal-doc ol {
  padding-left: 1.3rem;
  margin: 0.6rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.legal-doc a {
  color: var(--deep-teal);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-doc a:hover { color: var(--deep-teal-strong); }

.legal-doc strong { color: var(--text-dark); }

/* Bracketed placeholders the pharmacy owner must fill in. Subtle highlight
   so they're easy to spot while editing but not alarming if briefly live. */
.legal-fill {
  background: rgba(var(--primary-rgb), 0.18);
  border-bottom: 1px dashed var(--brand-secondary);
  padding: 0 0.15em;
  border-radius: 3px;
  font-style: normal;
}

.legal-note {
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  background: var(--background-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  color: var(--text-dark);
}

.legal-toc {
  margin: 1.5rem 0 2rem;
  padding: 1.2rem 1.4rem;
  background: var(--background-soft);
  border-radius: var(--radius-md);
}

.legal-toc h2 {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--deep-teal);
}

.legal-toc ol {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.95rem;
}
