:root {
  --primary: #FF3B30;
  --bg: #FFFFFF; /* Pure white background */
  --sidebar-bg: #FFFFFF;
  --text-main: #111827;
  --text-muted: #6B7280;
  --accent-soft: rgba(255, 59, 48, 0.08);
  --sidebar-width: 280px;
  --border: #E5E7EB;
  --transition: all 0.2s ease-out;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  background-color: var(--bg);
  color: var(--text-main);
  overflow-x: hidden;
  display: flex;
  min-height: 100vh;
}

/* Mobile Header - Compact for share page */
.mobile-header {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
  align-items: center;
  z-index: 900;
}

.logo-icon-small {
  width: 28px;
  height: 28px;
  background: var(--primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-right: 10px;
}

.logo-text-small {
  font-weight: 700;
  font-size: 0.9rem;
}

/* Sidebar Styling - Only for KB pages */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  position: fixed;
  left: -280px;
  top: 0;
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  z-index: 1000;
  transition: var(--transition);
}

.sidebar.open {
  left: 0;
}

/* Content Area */
.main-content {
  flex: 1;
  width: 100%;
  margin-left: 0;
  padding: 56px 0 0 0;
  background: white;
  min-height: 100vh;
}

/* Legal Content Section - Added Padding & Spacing */
.content-section {
  padding: 24px 20px 40px;
  max-width: 800px;
  margin: 0 auto;
}

.content-section h1 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-main);
}

.updated-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  display: block;
}

.legal-block {
  margin-bottom: 28px;
}

.legal-block h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}

.legal-block p, .legal-block li {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4B5563;
  margin-bottom: 10px;
}

.legal-block ul {
  padding-left: 20px;
  margin-bottom: 24px;
}

/* About Page - Mission Cards */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 32px;
}

.about-card {
  padding: 24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: var(--transition);
}

.about-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.about-card i {
  color: var(--primary);
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
}

.about-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.about-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* FAQ / Help Center Styles */
.faq-container {
  margin-top: 24px;
}

.faq-item {
  background: #F9FAFB;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.faq-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}

.faq-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.contact-card {
  margin-top: 40px;
  padding: 30px 20px;
  background: linear-gradient(135deg, rgba(255,59,48,0.05) 0%, rgba(255,59,48,0.02) 100%);
  border-radius: 20px;
  text-align: center;
  border: 1px dashed var(--primary);
}

.contact-card i {
  color: var(--primary);
  margin-bottom: 16px;
}

footer {
  padding: 30px 20px;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* News Card - FULL SCREEN EDGE TO EDGE */
.preview-container {
  display: none;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

.news-card {
  width: 100%;
  background: white;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.news-image-container {
  width: 100%;
  height: 210px;
  background: #f0f0f0;
}

#news-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-content {
  padding: 16px 0; /* Zero left/right padding as requested */
}

/* Special class for text items inside the card to ensure they touch the edges */
#news-title, #news-body, #app-btn-main {
  width: 100%;
  margin: 0 !important;
}

#news-title {
  padding: 16px 12px 8px; /* Tiny bit needed for readability but keeping minimal */
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
}

#news-body {
  padding: 0 12px 20px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #4B5563;
}

.app-btn {
  margin: 0 12px !important;
  width: calc(100% - 24px) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--primary);
  color: white;
  padding: 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.card-loader {
  padding: 80px 20px;
  text-align: center;
  color: var(--text-muted);
}

.spinner {
  width: 32px;
  height: 32px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
