/* ============================================================
   STATIC PAGES — About, Contact, Privacy Policy, etc.
   ============================================================ */

/* ---- Layout ---- */
.page-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
}

.page-main { min-width: 0; }

/* ---- Article card ---- */
.static-page {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ---- Header ---- */
.static-page-header {
  padding: var(--space-8) var(--space-8) var(--space-6);
  border-bottom: 1px solid var(--border-light);
}

.static-page-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
  margin: 0 0 var(--space-3);
}

.static-page-updated {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ---- Featured image ---- */
.static-page-thumbnail {
  margin: 0;
  line-height: 0;
}

.static-page-thumbnail img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
}

/* ---- Content area ---- */
.static-page-content {
  padding: var(--space-8);
  font-size: 0.97rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.static-page-content h2,
.static-page-content h3,
.static-page-content h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  margin: var(--space-8) 0 var(--space-4);
  line-height: 1.3;
}
.static-page-content h2 { font-size: 1.45rem; font-weight: 700; }
.static-page-content h3 { font-size: 1.15rem; font-weight: 700; }
.static-page-content h4 { font-size: 1rem;    font-weight: 700; }

.static-page-content p { margin-bottom: var(--space-5); }
.static-page-content p:last-child { margin-bottom: 0; }

.static-page-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.static-page-content a:hover { color: var(--color-primary-dark); }

.static-page-content ul,
.static-page-content ol {
  margin: var(--space-3) 0 var(--space-5) var(--space-6);
}
.static-page-content ul { list-style: disc; }
.static-page-content ol { list-style: decimal; }
.static-page-content li { margin-bottom: var(--space-2); }

.static-page-content code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-muted);
  color: var(--color-primary);
  padding: 2px 6px;
  border-radius: 4px;
}

.static-page-content pre {
  background: #0D1B2A;
  color: #A8FF78;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: var(--space-5);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: var(--space-5) 0;
}
[data-theme="dark"] .static-page-content pre { background: #000; }
.static-page-content pre code { background: none; color: inherit; padding: 0; }

.static-page-content blockquote {
  border-left: 3px solid var(--color-primary);
  padding-left: var(--space-5);
  color: var(--text-muted);
  font-style: italic;
  margin: var(--space-6) 0;
}

.static-page-content img {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  margin: var(--space-5) 0;
  max-width: 100%;
}

.static-page-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: var(--space-6) 0;
}
.static-page-content th,
.static-page-content td {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-light);
  text-align: left;
}
.static-page-content th {
  background: var(--bg-subtle);
  font-weight: 700;
  color: var(--text-primary);
}

/* ---- Breadcrumbs ---- */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}
.breadcrumbs a { color: var(--text-secondary); text-decoration: none; transition: color var(--transition-fast); }
.breadcrumbs a:hover { color: var(--color-primary); }
.breadcrumbs .sep { opacity: 0.45; }
.breadcrumbs .current { color: var(--text-primary); font-weight: 500; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .page-wrap {
    padding: var(--space-5) var(--space-3);
  }

  .static-page-header {
    padding: var(--space-6) var(--space-5);
  }

  .static-page-content {
    padding: var(--space-5);
  }
}
/* ============================================================
   LEGAL PAGES — Privacy Policy, Terms, Cookie Policy, DMCA
   Targeted via WordPress body class (e.g. .page-id-*, .slug-*)
   ============================================================ */

/* Legal pages get a slightly narrower, more readable layout */
.page-slug-privacy-policy .page-wrap,
.page-slug-terms-of-service .page-wrap,
.page-slug-cookie-policy .page-wrap,
.page-slug-dmca-copyright-policy .page-wrap,
.page-slug-flashing-disclaimer .page-wrap {
  max-width: 760px;
}

/* Subtle top accent bar for legal pages */
.page-slug-privacy-policy .static-page,
.page-slug-terms-of-service .static-page,
.page-slug-cookie-policy .static-page,
.page-slug-dmca-copyright-policy .static-page,
.page-slug-flashing-disclaimer .static-page {
  border-top: 3px solid var(--color-primary);
}

/* Legal badge shown next to title */
.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-primary) 25%, transparent);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: var(--space-3);
}

/* Last updated line — slightly more prominent on legal pages */
.page-slug-privacy-policy .static-page-updated,
.page-slug-terms-of-service .static-page-updated,
.page-slug-cookie-policy .static-page-updated,
.page-slug-dmca-copyright-policy .static-page-updated,
.page-slug-flashing-disclaimer .static-page-updated {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--text-muted);
}

