/* Terms + Privacy — built on css/index.css */

.chapter {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--terra);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.chapter::before {
  content: '';
  width: 34px;
  height: 1px;
  background: var(--terra);
  opacity: 0.7;
}

.legal-head {
  padding: 0 var(--section-x) 56px;
  background: var(--cream);
  border-bottom: 1px solid var(--hair);
}

.legal-head__inner {
  max-width: 760px;
  margin: 0 auto;
}

.legal-head .chapter {
  margin-bottom: 18px;
}

.legal-head h1 {
  max-width: none;
  font-size: var(--h1-size);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.legal-head h1 em {
  font-style: italic;
  color: var(--terra);
}

.legal-head__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: 16px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-head__meta strong {
  color: var(--ink);
  font-weight: 500;
}

.legal-doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px var(--section-x) 80px;
}

.legal-article section {
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--hair);
  scroll-margin-top: calc(var(--nav-height) + 16px);
}

.legal-article section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-article .sec-num {
  display: block;
  margin-bottom: 8px;
  color: var(--terra);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.legal-article h2 {
  margin-bottom: 14px;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.12;
  letter-spacing: -0.016em;
}

.legal-article h2 em {
  font-style: italic;
  color: var(--terra);
}

.legal-article h3 {
  margin: 20px 0 8px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.008em;
  line-height: 1.25;
}

.legal-article h3:first-of-type {
  margin-top: 0;
}

.legal-article p {
  margin-bottom: 10px;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
  opacity: 0.92;
}

.legal-article ul {
  margin: 8px 0 12px;
  padding: 0;
  list-style: none;
}

.legal-article ul li {
  position: relative;
  margin-bottom: 6px;
  padding-left: 18px;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.42;
  color: var(--ink);
  opacity: 0.92;
}

.legal-article ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 1px;
  background: var(--terra);
}

.legal-article strong {
  font-weight: 600;
  opacity: 1;
}

.legal-article a {
  color: var(--terra);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.legal-defn {
  margin-bottom: 8px;
  padding: 12px 16px;
  border-left: 3px solid var(--terra);
  border-radius: 0 4px 4px 0;
  background: var(--bone);
}

.legal-defn p {
  margin: 0;
  font-size: 13px;
  line-height: 1.42;
}

.legal-defn .term {
  font-weight: 600;
  font-style: italic;
  color: var(--terra);
  opacity: 1;
}

.legal-callout {
  margin: 14px 0;
  padding: 14px 16px;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: var(--bone);
}

.legal-callout__label {
  margin-bottom: 6px;
  color: var(--terra);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.legal-callout p {
  margin: 0;
  font-size: 13px;
  line-height: 1.42;
}

.legal-notice {
  margin: 14px 0;
  padding: 14px 16px;
  border: 1px solid #e8cba4;
  border-radius: var(--radius);
  background: #fff6eb;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.42;
}

.legal-notice strong {
  color: var(--terra-dk);
}

.legal-address {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: var(--bone);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.42;
  font-style: normal;
}

.legal-address strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .legal-head {
    padding-bottom: 44px;
  }

  .legal-doc {
    padding: 40px var(--section-x) 64px;
  }
}

@media (max-width: 720px) {
  .legal-head {
    padding-bottom: 32px;
  }

  .legal-head h1 {
    max-width: none;
    font-size: 32px;
    line-height: 1.22;
  }

  .legal-head .chapter,
  .legal-head__meta {
    font-size: 14px;
  }

  .legal-article p,
  .legal-article ul li {
    font-size: 16px;
    line-height: 1.6;
  }

  .legal-article h2,
  .legal-article h3 {
    overflow-wrap: anywhere;
  }
}
