/**
 * Cricbun Static Pages Stylesheet
 * 
 * Unified styling for all static pages (Privacy, Terms, FAQ, Contact, etc.)
 * Uses the same design tokens as premium.min.css
 */

/* ============================================================
   PAGE CONTAINER & LAYOUT
   ============================================================ */
.static-page {
  min-height: 100vh;
  padding-top: calc(var(--header-height, 70px) + 20px);
  padding-bottom: 100px;
}

.page-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--accent, #0a84ff) 0%, var(--accent-hover, #0071e3) 100%);
  border-radius: var(--radius, 12px);
  padding: 40px;
  margin-bottom: 30px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-md, 0 8px 28px rgba(16, 24, 40, 0.08));
}

.page-hero-content {
  flex: 1;
}

.page-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-hero h1 i {
  font-size: 1.8rem;
  opacity: 0.9;
}

.page-hero p {
  margin: 0;
  opacity: 0.9;
  font-size: 1.1rem;
}

.page-hero-icon {
  font-size: 5rem;
  opacity: 0.15;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  margin-bottom: 12px;
  opacity: 0.85;
}

.breadcrumb a {
  color: white;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb .sep {
  opacity: 0.6;
}

/* ============================================================
   SECTION NAVIGATION
   ============================================================ */
.section-nav {
  background: var(--panel, #f8f9fb);
  border-radius: var(--radius, 12px);
  padding: 12px;
  margin-bottom: 30px;
  border: 1px solid var(--border-light, #eef2f6);
  position: sticky;
  top: calc(var(--header-height, 70px) + 12px);
  z-index: 50;
  box-shadow: var(--shadow-sm, 0 4px 14px rgba(16, 24, 40, 0.06));
}

.section-nav-inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.section-nav-inner::-webkit-scrollbar {
  display: none;
}

.section-nav a {
  padding: 10px 18px;
  background: var(--bg, #ffffff);
  border: 1px solid var(--border-light, #eef2f6);
  border-radius: 10px;
  color: var(--muted, #65707a);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.section-nav a:hover {
  color: var(--accent, #0a84ff);
  border-color: var(--accent, #0a84ff);
  background: rgba(10, 132, 255, 0.05);
}

.section-nav a.active {
  background: linear-gradient(135deg, var(--accent, #0a84ff), var(--accent-hover, #0071e3));
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(10, 132, 255, 0.3);
}

/* ============================================================
   CONTENT SECTIONS
   ============================================================ */
.content-section {
  background: var(--panel, #f8f9fb);
  border-radius: var(--radius, 12px);
  padding: 30px;
  margin-bottom: 20px;
  border: 1px solid var(--border-light, #eef2f6);
}

.content-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text, #0f1720);
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent, #0a84ff);
  display: flex;
  align-items: center;
  gap: 10px;
}

.content-section h2 i {
  color: var(--accent, #0a84ff);
}

.content-section h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text, #0f1720);
  margin: 24px 0 12px 0;
}

.content-section h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text, #0f1720);
  margin: 18px 0 10px 0;
}

.content-section p {
  color: var(--muted, #65707a);
  line-height: 1.7;
  margin: 0 0 16px 0;
}

.content-section ul,
.content-section ol {
  color: var(--muted, #65707a);
  padding-left: 24px;
  margin: 0 0 16px 0;
}

.content-section li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* ============================================================
   CARDS & GRIDS
   ============================================================ */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.info-card {
  background: var(--bg, #ffffff);
  border-radius: var(--card-radius, 10px);
  padding: 24px;
  border: 1px solid var(--border-light, #eef2f6);
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md, 0 8px 28px rgba(16, 24, 40, 0.08));
  border-color: var(--accent, #0a84ff);
}

.info-card .card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--accent, #0a84ff), var(--accent-hover, #0071e3));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.info-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text, #0f1720);
  margin: 0 0 8px 0;
}

.info-card p {
  color: var(--muted, #65707a);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg, #ffffff);
  border-radius: var(--card-radius, 10px);
  border: 1px solid var(--border-light, #eef2f6);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--accent, #0a84ff);
}

.faq-question {
  padding: 18px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: rgba(10, 132, 255, 0.03);
}

.faq-question h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text, #0f1720);
  flex: 1;
}

.faq-question i {
  color: var(--muted, #65707a);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
  color: var(--accent, #0a84ff);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 24px 18px;
}

.faq-answer p {
  margin: 0 0 12px 0;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--text, #0f1720);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg, #ffffff);
  border: 2px solid var(--border-light, #eef2f6);
  border-radius: var(--card-radius, 10px);
  color: var(--text, #0f1720);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent, #0a84ff);
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.1);
}

.form-control::placeholder {
  color: var(--muted, #65707a);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--card-radius, 10px);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent, #0a84ff), var(--accent-hover, #0071e3));
  color: white;
  box-shadow: 0 4px 15px rgba(10, 132, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 132, 255, 0.4);
}

.btn-secondary {
  background: var(--panel, #f8f9fb);
  color: var(--text, #0f1720);
  border: 1px solid var(--border-light, #eef2f6);
}

.btn-secondary:hover {
  background: var(--bg, #ffffff);
  border-color: var(--accent, #0a84ff);
  color: var(--accent, #0a84ff);
}

/* ============================================================
   TABLES
   ============================================================ */
.data-table {
  width: 100%;
  background: var(--bg, #ffffff);
  border-radius: var(--card-radius, 10px);
  overflow: hidden;
  border: 1px solid var(--border-light, #eef2f6);
}

.data-table .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light, #eef2f6);
}

.data-table .row:last-child {
  border-bottom: none;
}

.data-table .row.header {
  background: var(--panel, #f8f9fb);
  font-weight: 600;
  color: var(--text, #0f1720);
}

.data-table .label {
  font-weight: 500;
  color: var(--text, #0f1720);
}

.data-table .value {
  color: var(--muted, #65707a);
}

/* ============================================================
   ALERTS & NOTICES
   ============================================================ */
.alert {
  padding: 16px 20px;
  border-radius: var(--card-radius, 10px);
  margin: 20px 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.alert-info {
  background: rgba(10, 132, 255, 0.1);
  border: 1px solid rgba(10, 132, 255, 0.3);
  color: var(--accent, #0a84ff);
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #d97706;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #059669;
}

.alert i {
  font-size: 1.2rem;
  margin-top: 2px;
}

.alert-content h4 {
  margin: 0 0 4px 0;
  font-weight: 600;
}

.alert-content p {
  margin: 0;
  color: inherit;
  opacity: 0.9;
}

/* ============================================================
   CONTACT INFO
   ============================================================ */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg, #ffffff);
  border-radius: var(--card-radius, 10px);
  border: 1px solid var(--border-light, #eef2f6);
  transition: all 0.3s ease;
}

.contact-method:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm, 0 4px 14px rgba(16, 24, 40, 0.06));
  border-color: var(--accent, #0a84ff);
}

.contact-method .icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent, #0a84ff), var(--accent-hover, #0071e3));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-method h4 {
  margin: 0 0 4px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text, #0f1720);
}

.contact-method p {
  margin: 0;
  color: var(--muted, #65707a);
  font-size: 0.9rem;
}

.contact-method a {
  color: var(--accent, #0a84ff);
  text-decoration: none;
  font-weight: 500;
}

.contact-method a:hover {
  text-decoration: underline;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.page-cta {
  background: linear-gradient(135deg, var(--panel, #f8f9fb), var(--bg, #ffffff));
  border-radius: var(--radius, 12px);
  padding: 40px;
  text-align: center;
  border: 1px solid var(--border-light, #eef2f6);
  margin-top: 40px;
}

.page-cta .cta-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--accent, #0a84ff), var(--accent-hover, #0071e3));
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  margin: 0 auto 20px;
}

.page-cta h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text, #0f1720);
  margin: 0 0 8px 0;
}

.page-cta p {
  color: var(--muted, #65707a);
  margin: 0 0 24px 0;
}

.page-cta .btn-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   LAST UPDATED BADGE
   ============================================================ */
.last-updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(10, 132, 255, 0.1);
  color: var(--accent, #0a84ff);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 20px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .static-page {
    padding-top: calc(var(--header-height, 60px) + 12px);
    padding-bottom: 120px;
  }

  .page-container {
    padding: 0 16px;
  }

  .page-hero {
    padding: 28px 24px;
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .page-hero h1 {
    font-size: 1.6rem;
    justify-content: center;
  }

  .page-hero-icon {
    font-size: 3rem;
    position: static;
  }

  .breadcrumb {
    justify-content: center;
  }

  .section-nav {
    top: calc(var(--header-height, 60px) + 8px);
    padding: 10px;
  }

  .section-nav a {
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .content-section {
    padding: 24px 20px;
  }

  .content-section h2 {
    font-size: 1.3rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .contact-methods {
    grid-template-columns: 1fr;
  }

  .page-cta {
    padding: 30px 24px;
  }

  .page-cta .btn-group {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .page-hero h1 {
    font-size: 1.4rem;
  }

  .content-section {
    padding: 20px 16px;
  }

  .faq-question {
    padding: 14px 18px;
  }

  .faq-item.active .faq-answer {
    padding: 0 18px 14px;
  }
}
