/* Shared layout for About, Contact, Legal, and similar static pages */
.info-page-body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: linear-gradient(165deg, #e8ecf4 0%, #f1f5f9 22%, #f8fafc 55%, #f8fafc 100%);
  min-height: 100vh;
  margin: 0;
}

.info-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1rem 3.5rem;
}

@media (min-width: 768px) {
  .info-page { padding-left: 1.25rem; padding-right: 1.25rem; }
}

/* Top pill navigation */
.info-page-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.97) 0%, rgba(248, 250, 252, 0.92) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  margin: 0 -1rem 1rem;
  padding: 0.65rem 1rem;
}

@media (min-width: 768px) {
  .info-page-nav-wrap { margin-left: -1.25rem; margin-right: -1.25rem; padding-left: 1.25rem; padding-right: 1.25rem; }
}

.info-page-nav-wrap .info-page-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 2px;
}

.info-page-nav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  background: #fff;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.info-page-nav a:hover {
  color: #172a74;
  border-color: #c7d2fe;
  box-shadow: 0 2px 8px rgba(23, 42, 116, 0.12);
}

.info-page-nav a.is-active {
  color: #fff;
  background: linear-gradient(135deg, #172a74, #1e3a8a);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(23, 42, 116, 0.35);
}

/* Hero */
.info-page__hero {
  background: linear-gradient(135deg, #ffffff 0%, #f4f7fb 42%, #eef2f7 100%);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 20px;
  padding: 1.5rem 1.5rem 1.65rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 14px 44px rgba(23, 42, 116, 0.11);
  position: relative;
  overflow: hidden;
}

.info-page__hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #172a74, #21a9af);
  border-radius: 20px 20px 0 0;
}

.info-page__hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.info-page__hero-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(23, 42, 116, 0.12), rgba(33, 169, 175, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #172a74;
  font-size: 1.35rem;
}

.info-page__hero h1 {
  font-size: clamp(1.35rem, 4vw, 1.65rem);
  font-weight: 700;
  color: #172a74 !important;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.info-page__hero .info-page__lead {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: #475569 !important;
  max-width: 42rem;
}

/* Main article card */
.info-page__article {
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.07);
  padding: 1.75rem 1.5rem 2.25rem;
}

@media (min-width: 576px) {
  .info-page__article { padding: 2rem 2.25rem 2.5rem; }
}

.info-page__article > h1:first-child {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a !important;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.info-page__article h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #172a74 !important;
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #f1f5f9;
}

.info-page__article h2:first-of-type { margin-top: 0; }

.info-page__article h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b !important;
  margin: 1.35rem 0 0.5rem;
}

.info-page__article p,
.info-page__article li {
  color: #475569 !important;
  font-size: 1rem;
  line-height: 1.68;
}

.info-page__article p.lead,
.info-page__article .lead {
  font-size: 1.05rem;
  color: #334155 !important;
}

.info-page__article ul,
.info-page__article ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.info-page__article li { margin-bottom: 0.35rem; }

.info-page__article a {
  color: #172a74 !important;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(23, 42, 116, 0.25);
}

.info-page__article a:hover {
  color: #21a9af !important;
  border-bottom-color: rgba(33, 169, 175, 0.5);
}

.info-page__article .text-muted,
.info-page__article small {
  color: #64748b !important;
}

.info-page__meta {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b !important;
  background: #f1f5f9;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  margin-bottom: 1.25rem;
}

/* About feature grid */
.info-feature-grid {
  display: grid;
  gap: 1rem;
  margin-top: 0.5rem;
}

@media (min-width: 768px) {
  .info-feature-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}

.info-feature-card {
  background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
  border: 1px solid #e8eef4;
  border-radius: 16px;
  padding: 1.15rem 1.25rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.info-feature-card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 8px 28px rgba(23, 42, 116, 0.08);
}

.info-feature-card h3 {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #172a74 !important;
  margin: 0 0 0.5rem !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-feature-card h3 i {
  color: #21a9af;
  font-size: 0.95rem;
}

.info-feature-card p {
  margin: 0 !important;
  font-size: 0.94rem !important;
}

/* Contact cards */
.info-contact-cards {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0 0;
}

@media (min-width: 768px) {
  .info-contact-cards { grid-template-columns: repeat(3, 1fr); }
}

.info-contact-card {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.25rem 1.2rem;
  text-align: center;
}

.info-contact-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(23, 42, 116, 0.1), rgba(33, 169, 175, 0.14));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #172a74;
  font-size: 1.2rem;
}

.info-contact-card h3 {
  font-size: 0.9rem !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b !important;
  margin: 0 0 0.5rem !important;
}

.info-contact-card p {
  margin: 0 !important;
  font-size: 0.95rem !important;
}

/* User guide steps */
.info-guide-list {
  list-style: none;
  padding: 0 !important;
  margin: 0 !important;
  counter-reset: guide;
}

.info-guide-list > li {
  counter-increment: guide;
  position: relative;
  padding: 1.15rem 1.15rem 1.15rem 3.25rem;
  margin-bottom: 0.85rem !important;
  background: #f8fafc;
  border: 1px solid #e8eef4;
  border-radius: 14px;
  border-left: 4px solid #21a9af;
}

.info-guide-list > li::before {
  content: counter(guide);
  position: absolute;
  left: 1rem;
  top: 1.1rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #172a74, #21a9af);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-guide-list h2 {
  font-size: 1.05rem !important;
  margin: 0 0 0.45rem !important;
  padding: 0 !important;
  border: none !important;
  color: #0f172a !important;
}

.info-guide-list p,
.info-guide-list ul {
  margin-bottom: 0 !important;
}

.info-guide-list ul {
  padding-left: 1.1rem !important;
  margin-top: 0.5rem !important;
}

/* Callout */
.info-callout {
  background: linear-gradient(135deg, rgba(23, 42, 116, 0.06), rgba(33, 169, 175, 0.08));
  border: 1px solid rgba(23, 42, 116, 0.12);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  margin: 1.5rem 0;
}

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