/* ============================================================
   mledger.css — Shared styles for mledger.html &
   mledger-privacy.html
   ============================================================ */

/* ── M-Ledger Hero ──────────────────────────────────────────── */
.mledger-hero {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #047857 100%);
  color: white;
  padding: 120px 0 80px;
  margin-top: 73px;
}

.mledger-hero-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.mledger-hero-logo {
  flex-shrink: 0;
}

.mledger-hero-logo img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  border-radius: 1.5rem;
  background: white;
  padding: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.mledger-hero-text {
  flex: 1;
  min-width: 280px;
}

.mledger-hero-text h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.mledger-tagline {
  font-size: 1.25rem;
  color: #6ee7b7;
  margin-bottom: 1rem;
  font-weight: 500;
}

.mledger-description {
  font-size: 1.1rem;
  opacity: 0.92;
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 560px;
}

/* ── Overview Section ─────────────────────────────────────────── */
.mledger-overview {
  background: white;
  padding: 80px 0;
}

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.overview-text p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-color);
}

.overview-stats {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--light-color);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--primary-color);
}

.stat-icon {
  font-size: 2rem;
  width: 52px;
  text-align: center;
  flex-shrink: 0;
}

.stat-info h3 {
  font-size: 1.2rem;
  color: var(--dark-color);
  margin-bottom: 0.2rem;
}

.stat-info p {
  font-size: 0.9rem;
  color: var(--text-color);
}

/* ── Features Section ─────────────────────────────────────────── */
.mledger-features {
  background: var(--light-color);
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.feature-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.2rem;
  color: var(--dark-color);
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-color);
  line-height: 1.65;
  font-size: 0.975rem;
}

/* ── Pricing Section ──────────────────────────────────────────── */
.mledger-pricing {
  background: white;
  padding: 80px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  border: 2px solid var(--border-color);
  border-radius: 1rem;
  padding: 2.5rem;
  position: relative;
  transition: all 0.3s;
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
}

.pricing-card-premium {
  border-color: var(--primary-color);
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.04) 0%,
    rgba(5, 150, 105, 0.04) 100%
  );
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: white;
  padding: 0.3rem 1.2rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.pricing-header {
  margin-bottom: 1.75rem;
  text-align: center;
}

.pricing-header h3 {
  font-size: 1.75rem;
  color: var(--dark-color);
  margin-bottom: 0.25rem;
}

.pricing-sub {
  color: var(--text-color);
  font-size: 0.95rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
  color: var(--text-color);
}

.pricing-features li:last-child {
  border-bottom: none;
}

/* ── CTA Section ──────────────────────────────────────────────── */
.mledger-cta {
  background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.mledger-cta .btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.mledger-cta .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ============================================================
   Privacy Policy Styles
   ============================================================ */

/* ── Privacy Hero ─────────────────────────────────────────────── */
.privacy-hero {
  background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 100%);
  color: white;
  padding: 120px 0 60px;
  margin-top: 73px;
}

.privacy-hero-content {
  max-width: 780px;
}

.privacy-app-brand {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.privacy-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: white;
  border-radius: 1rem;
  padding: 0.5rem;
}

.privacy-app-brand h1 {
  font-size: 2.25rem;
  font-weight: 700;
}

.privacy-effective {
  font-size: 0.9rem;
  opacity: 0.75;
  margin-bottom: 1rem;
}

.privacy-intro {
  font-size: 1.05rem;
  line-height: 1.75;
  opacity: 0.95;
  margin-bottom: 2rem;
}

.privacy-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.privacy-nav-links a {
  color: #bfdbfe;
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(191, 219, 254, 0.4);
  border-radius: 2rem;
  transition: all 0.2s;
}

.privacy-nav-links a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

/* ── Privacy Body ─────────────────────────────────────────────── */
.privacy-content {
  padding: 60px 0 80px;
  background: white;
}

.privacy-body {
  max-width: 820px;
  margin: 0 auto;
}

.privacy-section {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-color);
}

.privacy-section:last-of-type {
  border-bottom: none;
}

.privacy-section h2 {
  font-size: 1.75rem;
  color: var(--dark-color);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--primary-color);
  display: inline-block;
}

.privacy-section h3 {
  font-size: 1.15rem;
  color: var(--dark-color);
  margin: 1.5rem 0 0.75rem;
}

.privacy-section p {
  color: var(--text-color);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.privacy-section ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.privacy-section ul li {
  color: var(--text-color);
  line-height: 1.75;
  margin-bottom: 0.5rem;
}

.privacy-section a {
  color: var(--primary-color);
  text-decoration: underline;
}

.privacy-section code {
  font-family: "Courier New", monospace;
  background: var(--light-color);
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.9em;
}

.privacy-highlight {
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  margin: 1rem 0;
  font-size: 0.975rem;
  line-height: 1.7;
}

.privacy-highlight-green {
  background: #d1fae5;
  border-left: 4px solid var(--primary-color);
  color: #065f46;
}

/* ── Permissions Table ────────────────────────────────────────── */
.permissions-table {
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  overflow: hidden;
  margin: 1.25rem 0;
}

.permission-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

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

.permission-row-header {
  background: var(--light-color);
  font-weight: 600;
  color: var(--dark-color);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.permission-row span {
  font-size: 0.95rem;
  color: var(--text-color);
  line-height: 1.6;
}

/* ── Contact Block ────────────────────────────────────────────── */
.contact-block {
  background: var(--light-color);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-top: 1rem;
}

.contact-detail {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.975rem;
}

.contact-detail:last-child {
  border-bottom: none;
}

.contact-label {
  font-weight: 600;
  color: var(--dark-color);
  min-width: 90px;
}

.contact-detail a {
  color: var(--primary-color);
}

/* ── Back Links ───────────────────────────────────────────────── */
.privacy-back {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  .mledger-hero-content {
    flex-direction: column;
    text-align: center;
  }

  .mledger-hero-text h1 {
    font-size: 2.25rem;
  }

  .overview-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .permission-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .permission-row-header {
    display: none;
  }

  .privacy-app-brand {
    flex-direction: column;
    text-align: center;
  }

  .privacy-back {
    flex-direction: column;
  }

  .privacy-back .btn {
    text-align: center;
  }
}
