/* =========================================================
   Static Pages (About / Privacy / Terms / Contact)
   CryptoTravel.net — accessible, responsive, print-friendly
   ========================================================= */

/* Hero */
.page-hero {
  background: #f6fbff;
  border-bottom: 1px solid #e8eef3;
}
.page-hero .thin { padding-top: 28px; padding-bottom: 18px; }
.page-hero .tagline { color: #4f6476; margin-top: 6px; }

/* Layout */
.page-content { padding: 24px 0 40px; }
.terms-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 980px) {
  .terms-grid { grid-template-columns: 1fr; }
}

/* TOC */
.toc {
  position: sticky;
  top: 84px; /* beneath your header */
  align-self: start;
  border: 1px solid #e6ecf3;
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}
.toc-title {
  font-size: 14px;
  color: #0a3c60;
  margin: 4px 0 8px;
}
.toc ol { list-style: decimal; padding-left: 18px; margin: 0; }
.toc a {
  display: block;
  color: #294457;
  padding: 6px 2px;
  text-decoration: none;
}
.toc a:hover, .toc a:focus {
  color: #0b67b0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Up to large tablet: neutralize sticky and ensure article comes first (Terms) */
@media (max-width: 1200px) {
  .toc {
    position: static !important;
    top: auto !important;
    z-index: auto !important;
    width: 100% !important;
    clear: both !important;
    margin-top: 12px;
    grid-row: 2 !important;
  }
  .terms-article {
    grid-row: 1 !important;
    position: relative;
    z-index: 1;
  }
}

/* Phones: hide TOC to prioritize readability (Terms) */
@media (max-width: 768px) {
  .toc { display: none !important; }
}

/* Prose: readable width & typography */
.prose {
  max-width: 880px;
  margin: 0 auto;
  line-height: 1.7;
  color: #243647;
}
.prose h2 { margin: 1.2em 0 .5em; color: #0a3c60; font-size: 1.25rem; }
.prose p { margin: .75em 0; }
.prose ul { margin: .5em 0 .5em 1.2em; }
.terms-article h2 { scroll-margin-top: 90px; }

/* Meta badges */
.legal-meta {
  display: flex; gap: 10px; align-items: center; margin-bottom: 8px; flex-wrap: wrap;
}
.badge {
  display: inline-block; font-size: 12px; padding: 4px 8px; border-radius: 999px;
  border: 1px solid #d7e4ee; background: #f6fbff; color: #1e3a52;
}
.badge-version { background: #eef7ff; }
.badge-updated { background: #eaf8ef; border-color: #d6f0dc; color: #1c4d2d; }

/* Notes */
.note {
  border: 1px solid #e6ecf3; border-left-width: 4px; border-radius: 10px;
  padding: 12px 14px; background: #fcfeff; margin: 12px 0 18px;
}
.note-info { border-left-color: #2b7cff; }
.note-warning { border-left-color: #ffb020; }
.note-danger { border-left-color: #e5484d; }
.checked { list-style: none; padding-left: 0; margin: .5em 0; }
.checked li { position: relative; padding-left: 24px; margin: .35em 0; }
.checked li::before { content: "✔"; color: #1a7f37; position: absolute; left: 0; top: 0; }

/* Links */
.back-to-top { display: inline-block; margin-top: 18px; color: #0b67b0; text-decoration: none; }
.back-to-top:hover { text-decoration: underline; }
.legal-disclaimer { font-size: 13px; color: #4f6476; margin-top: 10px; }

/* Active nav link */
.main-nav a.active { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* Footer badges & bottom area */
.footer-certifications {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  flex-wrap: wrap; padding: 10px 0 4px;
}
.footer-certifications img {
  height: 28px; width: auto; display: block; object-fit: contain;
}
.footer-certifications .cert-note {
  flex-basis: 100%; text-align: center; font-size: 13px; color: #445a6e; margin-top: 6px;
}
.footer-bottom { text-align: center; padding: 10px 0 20px; font-size: 13px; color: #1f3347; }
.footer-bottom p { margin: 2px 0; }
.site-footer .footer-certifications {
  display: flex !important; justify-content: center !important; align-items: center !important;
  gap: 20px !important; flex-wrap: wrap !important; margin: 14px auto 8px !important;
  text-align: center !important; max-width: 1140px !important; width: 100% !important;
  padding: 0 16px !important;
}
.site-footer .footer-certifications img { height: 32px !important; width: auto !important; object-fit: contain !important; display: inline-block !important; }
.site-footer .footer-certifications .cert-note {
  flex-basis: 100% !important; text-align: center !important; font-size: 12px !important;
  color: rgba(255,255,255,.65) !important; margin-top: 6px !important;
}
.site-footer .footer-bottom { text-align: center !important; color: #e6f0f8 !important; font-weight: 400 !important; }
.site-footer .footer-bottom p { margin: 2px 0 !important; font-weight: 400 !important; }
.site-footer .footer-bottom a { color: #e6f0f8 !important; text-decoration: underline dotted !important; }

/* Mobile footer icon scale */
@media (max-width: 480px) {
  .site-footer .footer-certifications img { height: 26px !important; }
}

/* Print: clean A4 output */
@media print {
  header.site-header, .page-hero, .trust-strip, .site-footer, .toc { display: none !important; }
  .page-content { padding: 0; }
  .prose { max-width: 100%; }
  a[href]:after { content: " (" attr(href) ")"; font-size: 10px; }
}
/* ===== About page fixes (restore layout & neutralize homepage flex) ===== */

/* 1) Stop homepage .hero-container flex from affecting About hero */
.page-hero .hero-container { 
  display: block;           /* override .hero-container { display:flex } from styles.css */
}

/* 2) Restore the About layout */
.about-simple { padding-top: 12px; }

.about-simple__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr; /* text : image */
  gap: 22px;
  align-items: start;
}

.about-simple__text p,
.about-simple__text li { color: #294457; }

.about-simple__text ul { margin-left: 1.1rem; }

.about-simple__image img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(10,20,40,.12);
  object-fit: cover;
}

@media (max-width: 980px) {
  .about-simple__grid { grid-template-columns: 1fr; }
}

/* (optional) make h2s a touch clearer on About only */
.about-simple .about-simple__text h2 {
  color: #0a3c60;
  margin-top: 1.25rem;
  margin-bottom: .5rem;
}
/* Shared page titles on static pages */
.page-title { color: #0a3c60; } /* swap to #00457c for darker */
