/* =============================================
   THE FROZEN TIMES — Legal / Blog Stylesheet
   Used by: blog posts, blog.php, faq.php,
            privacy-policy.php, terms.php
   ============================================= */

/* =============================================
   HERO (shared with legal & blog pages)
   ============================================= */
.legal-hero {
  background: linear-gradient(135deg, #040c1f 0%, #0a1628 40%, #0d1f3c 100%);
  position: relative;
  overflow: hidden;
  padding: 140px 0 80px;
}
.legal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 50%, rgba(14,165,233,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(99,102,241,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.legal-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 9, 26, 0.45);
  pointer-events: none;
}

/* =============================================
   BLOG CARD (blog.php listing page)
   ============================================= */
.blog-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e8eef8;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(14,165,233,0.14);
  border-color: rgba(14,165,233,0.3);
}

.blog-card-icon {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  background: color-mix(in srgb, var(--icon-color) 10%, #f8faff);
  color: var(--icon-color);
  transition: all 0.3s ease;
}
.blog-card:hover .blog-card-icon {
  background: color-mix(in srgb, var(--icon-color) 18%, #f8faff);
  font-size: 3.2rem;
}

.blog-card-body {
  padding: 24px 24px 12px;
  flex: 1;
}
.blog-card-footer {
  padding: 14px 24px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5fb;
}

.blog-cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #e0f2fe;
  color: #0284c7;
  padding: 3px 10px;
  border-radius: 50px;
}

.blog-cat-hero {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(14,165,233,0.18);
  color: #7dd3fc;
  border: 1px solid rgba(14,165,233,0.3);
  padding: 4px 14px;
  border-radius: 50px;
}

.blog-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0a0f1e;
  line-height: 1.4;
  margin-bottom: 10px;
}
.blog-card-excerpt {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.65;
  margin: 0;
}

.blog-read-more {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0ea5e9;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease, color 0.2s ease;
}
.blog-read-more:hover { gap: 8px; color: #0284c7; }

/* =============================================
   BLOG POST BODY (individual articles)
   ============================================= */
.blog-body {
  font-size: 1rem;
  color: #374151;
  line-height: 1.8;
}
.blog-body .lead {
  font-size: 1.15rem;
  color: #1e293b;
  line-height: 1.75;
  font-weight: 400;
  margin-bottom: 2rem;
}
.blog-body h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  color: #0a0f1e;
  margin-top: 2.5rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e0f2fe;
}
.blog-body h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
}
.blog-body p { margin-bottom: 1.1rem; }
.blog-body ul, .blog-body ol {
  padding-left: 1.4rem;
  margin-bottom: 1.2rem;
}
.blog-body li { margin-bottom: 0.55rem; }
.blog-body strong { color: #0a0f1e; font-weight: 700; }
.blog-body a { color: #0ea5e9; text-decoration: underline; }
.blog-body a:hover { color: #0284c7; }

/* Tip / callout box */
.blog-tip-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-left: 4px solid #0ea5e9;
  border-radius: 12px;
  padding: 18px 20px;
  margin: 1.8rem 0;
  font-size: 0.92rem;
  color: #0c4a6e;
  line-height: 1.65;
}
.blog-tip-box i {
  font-size: 1.3rem;
  color: #0ea5e9;
  margin-top: 1px;
  flex-shrink: 0;
}

/* CTA box inside article */
.blog-cta-box {
  background: linear-gradient(135deg, #0a1628, #111e38);
  border: 1px solid rgba(14,165,233,0.25);
  border-radius: 16px;
  padding: 32px;
  margin: 2.5rem 0;
  color: #fff;
  text-align: center;
}
.blog-cta-box h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.blog-cta-box p {
  color: rgba(255,255,255,0.7);
  font-size: 0.92rem;
  margin-bottom: 20px;
}

/* Prev / Next nav */
.blog-nav { border-top: 1px solid #e8eef8; padding-top: 24px; }
.blog-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  color: #0ea5e9;
  text-decoration: none;
  padding: 10px 20px;
  border: 1.5px solid #bae6fd;
  border-radius: 50px;
  background: #f0f9ff;
  transition: all 0.25s ease;
}
.blog-nav-link:hover {
  background: #0ea5e9;
  color: #fff;
  border-color: #0ea5e9;
}

/* Table inside blog */
.blog-table { font-size: 0.875rem; }
.blog-table thead th {
  background: #0a1628;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  border-color: #1e3a5f;
}
.blog-table tbody tr:hover td { background: #f0f9ff; }

/* =============================================
   FAQ PAGE  (faq.php)
   ============================================= */
.faq-cat-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid #e2e8f0;
  color: #64748b;
  background: #fff;
  transition: all 0.25s ease;
  cursor: pointer;
}
.faq-cat-btn:hover, .faq-cat-btn.active {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(14,165,233,0.3);
}

/* =============================================
   LEGAL / POLICY PAGE BODY
   ============================================= */
.legal-body {
  font-size: 0.97rem;
  color: #374151;
  line-height: 1.8;
}
.legal-body h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0a0f1e;
  margin-top: 2.2rem;
  margin-bottom: 0.7rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #e0f2fe;
}
.legal-body h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  margin-top: 1.4rem;
  margin-bottom: 0.5rem;
}
.legal-body p { margin-bottom: 1rem; }
.legal-body ul, .legal-body ol {
  padding-left: 1.4rem;
  margin-bottom: 1.1rem;
}
.legal-body li { margin-bottom: 0.5rem; }
.legal-body strong { color: #0a0f1e; }
.legal-body a { color: #0ea5e9; }

/* =============================================
   HOMEPAGE BLOG PREVIEW SECTION
   ============================================= */
.home-blog-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e8eef8;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.home-blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(14,165,233,0.14);
  border-color: rgba(14,165,233,0.3);
}
.home-blog-card-icon {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: color-mix(in srgb, var(--icon-color) 10%, #f8faff);
  color: var(--icon-color);
  transition: all 0.3s ease;
}
.home-blog-card:hover .home-blog-card-icon {
  font-size: 2.9rem;
  background: color-mix(in srgb, var(--icon-color) 18%, #f8faff);
}
.home-blog-card-body {
  padding: 22px 22px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.home-blog-card-footer {
  padding: 12px 22px 20px;
  border-top: 1px solid #f1f5fb;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* =============================================
   LEGAL PAGE EXTRAS
   ============================================= */
.legal-toc {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-left: 4px solid #0ea5e9;
  border-radius: 12px;
}
.legal-toc h5 { color: #0a0f1e; font-size: 1rem; }
.legal-toc ol { padding-left: 1.2rem; margin: 0; }
.legal-toc li { margin-bottom: 6px; }
.legal-toc a {
  color: #0ea5e9;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}
.legal-toc a:hover { text-decoration: underline; }

.legal-contact-box {
  background: #f8faff;
  border: 1px solid #e8eef8;
  border-radius: 12px;
  padding: 20px 24px;
  font-size: 0.9rem;
  color: #374151;
}
.legal-contact-box a { color: #0ea5e9; text-decoration: none; }
.legal-contact-box a:hover { text-decoration: underline; }
.legal-contact-box i { color: #0ea5e9; }

.legal-cta {
  border-top: 1px solid #e8eef8;
  padding-top: 32px;
}
