/* ============ HIFERR INNER PAGES (LEGAL, FAQS, STORY, SUPPORT) ============ */

/* Global Page Layout */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-page);
}

.main-content {
  flex: 1;
}

/* Subpage Navigation Enhancement */
.nav-subpage .nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-subpage .nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s ease;
  position: relative;
}

.nav-subpage .nav-links a:hover,
.nav-subpage .nav-links a.active {
  color: var(--ink);
  font-weight: 600;
}

.nav-subpage .nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

@media (max-width: 860px) {
  .nav-subpage .nav-links {
    display: none;
  }
}

/* Page Header Hero */
.page-hero {
  padding: 56px 0 40px;
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.page-hero-inner {
  max-width: 820px;
  margin: 0 auto;
}

.page-hero .eyebrow {
  margin-bottom: 14px;
}

.page-hero h1 {
  font-size: 42px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 14px;
}

.page-hero p.lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 20px;
}

.page-meta-row {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 12.5px;
  color: var(--ink-soft);
  font-family: var(--ff-mono);
}

.page-meta-row strong {
  color: var(--ink);
}

/* Article / Document Container */
.doc-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

@media (max-width: 640px) {
  .page-hero {
    padding: 36px 0 28px;
  }
  .page-hero h1 {
    font-size: 30px;
  }
  .doc-container {
    padding: 32px 16px 60px;
  }
}

/* Document Typography & Elements */
.doc-body {
  font-size: 16px;
  line-height: 1.75;
  color: #374151;
}

.doc-body p {
  color: #374151;
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 20px;
}

.doc-body h2 {
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}

.doc-body h2:first-of-type {
  margin-top: 0;
}

.doc-body h3 {
  font-size: 19px;
  line-height: 1.35;
  color: var(--ink);
  margin-top: 32px;
  margin-bottom: 12px;
  font-weight: 700;
}

.doc-body ul, .doc-body ol {
  margin: 0 0 24px 20px;
  padding: 0;
}

.doc-body li {
  margin-bottom: 8px;
  color: #374151;
  line-height: 1.65;
}

.doc-body strong {
  color: var(--ink);
  font-weight: 600;
}

.doc-body a {
  color: #000000;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: opacity 0.15s;
}

.doc-body a:hover {
  opacity: 0.75;
}

/* Quick Jump Pills */
.quick-nav-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
  padding: 16px;
  background: #F8FAFC;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.quick-nav-pills span {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: 100%;
  margin-bottom: 4px;
}

.quick-nav-pills a {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  background: #FFFFFF;
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.quick-nav-pills a:hover {
  background: var(--ink);
  color: #FFFFFF;
  border-color: var(--ink);
}

/* Callout Boxes */
.callout-box {
  background: #F8FAFC;
  border: 1px solid var(--line);
  border-left: 4px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 28px 0;
  font-size: 15px;
  line-height: 1.65;
}

.callout-box p:last-child {
  margin-bottom: 0;
}

.callout-box.callout-alert {
  border-left-color: #EF4444;
  background: #FEF2F2;
}

.callout-box.callout-contact {
  border-left-color: #10B981;
  background: #F0FDF4;
}

/* FAQ Accordion Styling */
.faq-search-wrap {
  margin-bottom: 32px;
  position: relative;
}

.faq-search-input {
  width: 100%;
  padding: 14px 18px 14px 44px;
  font-size: 15px;
  font-family: inherit;
  border: 1.5px solid var(--line);
  border-radius: 100px;
  background: #FFFFFF;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-search-input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(22, 24, 27, 0.08);
}

.faq-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-faint);
  pointer-events: none;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-xs);
}

.faq-item.open {
  border-color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  text-align: left;
  font-family: var(--ff-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  background: none;
  border: none;
  cursor: pointer;
  user-select: none;
}

.faq-number {
  font-family: var(--ff-mono);
  font-size: 13px;
  color: var(--ink-soft);
  margin-right: 12px;
  flex-shrink: 0;
}

.faq-title-text {
  flex: 1;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-left: 14px;
  transition: transform 0.25s ease;
  color: var(--ink-soft);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--ink);
}

