/* css/legal.css — shared styles for legal/help pages.
   Inherits the portal.html visual language: Lora serif headings, Inter body,
   warm cream background, terra accents. Designed for easy reading. */

html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f5f2ee;
  color: #1e2d2f;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ─────────────────────────────────────────── */
.legal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
  background: #fff;
  border-bottom: 1px solid rgba(20, 18, 14, 0.06);
}
.legal-logo {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 22px;
  color: #c2754e;
  text-decoration: none;
}
.legal-back {
  font-size: 13px; font-weight: 500;
  color: #57534e; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.legal-back:hover { color: #c2754e; }
.legal-back::before { content: "\2190"; font-size: 16px; }

/* ── Article ────────────────────────────────────────── */
.legal-main {
  flex: 1 1 auto;
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 28px 80px;
}
.legal-article-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: #c2754e;
  margin-bottom: 14px;
}
.legal-article h1 {
  font-family: 'Lora', serif;
  font-size: clamp(32px, 4.4vw, 44px);
  line-height: 1.15; margin: 0 0 12px;
}
.legal-article .legal-meta {
  font-size: 13px; color: #57534e; margin-bottom: 36px;
}
.legal-article h2 {
  font-family: 'Lora', serif;
  font-size: 22px; font-weight: 600;
  margin: 40px 0 14px;
  scroll-margin-top: 24px;
}
.legal-article h3 {
  font-family: 'Lora', serif;
  font-size: 17px; font-weight: 600;
  margin: 24px 0 10px;
}
.legal-article p, .legal-article li {
  font-size: 15.5px; color: #1e2d2f;
}
.legal-article a { color: #c2754e; }
.legal-article a:hover { text-decoration: underline; }
.legal-article ul, .legal-article ol {
  padding-inline-start: 22px;
  margin: 10px 0 14px;
}
.legal-article li { margin-bottom: 6px; }
.legal-article strong { color: #1e2d2f; font-weight: 600; }

.legal-callout {
  background: rgba(194,117,78,0.08);
  border-inline-start: 3px solid #c2754e;
  border-radius: 8px;
  padding: 14px 18px;
  margin: 22px 0;
  font-size: 14px;
  color: #57534e;
}
.legal-callout strong { color: #c2754e; }

/* ── FAQ accordion (used on help/help.html) ─────────── */
.faq-list { margin: 32px 0; }
.faq-item {
  background: #fff;
  border: 1px solid rgba(20,18,14,0.06);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .15s;
}
.faq-item:hover { border-color: rgba(194,117,78,0.3); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  width: 100%;
  background: transparent; border: 0; cursor: pointer;
  font-family: 'Lora', serif;
  font-size: 17px; font-weight: 600;
  color: #1e2d2f; text-align: start;
}
.faq-q::after {
  content: ""; flex-shrink: 0;
  width: 14px; height: 14px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e2d2f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") center/contain no-repeat;
  transition: transform .25s ease;
}
.faq-item.open .faq-q::after { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .35s cubic-bezier(.4,0,.2,1), opacity .25s ease, padding .35s cubic-bezier(.4,0,.2,1);
  padding: 0 22px;
  font-size: 15px;
  color: #1e2d2f;
  line-height: 1.6;
}
.faq-item.open .faq-a {
  max-height: 600px;
  opacity: 1;
  padding: 0 22px 18px;
}

/* ── Footer ─────────────────────────────────────────── */
.legal-footer {
  padding: 24px 28px;
  border-top: 1px solid rgba(20, 18, 14, 0.06);
  background: #fff;
  font-size: 13px;
  color: #6b7280;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}
.legal-footer a { color: #6b7280; text-decoration: none; }
.legal-footer a:hover { color: #1e2d2f; text-decoration: underline; }

@media (max-width: 600px) {
  .legal-header { padding: 12px 18px; }
  .legal-main { padding: 40px 20px 56px; }
  .legal-article h1 { font-size: 28px; }
  .legal-article h2 { font-size: 19px; }
  .legal-footer { padding: 18px; gap: 12px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-a, .faq-q::after { transition: none; }
}
