/* ============================================================
   PurPaw — shared legal stylesheet (privacy + terms)
   Light theme: warm cream background, deep brown text
   ============================================================ */

.legal-page {
  background-color: #FAF6EF;
  color: #2E2419;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.legal-page * {
  box-sizing: border-box;
}

.legal-page a {
  color: #A16207;
  text-decoration: none;
}

.legal-page a:hover {
  color: #7C4B04;
}

.legal-page h1,
.legal-page h2,
.legal-page h3,
.legal-page h4 {
  line-height: 1.25;
  color: #2E2419;
  font-weight: 800;
}

.legal-page h2 {
  color: #A16207;
  font-size: 1.5rem;
  margin: 40px 0 14px;
  padding-top: 18px;
  border-top: 1px solid #E4D7C0;
}

.legal-page h3 {
  font-size: 1.15rem;
  color: #2E2419;
  margin: 26px 0 10px;
}

.legal-page p {
  margin: 0 0 16px;
  color: #2E2419;
}

.legal-page ul,
.legal-page ol {
  margin: 0 0 18px 24px;
  color: #2E2419;
}

.legal-page li {
  margin-bottom: 8px;
}

/* Legal header (div/header only, solid background) */
.legal-header {
  background-color: #2E2419;
  padding: 64px 24px 56px;
  text-align: center;
}

.legal-header .legal-eyebrow {
  display: inline-block;
  background-color: #C89B5A;
  color: #2E2419;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.legal-header h1 {
  color: #F3EBDD;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  margin: 0 0 12px;
}

.legal-header p {
  color: #C89B5A;
  max-width: 640px;
  margin: 0 auto;
}

.legal-header .legal-meta {
  color: #E8DCC8;
  font-size: 0.88rem;
  margin-top: 16px;
}

/* Legal content container */
.legal-content .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-content {
  padding: 56px 24px 72px;
}

.legal-content .legal-intro {
  background-color: #F3EBDD;
  border-left: 4px solid #A16207;
  border-radius: 10px;
  padding: 22px 26px;
  margin-bottom: 34px;
}

.legal-content .legal-intro p {
  margin: 0;
}

.legal-content .legal-intro p:last-child {
  margin: 0;
}

/* Table of contents */
nav.toc {
  background-color: #F3EBDD;
  border: 1px solid #E4D7C0;
  border-radius: 14px;
  padding: 26px 28px;
  margin-bottom: 40px;
}

nav.toc h2 {
  font-size: 1.05rem;
  margin: 0 0 14px;
  padding-top: 0;
  border-top: none;
  color: #2E2419;
  text-transform: uppercase;
  letter-spacing: 1px;
}

nav.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 32px;
}

nav.toc ol li {
  margin-bottom: 8px;
  break-inside: avoid;
}

nav.toc ol li a {
  color: #4A3A28;
  font-weight: 600;
  font-size: 0.92rem;
}

nav.toc ol li a:hover {
  color: #A16207;
}

/* Scope isolation: never let homepage section backgrounds leak */
.legal-page .legal-content section {
  background-color: transparent !important;
}

.legal-page section {
  scroll-margin-top: 20px;
}

/* Back to home link */
.legal-back {
  margin: 48px 0 0;
}

.legal-back a {
  display: inline-block;
  background-color: #A16207;
  color: #F3EBDD;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 10px;
}

.legal-back a:hover {
  background-color: #7C4B04;
  color: #F3EBDD;
}

/* Legal footer */
.legal-footer {
  background-color: #FAF6EF;
  border-top: 3px solid #A16207;
  padding: 40px 24px 44px;
  text-align: center;
}

.legal-footer .footer-brand {
  font-size: 1.3rem;
  font-weight: 800;
  color: #A16207;
  margin-bottom: 14px;
}

.legal-footer .footer-links a {
  color: #4A3A28;
  font-weight: 600;
  font-size: 0.92rem;
}

.legal-footer .footer-links a:hover {
  color: #A16207;
}

.legal-footer .footer-links .dot {
  color: #C89B5A;
  margin: 0 10px;
}

.legal-footer .footer-legal {
  color: #4A3A28;
  font-size: 0.86rem;
  margin-top: 14px;
}

@media (max-width: 640px) {
  nav.toc ol {
    columns: 1;
  }
}
