/* inner-pages.css — shared template for Discussly inner pages (Contact, Privacy, Terms).
   Reuses colors_and_type.css tokens + replicates the homepage header & footer exactly. */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: #ffffff;
  color: var(--ink-800);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { user-select: none; }
::selection { background: rgba(124,58,237,0.18); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: relative; z-index: 50; padding: 14px 0;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid #e5e7eb;
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand-link { text-decoration: none; display: flex; align-items: center; }
.brand-logo { height: 42px; width: auto; display: block; }

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: #475569; text-decoration: none;
  transition: color .15s ease;
}
.nav-links a:hover { color: #111827; }

.header-cta { display: flex; align-items: center; gap: 10px; }
.cta-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 22px; border-radius: 14px; cursor: pointer;
  font-family: inherit; font-weight: 650; font-size: 15px; white-space: nowrap;
  background: #fff; color: #4f46e5; border: 1px solid #e5e7eb; text-decoration: none;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.cta-ghost:hover { background: #faf9ff; border-color: #e7e3fd; box-shadow: 0 4px 12px rgba(15,23,42,0.045); }
.cta-ghost svg { transition: transform .15s ease; }
.cta-ghost:hover svg { transform: translateX(2px); }

.menu-btn {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; color: #111827; cursor: pointer;
}
.mobile-menu {
  display: none; flex-direction: column; gap: 4px; margin-top: 14px; padding: 10px;
  border: 1px solid #e5e7eb; border-radius: 16px; background: #fff; box-shadow: 0 18px 50px rgba(15,23,42,0.06);
}
.mobile-menu a {
  padding: 12px 14px; border-radius: 12px; font-size: 15px; font-weight: 500; color: #172033; text-decoration: none;
}
.mobile-menu a:hover { background: #f8fafc; }
.mobile-menu .cta-ghost { width: 100%; margin-top: 6px; }
.mobile-menu.open { display: flex; }

/* ---------- Inner hero ---------- */
.page-hero { text-align: center; padding: 76px 0 40px; position: relative; overflow: hidden; }
.page-hero .glow {
  position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 760px; height: 360px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(124,58,237,0.08), rgba(37,99,235,0.03), transparent);
}
.page-hero .inner { position: relative; max-width: 820px; margin: 0 auto; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: #4f46e5; margin-bottom: 18px; white-space: nowrap;
}
.page-title {
  margin: 0 auto 18px; max-width: 720px;
  font-size: clamp(34px, 5vw, 52px); line-height: 1.05; letter-spacing: -0.045em;
  font-weight: 800; color: #111827; text-wrap: balance;
}
.page-intro {
  margin: 0 auto; max-width: 620px; font-size: 19px; line-height: 1.6;
  color: #475569; text-wrap: pretty;
}

/* ---------- Content card ---------- */
.page-body { padding: 8px 0 96px; }
.content-card {
  max-width: 820px; margin: 0 auto;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 20px;
  box-shadow: 0 18px 50px rgba(15,23,42,0.04);
  padding: 44px 48px;
}
.content-card h2 {
  margin: 0 0 12px; font-size: 21px; font-weight: 700; letter-spacing: -0.02em; color: #111827;
}
.content-card h2:not(:first-child) { margin-top: 38px; }
.content-card p { margin: 0 0 16px; font-size: 16px; line-height: 1.7; color: #475569; text-wrap: pretty; }
.content-card p:last-child { margin-bottom: 0; }
.content-card ul { margin: 0 0 16px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 11px; }
.content-card li {
  position: relative; padding-left: 26px; font-size: 16px; line-height: 1.6; color: #475569;
}
.content-card li::before {
  content: ""; position: absolute; left: 4px; top: 11px; width: 7px; height: 7px; border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}
.content-card a.link { color: #4f46e5; font-weight: 600; text-decoration: none; }
.content-card a.link:hover { text-decoration: underline; }
.section-divider { height: 1px; background: #f1f5f9; margin: 38px 0; border: 0; }
.updated { margin-top: 36px; font-size: 14px; color: #94a3b8; }

/* email / contact block */
.contact-block {
  display: flex; flex-direction: column; gap: 14px;
  padding: 26px 28px; background: #f8fafc; border: 1px solid #eef1f6; border-radius: 16px;
}
.contact-block .label { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #94a3b8; }
.contact-block .email { font-size: clamp(22px, 3vw, 28px); font-weight: 750; letter-spacing: -0.03em; }
.contact-block .email a { color: #111827; text-decoration: none; background: linear-gradient(135deg,#2563eb,#7c3aed); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.contact-block .note { font-size: 15px; color: #64748b; line-height: 1.6; margin: 0; }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 52px; padding: 0 28px; border-radius: 14px; cursor: pointer;
  font-family: inherit; font-weight: 650; font-size: 16px; white-space: nowrap; text-decoration: none;
  background: linear-gradient(135deg,#2563eb,#7c3aed); color: #fff; border: 0;
  box-shadow: 0 16px 40px rgba(37,99,235,0.25);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 18px 42px rgba(37,99,235,0.34); }
.btn-primary svg { transition: transform .15s ease; }
.btn-primary:hover svg { transform: translateX(2px); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid #e5e7eb; background: #fff; padding: 56px 0 44px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-about { max-width: 320px; }
.footer-about img { height: 34px; width: auto; display: block; }
.footer-about p { margin: 18px 0 0; font-size: 14.5px; line-height: 1.65; color: #475569; }
.footer-early { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 14px; font-weight: 600; color: #4f46e5; text-decoration: none; transition: color .15s ease; }
.footer-early:hover { color: #3730a3; }
.footer-early svg { transition: transform .15s ease; }
.footer-early:hover svg { transform: translateX(2px); }
.footer-col h4 { font-size: 13px; font-weight: 700; color: #111827; margin: 0 0 16px; }
.footer-col .links { display: flex; flex-direction: column; gap: 11px; }
.footer-col .links a { font-size: 14px; color: #475569; text-decoration: none; transition: color .15s ease; }
.footer-col .links a:hover { color: #111827; }
.footer-bottom {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid #f1f5f9;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom span { font-size: 13px; color: #94a3b8; }
.footer-bottom a { font-size: 13px; color: #94a3b8; text-decoration: none; transition: color .15s ease; }
.footer-bottom a:hover { color: #4f46e5; text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav-links { display: none; }
  .header-cta { display: none; }
  .brand-logo { height: 43px; }
  .menu-btn { display: flex; }
  .content-card { padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}
