/* ========================================================================
   UM Track — Shared styles for inner pages (About, Contact, Security,
   Terms, Cookies). Loaded alongside home.css, which supplies the design
   tokens, nav, mobile menu, footer, buttons and reveal-animation classes.
   ======================================================================== */

/* ---------- Compact inner-page hero ---------- */
.page-hero { padding-block: 52px 44px; }
.page-hero .container { max-width: 760px; }
.page-hero h1 {
  margin-top: 14px;
  font-size: clamp(1.8rem, 1.5rem + 1.8vw, 2.7rem);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.01em;
}
.page-hero p.lead {
  margin-top: 16px;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.1rem);
  color: var(--ink-3);
  max-width: 62ch;
}
.page-hero .updated {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-4);
}

/* ---------- Notice / disclaimer banner ---------- */
.notice-banner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--gold-tint);
  border: 1px solid var(--gold-light);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-block: 8px 36px;
}
.notice-banner svg { flex: none; color: var(--gold-deep); margin-top: 2px; }
.notice-banner strong { display: block; font-size: 14px; font-weight: 800; color: var(--gold-deep); margin-bottom: 4px; }
.notice-banner p { font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }

/* ---------- Prose (legal / long-form body text) ---------- */
.prose-wrap { padding-block: 8px 80px; }
.prose-layout {
  display: grid;
  gap: 40px;
  align-items: start;
}
@media (min-width: 900px) {
  .prose-layout { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); }
}

.toc {
  position: static;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  background: var(--bg-alt);
}
@media (min-width: 900px) { .toc { position: sticky; top: calc(var(--nav-h) + 20px); } }
.toc h2 { font-size: 12px; font-weight: 800; letter-spacing: 0.04em; color: var(--ink-4); text-transform: uppercase; margin-bottom: 12px; }
.toc ol { display: flex; flex-direction: column; gap: 9px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: flex; gap: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  line-height: 1.5;
}
.toc a::before {
  content: counter(toc) ".";
  color: var(--gold-deep); font-weight: 800; flex: none;
}
.toc a:hover { color: var(--gold-deep); }

.prose { max-width: 72ch; }
.prose h2 {
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.4rem);
  font-weight: 800;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border-soft);
  scroll-margin-top: calc(var(--nav-h) + 16px);
}
.prose > .prose h2:first-child,
.prose h2.no-rule { border-top: none; padding-top: 0; margin-top: 0; }
.prose h3 { font-size: 1rem; font-weight: 800; margin-top: 22px; margin-bottom: 8px; }
.prose p { margin-top: 12px; font-size: 14.5px; line-height: 1.85; color: var(--ink-2); }
.prose ul, .prose ol { margin-top: 12px; display: flex; flex-direction: column; gap: 9px; padding-inline-start: 22px; }
.prose li { font-size: 14.5px; line-height: 1.75; color: var(--ink-2); }
.prose ul { list-style: disc; }
.prose ol.numbered { list-style: decimal; }
.prose strong { color: var(--ink); font-weight: 800; }
.prose a { color: var(--gold-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* Inline "fill this in" placeholder chip for legal/contact fields */
.pfield {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border: 1px dashed var(--ink-4);
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-3);
  background: var(--bg-alt);
  white-space: nowrap;
}
.pfield::before { content: '✎'; font-size: 11px; }

.prose table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 13.5px; }
.prose th, .prose td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--border-soft); }
.prose th { font-weight: 800; color: var(--ink); background: var(--bg-alt); }
.prose td { color: var(--ink-2); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); margin-top: 16px; }
.table-wrap table { margin-top: 0; }
.table-wrap th:first-child, .table-wrap td:first-child { padding-inline-start: 16px; }

/* ---------- Security page ---------- */
.security-grid { padding-block: 20px 0; }
.security-note {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 40px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
}
.security-note svg { flex: none; color: var(--ink-4); margin-top: 2px; }
.security-note p { font-size: 13px; color: var(--ink-3); line-height: 1.7; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 16px; grid-template-columns: 1fr; padding-block: 8px 0; }
@media (min-width: 780px) { .contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
}
.contact-card .feature-icon { margin-bottom: 18px; }
.contact-card h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 8px; }
.contact-card p { font-size: 13.5px; color: var(--ink-3); line-height: 1.65; flex: 1; }
.contact-card .pfield { margin-top: 18px; align-self: flex-start; }

.contact-alt {
  margin-top: 56px;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .contact-alt { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.contact-alt-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.contact-alt-card .why-icon { flex: none; }
.contact-alt-card h4 { font-size: 14.5px; font-weight: 800; margin-bottom: 4px; }
.contact-alt-card p { font-size: 13px; color: var(--ink-3); }

/* ---------- About ---------- */
.about-block { padding-block: 8px 0; max-width: 68ch; }
.about-block p { margin-top: 16px; font-size: 15px; line-height: 1.85; color: var(--ink-2); }
.about-principles { margin-top: 56px; }

/* ---------- Generic small back-link ---------- */
.crumb {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--ink-3);
  margin-bottom: 4px;
}
.crumb:hover { color: var(--gold-deep); }
