/* Legal / policy pages — Terms, Privacy, Refund, Contact.
   A clean readable article on the light ground, sharing the site's tokens + footer. */

.legal-nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246, 249, 247, 0.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(16, 41, 31, 0.08);
}
.legal-nav .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; gap: 16px;
}
.legal-nav .brand { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.legal-nav .fb-logo {
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px;
  background: linear-gradient(160deg, #16a06a, #10794f); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 1rem;
}
.legal-nav .fb-word { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: #12241c; }
.legal-nav .fb-word .brand-2 { color: var(--aqua-2, #16a06a); }
.legal-nav a.legal-home {
  font-size: 0.9rem; font-weight: 600; color: #4a6a5b; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px;
  transition: color .15s ease, background .15s ease;
}
.legal-nav a.legal-home:hover { color: #10794f; background: rgba(16, 121, 79, 0.08); }

.legal-wrap { max-width: 820px; margin: 0 auto; padding: 44px 22px 72px; }

.legal-hero { border-bottom: 1px solid rgba(16, 41, 31, 0.1); padding-bottom: 22px; margin-bottom: 30px; }
.legal-eyebrow {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: #16a06a; margin: 0 0 10px;
}
.legal h1 {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.1; color: #12241c; margin: 0 0 12px; letter-spacing: -0.01em;
}
.legal-updated { font-size: 0.85rem; color: #7f9a8c; font-family: var(--font-mono); }

.legal-toc {
  background: #fff; border: 1px solid rgba(16, 41, 31, 0.1); border-radius: 16px;
  padding: 18px 20px; margin-bottom: 34px;
}
.legal-toc h2 {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: #8fa397; margin: 0 0 12px;
}
.legal-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.legal-toc li { margin: 0 0 7px; font-size: 0.9rem; break-inside: avoid; }
.legal-toc a { color: #3f6b56; text-decoration: none; }
.legal-toc a:hover { color: #10794f; text-decoration: underline; }

.legal section { margin-bottom: 30px; scroll-margin-top: 76px; }
.legal h2.legal-h {
  font-family: var(--font-display); font-weight: 700; font-size: 1.28rem; color: #12241c;
  margin: 0 0 12px; display: flex; align-items: baseline; gap: 10px;
}
.legal h2.legal-h .num {
  font-family: var(--font-mono); font-size: 0.85rem; font-weight: 600; color: #16a06a;
}
.legal h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: #12241c; margin: 20px 0 8px; }
.legal p, .legal li { color: #33453d; font-size: 0.97rem; line-height: 1.72; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal ul li { margin: 0 0 7px; }
.legal a { color: #10794f; font-weight: 500; }
.legal strong { color: #12241c; font-weight: 600; }

.legal-callout {
  background: #f0f5f2; border: 1px solid rgba(16, 121, 79, 0.22); border-left: 4px solid #10794f;
  border-radius: 12px; padding: 16px 18px; margin: 0 0 22px;
}
.legal-callout p { margin: 0; color: #29473a; font-size: 0.95rem; }
.legal-callout.warn { background: #fff8ec; border-color: rgba(201, 154, 63, 0.3); border-left-color: #c99a3f; }
.legal-callout.warn p { color: #6b5220; }

.legal-contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 8px 0 26px;
}
.legal-contact-card {
  background: #fff; border: 1px solid rgba(16, 41, 31, 0.1); border-radius: 16px; padding: 20px;
}
.legal-contact-card .lc-label {
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: #8fa397; margin: 0 0 8px;
}
.legal-contact-card .lc-value { font-size: 1.05rem; font-weight: 600; color: #12241c; }
.legal-contact-card .lc-value a { color: #10794f; }
.legal-contact-card .lc-sub { font-size: 0.85rem; color: #7f9a8c; margin: 4px 0 0; }

@media (max-width: 620px) { .legal-toc ol { columns: 1; } }
