/* ═══════════════════════════════════════════════════════════
   PAGES.CSS — Styles for sub-pages (legal, guide)
   Loaded alongside main.css on non-homepage pages
   ═══════════════════════════════════════════════════════════ */

/* Container override for content pages (narrower than homepage) */
.page-content .container {
  max-width: 800px;
}

/* ═══════════════════════════════════════════════════════════
   DARK THEME (Guide page)
   ═══════════════════════════════════════════════════════════ */
body.theme-dark {
  --bg: #0a0a0a;
  --bg-raised: #111111;
  --bg-card: #141414;
  --border: #1f1f1f;
  --border-hover: #2a2a2a;
  --hi: #ffaa04;
  --hi-dim: rgba(212, 255, 0, 0.08);
  --fg: #e2e2e2;
  --fg-dim: #5a5a5a;
  --fg-muted: #3a3a3a;
}

body.theme-dark nav {
  background: rgba(10, 10, 10, 0.85);
}

body.theme-dark::after {
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: normal;
}

/* ═══════════════════════════════════════════════════════════
   BREADCRUMB
   ═══════════════════════════════════════════════════════════ */
.breadcrumb {
  padding: 72px 24px 0;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.breadcrumb .container {
  display: flex;
  gap: 8px;
  color: var(--fg-muted);
}

.breadcrumb a { color: var(--fg-dim); }
.breadcrumb a:hover { color: var(--hi); }

.breadcrumb .sep { color: var(--fg-muted); }
.breadcrumb .current { color: var(--fg-dim); }

/* ═══════════════════════════════════════════════════════════
   LEGAL PAGES (Termos de Uso, Política de Privacidade)
   ═══════════════════════════════════════════════════════════ */
.legal-hero {
  padding: 48px 24px 32px;
}

.legal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.legal-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.legal-intro {
  padding: 0 24px 32px;
}

.legal-intro p {
  color: var(--fg-dim);
  font-size: 14px;
  line-height: 1.7;
}

.legal-content {
  padding: 0 24px 80px;
}

.legal-content h2 {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg);
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  color: var(--fg-dim);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
}

.legal-content ul li {
  position: relative;
  padding-left: 16px;
  color: var(--fg-dim);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 4px;
}

.legal-content ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--hi);
}

.legal-content .product-list {
  margin: 12px 0 16px;
}

.legal-content .product-list li {
  font-weight: 500;
  color: var(--fg);
}

/* ═══════════════════════════════════════════════════════════
   GUIDE / ARTICLE PAGE
   ═══════════════════════════════════════════════════════════ */

/* Article Hero */
.article-hero {
  padding: 48px 20px 0;
  text-align: center;
}

.article-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 8vw, 72px);
  line-height: 0.95;
  color: var(--fg);
  margin-top: 14px;
  margin-bottom: 20px;
  animation: fadeUp 0.8s var(--ease) 0.2s both;
}

.article-hero h1 em {
  font-style: normal;
  color: var(--hi);
}

.article-hero .article-sub {
  font-size: 13px;
  font-weight: 300;
  color: var(--fg-dim);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.8;
  letter-spacing: 0.03em;
  animation: fadeUp 0.8s var(--ease) 0.4s both;
}

/* TOC */
.toc {
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 24px 28px;
  margin-top: 48px;
}

.toc-title {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 16px;
}

.toc ol {
  list-style: none;
  counter-reset: toc-counter;
}

.toc li {
  counter-increment: toc-counter;
  margin-bottom: 8px;
}

.toc li::before {
  content: "0" counter(toc-counter) " ";
  color: var(--fg-muted);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.toc a {
  font-size: 12px;
  color: var(--fg-dim);
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.toc a:hover {
  color: var(--hi);
  text-decoration: none;
}

/* Article Sections */
.article-section {
  border-top: 1px solid var(--border);
}

.article-section h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 44px);
  color: var(--fg);
  margin-bottom: 8px;
  line-height: 1;
}

.article-section h2 em {
  font-style: normal;
  color: var(--hi);
}

.section-number {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--fg-muted);
  display: block;
  margin-bottom: 12px;
}

.article-section h3 {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--fg);
  margin-top: 36px;
  margin-bottom: 12px;
}

.article-section p {
  color: var(--fg-dim);
  line-height: 1.9;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
  font-size: 13px;
}

.article-section ul,
.article-section ol {
  color: var(--fg-dim);
  line-height: 1.9;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
  padding-left: 20px;
}

.article-section li {
  margin-bottom: 6px;
}

.article-section strong {
  color: var(--fg);
  font-weight: 500;
}

/* Callout boxes */
.callout {
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 20px 24px;
  margin: 24px 0;
}

.callout-label {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--hi);
  margin-bottom: 10px;
}

.callout p {
  margin-bottom: 0;
}

.callout-danger .callout-label {
  color: var(--danger);
}

/* Comparison table */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 11px;
}

.compare-table th {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--fg-muted);
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.compare-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--fg-dim);
  vertical-align: top;
}

.compare-table tr:hover td {
  background: var(--bg-card);
}

.compare-table .hi {
  color: var(--hi);
  font-weight: 500;
}

/* CTA Band */
.cta-band {
  border: 1px solid var(--hi);
  background: var(--bg-card);
  padding: 32px;
  text-align: center;
  margin: 40px 0;
}

.cta-band h3 {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--fg);
  margin-bottom: 10px;
  margin-top: 0;
}

.cta-band p {
  color: var(--fg-dim);
  font-size: 12px;
  margin-bottom: 20px;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--hi);
  color: #000;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.15em;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-1px);
  text-decoration: none;
  color: #000;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, transform 0.15s;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--hi);
  color: var(--hi);
  text-decoration: none;
  transform: translateY(-1px);
}

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 18px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: 0.03em;
  text-align: left;
  transition: color 0.2s;
}

.faq-trigger:hover {
  color: var(--hi);
}

.faq-trigger .icon {
  font-size: 16px;
  color: var(--fg-dim);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.open .faq-trigger .icon {
  transform: rotate(45deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.faq-inner {
  padding: 0 0 20px;
}

.faq-inner p {
  color: var(--fg-dim);
  font-size: 12px;
  line-height: 1.9;
  letter-spacing: 0.02em;
}

/* Product Cards (inline, guide page) */
.product-cards-inline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.mini-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 20px;
  transition: border-color 0.2s, transform 0.2s;
  text-decoration: none;
  display: block;
}

.mini-card:hover {
  border-color: var(--hi);
  transform: translateY(-2px);
  text-decoration: none;
}

.mini-card-name {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 6px;
}

.mini-card-desc {
  font-size: 10px;
  color: var(--fg-dim);
  line-height: 1.6;
  margin-bottom: 12px;
}

.mini-card-price {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--hi);
}

.mini-card-price small {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--fg-dim);
  font-weight: 400;
}

.mini-card-tag {
  display: inline-block;
  font-size: 7px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--fg-muted);
  border: 1px solid var(--border);
  padding: 3px 8px;
  margin-top: 10px;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Page-specific overrides
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .product-cards-inline {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .mini-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
  }

  .mini-card-tag {
    display: none;
  }
}

@media (max-width: 480px) {
  .article-hero h1 {
    font-size: clamp(30px, 10vw, 52px);
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    justify-content: center;
  }

  .compare-table {
    font-size: 10px;
  }

  .compare-table th,
  .compare-table td {
    padding: 10px 8px;
  }
}
