/* ========================================
   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;
}

/* ========================================
   BLOG POST — Comparison Table
   ======================================== */

.blog-table-wrap {
  overflow-x: auto;
  margin: 24px 0 32px;
  border-radius: 12px;
  border: 1px solid var(--warm-gray-dark);
}

.blog-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  table-layout: fixed;
}

.blog-table thead {
  background: var(--navy);
}

.blog-table th {
  color: var(--amber);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 12px 10px;
  text-align: left;
}

.blog-table th:first-child {
  width: 22%;
}

.blog-table tbody tr {
  border-top: 1px solid var(--warm-gray-dark);
}

.blog-table tbody tr:first-child {
  background: rgba(232, 168, 56, 0.08);
}

.blog-table td {
  padding: 10px 10px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.blog-table td:first-child {
  color: var(--text-primary);
  font-weight: 500;
}

.blog-table .cell-yes {
  color: #2f855a;
  font-weight: 600;
}

.blog-table .cell-no {
  color: #9b9b9b;
}

/* Mobile comparison cards — hidden on desktop */
.blog-table-mobile {
  display: none;
}

@media (max-width: 640px) {
  .blog-table-desktop {
    display: none;
  }
  .blog-table-mobile {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0 32px;
  }
}

.compare-card {
  border: 1px solid var(--warm-gray-dark);
  border-radius: 12px;
  overflow: hidden;
}

.compare-card-highlight {
  border-color: var(--amber);
  box-shadow: 0 0 0 1px var(--amber);
}

.compare-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: var(--navy);
  color: #fff;
  font-size: 0.95rem;
}

.compare-card-highlight .compare-card-header {
  background: var(--navy);
}

.compare-card-header strong {
  color: #fff;
}

.compare-card-header span {
  color: var(--amber);
  font-size: 0.85rem;
  font-weight: 600;
}

.compare-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  font-size: 0.88rem;
  border-top: 1px solid var(--warm-gray-dark);
}

.compare-card-row span:first-child {
  color: var(--text-secondary);
}

.compare-card-row .cell-yes {
  color: #2f855a;
  font-weight: 600;
}

.compare-card-row .cell-no {
  color: #9b9b9b;
}

/* ========================================
   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);
}

@media (max-width: 640px) {
  .legal-page {
    padding: 80px 0 48px;
  }
  .tldr-box {
    padding: 20px 18px;
  }
  .legal-callout {
    padding: 18px 20px;
  }
  .blog-cta-box {
    padding: 20px 18px;
  }
}
