/* ==========================================================================
   SHARED SUB-PAGE STYLES
   Used by all secondary pages (privacy, terms, about, pricing, etc.)
   Design tokens and base styles match the homepage (index.html).
   ========================================================================== */

:root {
  --bg-primary: #F5F5F3;
  --bg-alt: #EDECEA;
  --surface: #FFFFFF;
  --dark: #1A1A1A;
  --text-primary: #1A1A1A;
  --text-secondary: #555555;
  --text-tertiary: #888888;
  --green-primary: #4A6B5D;
  --green-light: #7C9A82;
  --sage-tint: #E8F0EB;
  --gold: #C4A87A;
  --terracotta: #B07A56;
  --border: #E0DFDD;
  --border-light: #EAEAE8;
  --font-logo: 'Fraunces', Georgia, serif;
  --font-heading: 'General Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --container: 1180px;
  --container-narrow: 720px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-body); color: var(--text-primary); background: var(--bg-primary); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 32px; }

/* ==========================================================================
   NAV (simplified for sub-pages — logo + CTA only)
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 32px;
  background: rgba(245, 245, 243, 0.8);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid rgba(224, 223, 221, 0.6);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: var(--font-logo);
  font-style: italic;
  font-weight: 500;
  font-size: 24px;
  color: var(--text-primary);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: var(--green-primary);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}
.nav-cta:hover { background: #3D5A4E; }

/* ==========================================================================
   SUB-PAGE LAYOUT
   ========================================================================== */
.subpage-content { padding: 120px 0 80px; }

.subpage-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--green-primary);
  margin-bottom: 24px;
  transition: opacity 0.2s;
}
.subpage-back:hover { opacity: 0.7; }

.subpage-header { margin-bottom: 48px; }
.subpage-header h1 {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.subpage-header .subpage-tagline {
  font-size: 20px;
  color: var(--text-secondary);
  line-height: 1.5;
  font-style: italic;
  font-family: var(--font-logo);
}
.subpage-updated {
  font-size: 14px;
  color: var(--text-tertiary);
}

/* ==========================================================================
   LEGAL CONTENT (privacy, terms, cookies)
   ========================================================================== */
.legal-content h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  margin: 48px 0 16px;
  color: var(--text-primary);
}
.legal-content h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--text-primary);
}
.legal-content p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.legal-content ul, .legal-content ol {
  margin: 0 0 16px 24px;
  color: var(--text-secondary);
}
.legal-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}
.legal-content strong {
  color: var(--text-primary);
  font-weight: 600;
}
.legal-content a {
  color: var(--green-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-content a:hover { opacity: 0.7; }

/* Highlight summary box */
.highlight-box {
  background: var(--sage-tint);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 32px;
}
.highlight-box h3 { margin-top: 0; }
.highlight-box ul { list-style: none; margin-left: 0; }
.highlight-box li {
  position: relative;
  padding-left: 24px;
  color: var(--text-primary);
  font-weight: 500;
}
.highlight-box li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-primary);
}

/* Data table */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
}
.legal-table th {
  text-align: left;
  padding: 12px 16px;
  background: var(--bg-alt);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border);
}
.legal-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}

/* ==========================================================================
   ABOUT PAGE
   ========================================================================== */
.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0 48px;
}
.approach-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px;
}
.approach-card h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.approach-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   RESPONSIBLE AI PAGE
   ========================================================================== */
.ethics-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}
.ethics-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  line-height: 1.7;
}
.ethics-list li:last-child { border-bottom: none; }

.safety-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 32px 0 48px;
}
.safety-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
}
.safety-card h3 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.safety-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.crisis-resources {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px;
  margin: 32px 0;
}
.crisis-resources h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.crisis-resources ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.crisis-resources li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}
.crisis-resources li:last-child { border-bottom: none; }

/* ==========================================================================
   PRICING PAGE
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 48px 0;
}
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.pricing-card.popular {
  border-color: var(--green-primary);
  box-shadow: 0 0 0 1px var(--green-primary);
}
.pricing-popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}
.pricing-card-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.pricing-card-desc {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 20px;
  line-height: 1.5;
}
.pricing-card-price {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.pricing-card-price span {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-tertiary);
}
.pricing-card-features {
  list-style: none;
  margin: 24px 0;
  padding: 0;
  flex: 1;
}
.pricing-card-features li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.pricing-card-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-primary);
}
.pricing-card-cta {
  display: block;
  text-align: center;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}
.pricing-card-cta-primary {
  background: var(--green-primary);
  color: #fff;
}
.pricing-card-cta-primary:hover {
  background: #3D5A4E;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 107, 93, 0.3);
}
.pricing-card-cta-secondary {
  background: transparent;
  color: var(--green-primary);
  border: 1px solid var(--border);
}
.pricing-card-cta-secondary:hover {
  border-color: var(--green-primary);
  background: var(--sage-tint);
}

.pricing-enterprise {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  margin-bottom: 64px;
}
.pricing-enterprise h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.pricing-enterprise p {
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 24px;
  line-height: 1.6;
}
.pricing-enterprise a {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  background: var(--green-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}
.pricing-enterprise a:hover {
  background: #3D5A4E;
}

.pricing-faq { margin-top: 64px; }
.pricing-faq h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 32px;
  text-align: center;
}
.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: 24px 0;
}
.faq-item:first-child { border-top: 1px solid var(--border-light); }
.faq-item h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.faq-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.5);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer-brand .nav-logo {
  color: #fff;
  margin-bottom: 12px;
  display: block;
}
.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
  max-width: 240px;
}
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}
.footer-col a:hover { color: rgba(255,255,255,0.7); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.footer-bottom a {
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}
.footer-bottom a:hover { color: rgba(255,255,255,0.6); }
.warrant-canary { display: inline-flex; align-items: center; gap: 6px; }
.canary-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green-primary);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .subpage-header h1 { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .approach-grid { grid-template-columns: 1fr; }
  .safety-features { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .container, .container-narrow { padding: 0 20px; }
}
