/* MindsKeep Legal Pages — Shared Styles */
:root {
  --bg: #1c1917;
  --bg-card: #292524;
  --bg-elevated: #33302e;
  --border: #44403c;
  --text: #fafaf9;
  --text-muted: #a8a29e;
  --text-dim: #78716c;
  --accent: #f97316;
  --accent-hover: #ea580c;
  --accent-soft: rgba(249, 115, 22, 0.1);
  --green: #22c55e;
  --max-width: 820px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(28, 25, 23, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent), #c2410c);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.logo-text span { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

/* ===== Hero ===== */
.page-hero {
  text-align: center;
  padding: 64px 24px 40px;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.page-hero .updated {
  color: var(--text-dim);
  font-size: 0.875rem;
}
.tldr {
  max-width: var(--max-width);
  margin: 32px auto 0;
  padding: 20px 24px;
  background: var(--accent-soft);
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: 12px;
  text-align: left;
}
.tldr strong { color: var(--accent); }

/* ===== Content ===== */
.content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.content h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 48px 0 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text);
}
.content h2:first-child { border-top: none; margin-top: 0; padding-top: 0; }
.content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 24px 0 10px;
  color: var(--text);
}
.content p {
  color: var(--text-muted);
  margin-bottom: 16px;
}
.content ul, .content ol {
  color: var(--text-muted);
  margin: 0 0 16px 24px;
}
.content li { margin-bottom: 8px; }
.content strong { color: var(--text); }
.content a { color: var(--accent); text-decoration: none; }
.content a:hover { text-decoration: underline; }

/* ===== FAQ Accordion ===== */
.faq-category {
  margin: 48px 0 32px;
}
.faq-category h2 {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.faq-category h2 .icon {
  width: 36px;
  height: 36px;
  background: var(--accent-soft);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--bg-card);
  transition: border-color 0.2s;
}
.faq-item:hover { border-color: var(--text-dim); }
.faq-question {
  width: 100%;
  padding: 18px 20px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: inherit;
}
.faq-question .chevron {
  color: var(--accent);
  transition: transform 0.3s;
  flex-shrink: 0;
  font-size: 14px;
}
.faq-item.open .faq-question .chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer-inner {
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
}
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 16px;
  list-style: none;
}
.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.copyright {
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .header-inner { padding: 12px 16px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 0.8rem; }
  .page-hero { padding: 48px 16px 32px; }
  .content { padding: 32px 16px 60px; }
  .content h2 { font-size: 1.25rem; }
}
