/* ============================================================
   MCP WIKI — content & legal pages (about / compliance / privacy / contact)
   ============================================================ */

/* page hero */
.page-hero { padding: 84px 0 26px; }
.page-hero .kicker { margin-bottom: 22px; }
.page-hero h1 {
  font-family: var(--serif); font-weight:400; line-height:1.0; letter-spacing:-.015em;
  font-size: clamp(44px, 6vw, 84px);
}
.page-hero h1 em { font-style:italic; color: var(--terra); }
.page-hero .lead { margin-top: 24px; font-size: clamp(18px,2vw,22px); }
.page-hero .meta { margin-top: 22px; font-family: var(--mono); font-size:13px; color: var(--muted); }

/* prose */
.prose { max-width: 70ch; }
.prose h2 { font-family: var(--serif); font-weight:400; font-size: 34px; letter-spacing:-.01em; margin: 52px 0 0; scroll-margin-top: 100px; }
.prose h3 { font-size: 19px; font-weight:600; margin: 30px 0 0; }
.prose p { color: var(--ink-soft); font-size: 16.5px; line-height:1.7; margin-top: 16px; }
.prose p a { color: var(--terra); text-decoration: underline; text-underline-offset: 3px; }
.prose ul { margin: 16px 0 0; padding-left: 0; list-style: none; display:flex; flex-direction:column; gap: 12px; }
.prose ul li { position: relative; padding-left: 26px; color: var(--ink-soft); font-size: 16px; line-height:1.6; }
.prose ul li::before { content:""; position:absolute; left:4px; top:11px; width:7px; height:7px; border-radius:2px; background: var(--terra); transform: rotate(45deg); }
.prose ul li b { color: var(--ink); }
.prose .note {
  margin-top: 22px; background: var(--surface); border:1px solid var(--line);
  border-left: 3px solid var(--terra); border-radius: 10px; padding: 18px 22px;
}
.prose .note p { margin-top: 0; font-size: 15.5px; }
.prose .note p + p { margin-top: 10px; }

/* legal layout with sticky TOC */
.legal-layout { display:grid; grid-template-columns: 220px 1fr; gap: 64px; align-items:start; padding-bottom: 100px; }
.toc { position: sticky; top: 100px; }
.toc h5 { font-family:var(--mono); font-size:11px; letter-spacing:.12em; text-transform:uppercase; color: var(--muted); margin-bottom: 14px; }
.toc a { display:block; font-size:14px; color: var(--ink-soft); padding: 7px 0; border-left:2px solid transparent; padding-left:14px; margin-left:-14px; transition: color .15s, border-color .15s; }
.toc a:hover { color: var(--ink); }
.toc a[data-active="true"] { color: var(--terra); border-left-color: var(--terra); font-weight:600; }

/* about: values grid */
.values { display:grid; grid-template-columns: repeat(3,1fr); gap: 18px; padding-bottom: 40px; }
.value { padding: 26px 24px; background: var(--surface); border:1px solid var(--line); border-radius: var(--r-lg); }
.value .vn { font-family:var(--mono); font-size:12px; color: var(--terra); letter-spacing:.06em; }
.value h3 { font-family:var(--serif); font-weight:400; font-size: 24px; margin: 14px 0 0; letter-spacing:-.01em; }
.value p { color: var(--ink-soft); font-size:15px; margin-top:10px; line-height:1.55; }

/* about: stat band reuse .stats from sections.css */
.about-band { display:grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items:center; padding: 70px 0; }
.about-band .lead { font-size: 19px; }

/* principles list (compliance highlights) */
.principles { display:grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 30px 0 10px; }
.principle { padding: 22px 22px; background: var(--surface); border:1px solid var(--line); border-radius: var(--r); display:flex; gap:14px; }
.principle .pi { width:38px; height:38px; flex:none; border-radius:10px; display:flex; align-items:center; justify-content:center; background: color-mix(in srgb,var(--terra) 12%, var(--surface-2)); color:var(--terra); border:1px solid color-mix(in srgb,var(--terra) 24%, transparent); }
.principle .pi svg { width:20px; height:20px; }
.principle h4 { font-size: 16.5px; font-weight:600; }
.principle p { color: var(--ink-soft); font-size:14.5px; margin-top:6px; line-height:1.55; }

/* contact */
.contact-layout { max-width: 720px; margin: 0 auto; padding-bottom: 100px; }
.form-card { background: var(--surface); border:1px solid var(--line); border-radius: var(--r-lg); padding: 32px 32px 34px; }
.field-row { display:grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; margin-top: 18px; }
.field-row:first-child { margin-top: 0; }
.fld { margin-top: 18px; display:flex; flex-direction:column; gap:8px; }
.field-row .fld { margin-top: 0; }
.form-card > .fld:first-child { margin-top: 0; }
.fld label { font-size: 13.5px; font-weight:600; color: var(--ink); }
.fld label .opt { color: var(--muted); font-weight:400; font-family:var(--mono); font-size:11px; }
.fld input, .fld select, .fld textarea {
  font-family: var(--sans); font-size: 15px; color: var(--ink);
  background: var(--surface-2); border:1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; transition: border-color .15s, box-shadow .15s; width:100%;
}
.fld textarea { resize: vertical; min-height: 120px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 3px color-mix(in srgb,var(--terra) 16%, transparent); }
.form-card .btn { width:100%; justify-content:center; margin-top: 24px; }
.form-ok { display:none; margin-top: 18px; padding: 14px 16px; border-radius:10px; background: color-mix(in srgb,var(--olive) 12%, var(--surface-2)); border:1px solid color-mix(in srgb,var(--olive) 30%, transparent); color: var(--olive); font-size:14.5px; }
.form-ok[data-show="true"] { display:block; }

/* ---------- sign in ---------- */
.auth-wrap { min-height: calc(100vh - 70px); display:flex; align-items:center; justify-content:center; padding: 60px 20px 80px; }
.auth-card { width:100%; max-width: 440px; background: var(--surface); border:1px solid var(--line); border-radius: var(--r-lg); padding: 42px 38px 38px; box-shadow: var(--shadow); }
.auth-card .mark { width: 44px; height: 44px; margin-bottom: 24px; }
.auth-card h1 { font-family: var(--serif); font-weight:400; font-size: 36px; line-height:1.05; letter-spacing:-.012em; }
.auth-card h1 em { font-style: italic; color: var(--terra); }
.auth-sub { color: var(--ink-soft); font-size: 15px; margin-top: 14px; line-height: 1.6; }
.auth-card form { margin-top: 26px; }
.auth-card .btn { width:100%; justify-content:center; margin-top: 18px; }
.auth-alt { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.auth-alt a { color: var(--terra); text-decoration: underline; text-underline-offset: 3px; }
.auth-back { display:inline-flex; align-items:center; gap:7px; font-size:14px; color: var(--muted); margin-top: 22px; transition: color .15s; }
.auth-back:hover { color: var(--ink); }

@media (max-width: 880px) {
  .legal-layout { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; display:none; }
  .values, .principles { grid-template-columns: 1fr; }
  .about-band { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
  .field-row { grid-template-columns: 1fr; }
}
