/* =============================================================
   Jathagam.AI — Unified Styles for General/Legal Pages
   (about, contact, privacy, terms, refund, services)
   Mobile-first, consistent layout across all pages
   ============================================================= */

:root {
  --brand-primary: #7b2cbf;
  --brand-text: #2b2b2b;
  --brand-muted: #6c757d;
  --bg-soft: #fdfbff;
  --border-soft: #ece6f6;
}

/* Body Background */
body {
  background-color: var(--bg-soft);
}

/* ─────────────────────────────────────────────────────────────
   Container: Consistent max-width for all general pages
   ───────────────────────────────────────────────────────────── */
.general-page-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .general-page-container {
    padding: 0 1.5rem;
  }
}

/* ─────────────────────────────────────────────────────────────
   Breadcrumb: Unified style for all pages
   ───────────────────────────────────────────────────────────── */
.breadcrumb-nav {
  font-size: 0.85rem;
  color: var(--brand-muted);
  margin: 0 0 0.75rem 0;
  padding-top: 0.5rem;
}

.breadcrumb-nav a {
  text-decoration: none;
  color: var(--brand-primary);
  font-weight: 500;
}

.breadcrumb-nav a:hover {
  text-decoration: underline;
}

/* ─────────────────────────────────────────────────────────────
   Page Header: Title + optional subtitle
   ───────────────────────────────────────────────────────────── */
.page-header {
  margin: 0.25rem 0 0.75rem 0;
}

.page-title {
  color: var(--brand-primary);
  font-size: clamp(1.3rem, 3vw, 1.5rem);
  line-height: 1.25;
  margin: 0 0 0.25rem 0;
  font-weight: 600;
}

.page-subtitle,
.page-subtle {
  color: var(--brand-muted);
  font-size: 0.9rem;
  margin: 0.1rem 0 0 0;
}

/* ─────────────────────────────────────────────────────────────
   Content Wrapper: Shared typography
   ───────────────────────────────────────────────────────────── */
.general-content {
  font-family: "Noto Sans Tamil", "Mukta", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--brand-text);
}

/* Legacy support for existing IDs */
#about, #contact, #privacy, #terms, #refund, #services {
  font-family: "Noto Sans Tamil", "Mukta", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--brand-text);
}

/* ─────────────────────────────────────────────────────────────
   Section Blocks
   ───────────────────────────────────────────────────────────── */
.section {
  padding: 0.5rem 0;
  border-top: 1px solid var(--border-soft);
}

.section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

/* Reduce paragraph margin inside sections for tighter spacing */
.section p {
  margin-bottom: 0.5rem;
}

.section p:last-child {
  margin-bottom: 0;
}

.section-title {
  color: var(--brand-primary);
  font-size: clamp(1.05rem, 2.5vw, 1.15rem);
  line-height: 1.3;
  margin: 0 0 0.4rem 0;
  font-weight: 600;
  letter-spacing: 0.1px;
}

/* Section with bottom border (alternate style) */
.section-title-bordered {
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 0.3rem;
  margin-bottom: 0.5rem;
}

/* ─────────────────────────────────────────────────────────────
   Text Styles
   ───────────────────────────────────────────────────────────── */
.general-content p,
#about p, #contact p, #privacy p, #terms p, #refund p, #services p {
  font-size: clamp(0.95rem, 2.2vw, 1rem);
  line-height: 1.65;
  margin: 0 0 0.75rem 0;
  color: var(--brand-text);
}

.general-content p strong,
.general-content p b,
#about p strong, #about p b,
#contact p strong, #contact p b,
#privacy p strong, #privacy p b,
#terms p strong, #terms p b,
#refund p strong, #refund p b,
#services p strong, #services p b {
  color: var(--brand-primary);
  font-weight: 700;
}

/* ─────────────────────────────────────────────────────────────
   Lists (bullet style)
   ───────────────────────────────────────────────────────────── */
.bullet,
.services-list {
  list-style-type: disc;
  padding-left: 1.25rem;
  margin: 0.25rem 0 0.75rem 0;
}

.bullet li,
.services-list li {
  margin: 0.35rem 0;
  line-height: 1.6;
  font-size: clamp(0.95rem, 2.2vw, 1rem);
  color: #444;
}

.bullet li strong,
.services-list li strong {
  color: var(--brand-primary);
}

/* Contact list (no bullets) */
.contact-list {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 0.75rem;
}

.contact-list li {
  margin-bottom: 0.4rem;
  line-height: 1.6;
  color: var(--brand-text);
}

/* ─────────────────────────────────────────────────────────────
   Links
   ───────────────────────────────────────────────────────────── */
.general-content a,
#about a, #contact a, #privacy a, #terms a, #refund a, #services a {
  color: var(--brand-primary);
  text-decoration: none;
  border-bottom: 1px dashed rgba(123, 44, 191, 0.35);
}

.general-content a:hover,
#about a:hover, #contact a:hover, #privacy a:hover, 
#terms a:hover, #refund a:hover, #services a:hover {
  border-bottom-style: solid;
}

/* ─────────────────────────────────────────────────────────────
   Contact Info Box (for services/refund pages)
   ───────────────────────────────────────────────────────────── */
.contact-info {
  background: linear-gradient(135deg, #f8f4ff 0%, #fff5f8 100%);
  padding: 1rem;
  border-radius: 8px;
  border-left: 3px solid var(--brand-primary);
  margin: 1rem 0;
}

/* ─────────────────────────────────────────────────────────────
   Operated by / Footer note
   ───────────────────────────────────────────────────────────── */
.operated-by {
  font-size: 0.9rem;
  color: #666;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-soft);
}

/* ─────────────────────────────────────────────────────────────
   Responsive: Mobile adjustments
   ───────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .general-page-container {
    padding: 0 0.75rem;
  }
  
  .breadcrumb-nav {
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
  }
  
  .page-title {
    font-size: 1.2rem;
  }
  
  .section-title {
    font-size: 1rem;
  }
}

/* ─────────────────────────────────────────────────────────────
   Responsive: Tablet/Desktop adjustments
   ───────────────────────────────────────────────────────────── */
@media (min-width: 768px) {
  .section {
    padding: 0.65rem 0;
  }
  
  .general-content p,
  #about p, #contact p, #privacy p, #terms p, #refund p, #services p {
    margin-bottom: 0.75rem;
  }
}

/* ─────────────────────────────────────────────────────────────
   Print Styles
   ───────────────────────────────────────────────────────────── */
@media print {
  body {
    background: #fff;
  }
  
  .breadcrumb-nav {
    display: none;
  }
  
  .section {
    border-top: 0;
    padding: 0.4rem 0;
  }
  
  .general-content a,
  #about a, #contact a, #privacy a, #terms a, #refund a, #services a {
    border: 0;
    text-decoration: underline;
  }
}
