/* legal.css — shared styles for /terms /privacy /faq /contact (Workstream E).
   Builds only on sanga.css design tokens (cream/ink/accent/gold). No new colors. */

.legal-page { max-width: 760px; }

/* Breadcrumb */
.legal-breadcrumb { margin-bottom: 24px; }
.legal-breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.legal-breadcrumb a:hover { color: var(--accent); }
.legal-sep { margin-inline: 8px; color: var(--ink-faint); }

/* Header */
.legal-header { margin-bottom: 24px; }
.legal-header .t-h1 { margin: 8px 0; }

/* Body */
.legal-body { margin-top: 32px; }
.legal-section { margin-top: 32px; }
.legal-section .t-h3 { color: var(--ink); margin-bottom: 12px; }
.legal-section .t-body { color: var(--ink); margin-bottom: 12px; }
.legal-body a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}
.legal-body a:hover { color: var(--gold-deep); }

.legal-list { padding-left: 24px; margin: 8px 0 0; }
.legal-list li { margin-bottom: 8px; line-height: 1.7; }

/* Footnote / closing surface */
.legal-footnote {
  margin-top: 48px;
  padding: 24px;
  border-radius: var(--radius-lg, 12px);
  background: var(--cream-2);
  border: 1px solid var(--cream-3);
}
.legal-footnote a { color: var(--accent); }

/* ── FAQ ─────────────────────────────────────────────── */
.faq-list { margin-top: 32px; display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  border: 1px solid var(--cream-3);
  border-radius: var(--radius-lg, 12px);
  background: var(--cream-2);
  overflow: hidden;
}
.faq-item + .faq-item { margin-top: 0; }
.faq-q {
  width: 100%;
  text-align: left;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-serif, "Noto Serif TC"), serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .02em;
}
.faq-q:hover { color: var(--accent); }
.faq-q .faq-mark {
  flex-shrink: 0;
  font-family: var(--font-mono, "JetBrains Mono"), monospace;
  color: var(--accent);
  transition: transform .2s ease;
}
.faq-item[open] .faq-q .faq-mark { transform: rotate(45deg); }
.faq-a { padding: 0 24px 24px; color: var(--ink); line-height: 1.7; }
.faq-a a { color: var(--accent); border-bottom: 1px solid var(--gold); text-decoration: none; }
.faq-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

/* ── Contact ─────────────────────────────────────────── */
.contact-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.contact-card {
  background: var(--cream-2);
  border: 1px solid var(--cream-3);
  border-radius: var(--radius-lg, 12px);
  padding: 24px;
}
.contact-card .t-overline { margin-bottom: 8px; display: block; }
.contact-card .contact-value {
  font-family: var(--font-serif, "Noto Serif TC"), serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}
.contact-card a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--gold); }
.contact-card .t-body-sm { color: var(--ink-soft); margin-top: 8px; }
.contact-note { margin-top: 32px; }
