/* ========================================
   LEGAL PAGES — Privacy Policy & Terms
   ======================================== */

.legal-page {
  padding: 120px 0 80px;
  background: var(--white);
  min-height: 60vh;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--navy);
  margin-bottom: 8px;
}

.legal-updated {
  font-size: 0.88rem;
  color: var(--slate-light);
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 1.3rem;
  color: var(--navy);
  margin-top: 40px;
  margin-bottom: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--warm-gray-dark);
}

.legal-content h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.legal-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.7;
}

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

.legal-content li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.legal-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}

.legal-content a {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.legal-content a:hover {
  color: var(--gold);
}

.legal-content strong {
  color: var(--text-primary);
}

/* TL;DR summary box */
.tldr-box {
  background: var(--navy);
  border-radius: 12px;
  padding: 28px 32px;
  margin: 28px 0 36px;
}

.tldr-box h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--amber);
  margin-bottom: 14px;
  font-weight: 700;
}

.tldr-box ul {
  margin-bottom: 0;
}

.tldr-box li {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.tldr-box li::before {
  background: var(--amber);
  top: 9px;
  width: 6px;
  height: 6px;
}

/* Google API callout box */
.legal-callout {
  background: var(--warm-gray);
  border-left: 4px solid var(--amber);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 24px 28px;
  margin: 28px 0;
}

.legal-callout h3 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.legal-callout p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* ========================================
   BLOG INDEX — Post Cards
   ======================================== */

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 32px;
}

@media (min-width: 720px) {
  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--warm-gray-dark);
  border-radius: 12px;
  padding: 28px;
  transition: box-shadow 0.2s;
}

.blog-card:hover {
  box-shadow: 0 4px 20px rgba(26, 35, 50, 0.08);
}

.blog-card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}

.blog-card-title a {
  color: var(--navy);
  text-decoration: none;
}

.blog-card-title a:hover {
  color: var(--amber);
}

.blog-card-meta {
  font-size: 0.85rem;
  color: var(--slate-light);
  margin-bottom: 12px;
}

.blog-card-excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.blog-card-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--amber);
  text-decoration: none;
}

.blog-card-link:hover {
  color: var(--gold);
  text-decoration: underline;
}

/* ========================================
   BLOG POST — Article Layout
   ======================================== */

.blog-back-link {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--amber);
  text-decoration: none;
  margin-bottom: 20px;
}

.blog-back-link:hover {
  color: var(--gold);
  text-decoration: underline;
}

.blog-post-meta {
  font-size: 0.9rem;
  color: var(--slate-light);
  margin-bottom: 32px;
}

/* Soft CTA box at end of blog posts (extends tldr-box pattern) */
.blog-cta-box {
  background: var(--navy);
  border-radius: 12px;
  padding: 28px 32px;
  margin: 40px 0 16px;
}

.blog-cta-box h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--amber);
  margin-bottom: 12px;
  font-weight: 700;
}

.blog-cta-box p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.blog-cta-box a.btn {
  display: inline-block;
  text-decoration: none;
}

/* ========================================
   MANAGE SUBSCRIPTION — CTA
   ======================================== */

.manage-cta {
  max-width: 480px;
  margin: 32px auto 0;
  text-align: center;
}
.manage-cta .btn {
  min-height: 48px;
  font-size: 1rem;
  padding: 14px 32px;
}
.manage-help {
  margin-top: 32px;
  font-size: 0.88rem;
  color: var(--text-secondary, #6b7280);
}