.faq-content {
  padding: 0 24px 22px 24px;
  font-size: 15.5px;
  line-height: 1.7;
  color: #4B5563;
  display: none;
  border-top: 1px solid #F3F4F6;
  padding-top: 14px;
}

.faq-item.open .faq-content {
  display: block;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Our Story Manifesto Layout */
.story-manifesto {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.story-lead-quote {
  font-family: var(--ff-display);
  font-size: 32px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.story-lead-sub {
  font-family: var(--ff-display);
  font-size: 24px;
  line-height: 1.35;
  color: var(--ink-soft);
  margin-bottom: 40px;
}

.story-divider {
  width: 60px;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
  margin: 36px 0;
}

.story-block {
  font-size: 18px;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 32px;
}

.story-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 36px 0;
}

@media (max-width: 640px) {
  .story-cards-grid {
    grid-template-columns: 1fr;
  }
  .story-lead-quote {
    font-size: 26px;
  }
  .story-lead-sub {
    font-size: 20px;
  }
}

.story-mini-card {
  background: #F8FAFC;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.story-mini-card .icon {
  font-size: 22px;
  flex-shrink: 0;
}

.story-statement-card {
  background: #16181B;
  color: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 44px 36px;
  margin: 48px 0;
  text-align: center;
}

.story-statement-card h2 {
  font-family: var(--ff-display);
  font-size: 32px;
  line-height: 1.2;
  color: #FFFFFF;
  margin-bottom: 14px;
  border: none;
  padding: 0;
  display: block;
}

.story-statement-card p {
  color: #9CA3AF;
  font-size: 17px;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 24px;
}

.story-statement-card .btn {
  background: #FFFFFF;
  color: var(--ink);
}

.story-statement-card .btn:hover {
  background: #F3F4F6;
}

/* Support Help Center Layout */
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

@media (max-width: 680px) {
  .support-grid {
    grid-template-columns: 1fr;
  }
}

.support-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}

.support-card:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.support-card .card-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.support-card h3 {
  font-size: 19px;
  font-family: var(--ff-display);
  color: var(--ink);
  margin-bottom: 8px;
}

.support-card p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.support-card .card-link {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.support-card .card-link:hover {
  text-decoration: underline;
}

.support-contact-banner {
  background: linear-gradient(135deg, #F8FAFC 0%, #EEF2F6 100%);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 36px;
  text-align: center;
  margin-top: 20px;
}

.support-contact-banner h2 {
  font-size: 26px;
  color: var(--ink);
  margin-bottom: 10px;
  border: none;
  padding: 0;
  display: block;
}

.support-contact-banner p {
  font-size: 15.5px;
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 auto 20px;
}

.support-email-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  border: 1.5px solid var(--ink);
  padding: 12px 24px;
  border-radius: 100px;
  font-family: var(--ff-mono);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.15s, background 0.15s;
}

.support-email-pill:hover {
  background: var(--ink);
  color: #FFFFFF;
  transform: scale(1.02);
}

/* Comprehensive Footer for Subpages */
.site-footer {
  border-top: 1px solid var(--line);
  background: #FFFFFF;
  padding: 56px 0 36px;
  margin-top: auto;
}

.site-footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 36px;
  margin-bottom: 40px;
}

.site-footer-brand {
  max-width: 320px;
}

.site-footer-brand p {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-top: 12px;
}

.site-footer-nav {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-nav-col h4 {
  font-family: var(--ff-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
}

.footer-nav-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-nav-col a {
  font-size: 13.5px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-nav-col a:hover {
  color: var(--ink);
}

.site-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-faint);
  font-family: var(--ff-mono);
}

.site-footer-bottom a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-footer-bottom a:hover {
  color: var(--ink);
}
