/* ============================================
   LEGAL — terms.html, privacy.html
   Shared layout for the two legal text pages.
   ============================================ */

/* ----- HERO ----- */
.hero {
  padding: 130px 0 60px;
  background: linear-gradient(165deg, var(--charcoal) 0%, #2a2a2a 50%, var(--ink) 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    radial-gradient(circle at 25% 45%, var(--white) 1px, transparent 1px),
    radial-gradient(circle at 75% 25%, var(--white) 1px, transparent 1px);
  background-size: 60px 60px, 80px 80px;
}

.hero-content { position: relative; z-index: 2; }
.hero .section-label { color: rgba(255,255,255,0.4); }

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300;
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.hero h1 strong { font-weight: 700; }

.hero .effective {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

/* ----- LEGAL CONTENT ----- */
.legal {
  padding: 80px 0 100px;
  background: var(--white);
  line-height: 1.85;
}

.legal-container {
  /* ~78ch measure for comfortable long-form legal reading (was 820px ≈ 90ch). */
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-intro {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 32px;
}

.legal h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin: 40px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
  letter-spacing: -0.01em;
}

.legal h2 .num {
  color: var(--accent);
  margin-right: 10px;
  font-weight: 700;
}

.legal h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  margin: 20px 0 8px;
  letter-spacing: -0.01em;
}

.legal p {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 14px;
}

.legal ul.bullets {
  list-style: disc;
  padding-left: 24px;
  margin: 8px 0 18px;
}

.legal ul.bullets li {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 4px;
}

.legal a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-tint-2);
  transition: border-color var(--t-base) var(--ease-soft);
}

.legal a:hover { border-bottom-color: var(--accent); }

.legal-contact {
  background: var(--light-gray);
  padding: 24px 28px 24px 32px;
  border-radius: var(--r-md);
  margin-top: 16px;
  position: relative;
  overflow: hidden;
}

.legal-contact::before {
  content: '';
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--warm), var(--warm-soft));
  border-radius: var(--r-pill);
}

.legal-contact p {
  margin-bottom: 4px;
}

.legal-closing {
  margin-top: 40px;
  padding: 28px;
  background: linear-gradient(135deg, var(--charcoal) 0%, #18243a 100%);
  color: var(--white);
  border-radius: var(--r-lg);
  text-align: center;
}

.legal-closing h3 {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.legal-closing p {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  margin: 0;
}

/* ----- RESPONSIVE -----
   The file previously had no media queries, so phones inherited desktop
   hero/section padding and heading sizes. Scale them down below 640px. */
@media (max-width: 640px) {
  .hero { padding: 96px 0 44px; }
  .legal { padding: 48px 0 64px; }
  .legal h2 { font-size: 1.1rem; margin: 28px 0 12px; }
  .legal h3 { font-size: 0.96rem; }
}
