/* ============================================================
   LEGAL / ABOUT PAGES — MommaTrip redesign skin
   Loaded only on /about, /terms, /privacy, /refunds via
   base.html's extra_css block. Tokens come from styles.css
   (redesign palette + legacy aliases). See ui-redesign/PORT-CONTRACT.md.
   ============================================================ */

.page-kicker {
  margin: 0 0 10px;
  color: var(--coral-dark);
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.page-kicker::before {
  content: '';
  width: 18px;
  height: 3px;
  display: inline-block;
  margin: 0 8px 3px 0;
  border-radius: 99px;
  background: currentColor;
}

.paper-card {
  border: 2px solid var(--ink);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

/* ── About ─────────────────────────────────────────────────── */
.about-page {
  width: min(1120px, calc(100% - 32px));
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  margin-inline: auto;
  padding: clamp(36px, 6vw, 78px) 0 90px;
}
.about-card {
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  overflow: hidden;
  padding: clamp(22px, 4vw, 52px);
}
.about-portrait {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--mint-light);
  box-shadow: 7px 8px 0 var(--ink);
}
.about-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 640 / 807;
  object-fit: cover;
  object-position: center top;
}
.about-copy {
  min-width: 0;
  max-width: 68ch;
  margin-inline: auto;
  text-align: center;
}
.about-copy h1 {
  margin: 8px 0 24px;
  color: var(--ink-deep);
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.04;
  text-wrap: balance;
}
.about-copy > p:not(.page-kicker) { margin: 0 auto 20px; color: var(--muted); }
.about-contact {
  display: flex;
  justify-content: center;
  padding-top: 4px;
  overflow-wrap: anywhere;
  font-size: .84rem;
  font-weight: 800;
}

.about-origin { overflow: hidden; padding: 0; }
.about-origin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  align-items: center;
}
.about-origin-copy { min-width: 0; padding: clamp(30px, 5vw, 58px); }
.about-origin-copy h2 {
  max-width: 13ch;
  margin: 14px 0 24px;
  color: var(--ink-deep);
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.8vw, 3.8rem);
  font-weight: 400;
  line-height: 1.04;
  text-wrap: balance;
}
.about-origin-copy > p:not(.page-kicker) { max-width: 62ch; color: var(--muted); line-height: 1.68; }
.about-pull-quote {
  margin: 28px 0;
  border-left: 5px solid var(--sun);
  padding: 4px 0 4px 20px;
  color: var(--ink-deep);
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.8vw, 2.1rem);
  line-height: 1.25;
}
.about-origin-copy .about-origin-close { margin-top: 26px; color: var(--ink-deep); }
.about-plane {
  min-width: 0;
  margin: 24px 24px 24px 0;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--ink-deep);
  box-shadow: 7px 8px 0 var(--mint);
}
.about-plane picture { display: block; }
.about-plane img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 780 / 520;
  object-fit: cover;
}
.about-plane figcaption {
  padding: 14px 18px;
  color: var(--mint-light);
  font-family: var(--mono);
  font-size: .7rem;
  line-height: 1.45;
}

/* ── Legal ─────────────────────────────────────────────────── */
.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: 54px; justify-content: center; align-items: start; }
.legal-nav { position: sticky; top: calc(var(--nav-height) + 26px); display: grid; gap: 6px; }
.legal-nav a { min-height: 48px; display: flex; align-items: center; border-radius: 10px; padding: 8px 12px; color: var(--muted); font-weight: 800; text-decoration: none; }
.legal-nav a.is-active { border: 1.5px solid var(--ink); background: var(--sun-soft); color: var(--ink); }
.legal-document { padding: clamp(24px, 5vw, 48px); }
.legal-document h1 { margin: 0 0 8px; font-family: var(--display); font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 400; line-height: 1.05; }
.legal-document h2 { margin: 34px 0 10px; font-family: var(--display); font-size: 1.3rem; font-weight: 400; }
.legal-document p, .legal-document li { color: var(--muted); }
.legal-updated { border-bottom: 1px dashed var(--line-strong); padding-bottom: 20px; margin-bottom: 4px; color: var(--muted); font-family: var(--mono); font-size: .74rem; }

/* ── Contact / report-a-bug ────────────────────────────────── */
.contact-page {
  width: min(680px, calc(100% - 32px));
  margin-inline: auto;
  padding: clamp(36px, 6vw, 78px) 0 90px;
}
.contact-card { padding: clamp(24px, 5vw, 48px); }
.contact-card h1 {
  margin: 8px 0 18px;
  color: var(--ink-deep);
  font-family: var(--display);
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  font-weight: 400;
  line-height: 1.05;
}
.contact-card > p { margin: 0 0 24px; color: var(--muted); }
.contact-error {
  margin: 0 0 20px;
  border: 1.5px solid var(--coral-dark);
  border-radius: 10px;
  background: var(--sun-soft);
  padding: 12px 16px;
  color: var(--ink-deep);
  font-weight: 700;
}
.contact-form { display: grid; gap: 18px; margin-bottom: 24px; }
.contact-form .form-label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .03em;
}
.contact-form textarea.input { min-height: 140px; resize: vertical; }
/* Honeypot — off-screen (not display:none, so it still occupies real DOM/CSS
   space that only a scripted bot would fill), out of tab order and
   autofill via tabindex/autocomplete on the input itself. */
.contact-hp {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  left: -9999px;
}
.contact-thanks { display: grid; gap: 18px; }
.contact-thanks p { margin: 0; color: var(--muted); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 760px) {
  .legal-layout, .about-origin-grid { grid-template-columns: 1fr; gap: 25px; }
  .legal-nav { position: static; grid-template-columns: repeat(3, 1fr); }
  .legal-nav a { justify-content: center; padding-inline: 6px; text-align: center; }
  .about-page { width: min(100% - 24px, 620px); padding: 28px 0 68px; }
  .about-card { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: clamp(18px, 6vw, 34px); }
  .about-portrait { max-width: 280px; }
  .about-copy h1 { font-size: clamp(2.35rem, 12vw, 3.45rem); }
  .about-plane { order: -1; margin: 18px 18px 0; }
}
@media (max-width: 430px) {
  .legal-document { padding: 22px 18px; }
}