/* Section dividers between major headings */
.page-slug-privacy-policy .static-page-content h2,
.page-slug-terms-of-service .static-page-content h2,
.page-slug-cookie-policy .static-page-content h2,
.page-slug-dmca-copyright-policy .static-page-content h2,
.page-slug-flashing-disclaimer .static-page-content h2 {
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-light);
  margin-top: var(--space-8);
}

.page-slug-privacy-policy .static-page-content h2:first-of-type,
.page-slug-terms-of-service .static-page-content h2:first-of-type,
.page-slug-cookie-policy .static-page-content h2:first-of-type,
.page-slug-dmca-copyright-policy .static-page-content h2:first-of-type,
.page-slug-flashing-disclaimer .static-page-content h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

/* Numbered list styling for DMCA steps etc. */
.page-slug-dmca-copyright-policy .static-page-content ol,
.page-slug-terms-of-service .static-page-content ol {
  counter-reset: legal-counter;
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

.page-slug-dmca-copyright-policy .static-page-content ol li,
.page-slug-terms-of-service .static-page-content ol li {
  counter-increment: legal-counter;
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  margin-bottom: var(--space-4);
}

.page-slug-dmca-copyright-policy .static-page-content ol li::before,
.page-slug-terms-of-service .static-page-content ol li::before {
  content: counter(legal-counter);
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* ============================================================
   404 ERROR PAGE — fgh-404
   ============================================================ */
.fgh-404 {
  padding: var(--space-12) 0 var(--space-16);
  text-align: center;
}

.fgh-404-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Graphic */
.fgh-404-graphic {
  position: relative;
  margin-bottom: var(--space-6);
  display: flex;
  justify-content: center;
  align-items: center;
}
.fgh-404-code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 15vw, 10rem); /* Huge, responsive text */
  font-weight: 800;
  color: var(--border-light);
  line-height: 1;
  user-select: none;
}
.fgh-404-icon {
  position: absolute;
  width: 80px;
  height: 80px;
}

/* Text */
.fgh-404-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}
.fgh-404-message {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: var(--space-6);
  line-height: 1.6;
}

/* Search Bar */
.fgh-404-search {
  width: 100%;
  max-width: 500px;
  margin-bottom: var(--space-6);
}
.fgh-404-search-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 2px solid var(--border-medium);
  border-radius: var(--radius-full);
  padding: 6px 6px 6px 20px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.fgh-404-search-wrap:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0,87,255,0.1);
}
.fgh-404-search-wrap svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-muted);
  margin-right: 12px;
  flex-shrink: 0;
}
.fgh-404-search-wrap input {
  flex-grow: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.95rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  width: 100%;
}
.fgh-404-search-wrap button {
  background: var(--color-primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background var(--transition-fast);
}
.fgh-404-search-wrap button:hover {
  background: var(--color-primary-dark);
}

/* Actions / Buttons - Scaled down as requested */
.fgh-404-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  margin-bottom: var(--space-12);
  flex-wrap: wrap;
}
.fgh-404-actions a {
  padding: 10px 20px;    /* Reduced padding */
  font-size: 0.85rem;    /* Reduced font size */
  border-radius: var(--radius-full); /* Gives them a neat pill shape */
}
.fgh-404-actions a svg {
  width: 16px; 
  height: 16px;
}

/* Popular Guides Grid */
.fgh-404-guides {
  text-align: left;
  width: 100%;
  margin-bottom: var(--space-10);
}
.fgh-404-guides-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-5);
  border-bottom: 2px solid var(--border-light);
  padding-bottom: var(--space-3);
}
.fgh-404-guides-title svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-primary);
}
.fgh-404-guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-4);
}
.fgh-404-guide-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  text-decoration: none;
}
.fgh-404-guide-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
  text-decoration: none;
}
.fgh-404-guide-card-top h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px;
  line-height: 1.4;
}
.fgh-404-guide-meta {
  display: flex;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}
.fgh-404-guide-cta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-light);
}
.fgh-404-guide-cta svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}
.fgh-404-guide-card:hover .fgh-404-guide-cta svg {
  transform: translateX(4px);
}

/* Chipsets Quick Links */
.fgh-404-chipsets {
  width: 100%;
  border-top: 1px solid var(--border-light);
  padding-top: var(--space-8);
}
.fgh-404-chipsets-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
}
.fgh-404-chipset-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}
.fgh-404-chipset-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.fgh-404-chipset-pill:hover {
  border-color: var(--color-primary);
  background: var(--bg-subtle);
  text-decoration: none;
}