/* Maharashtra Pan Vyapari Mahasangh — shared stylesheet for
   privacy.html, terms.html and payments/index.html */
:root {
  --green-950: #0b3528;
  --green-900: #124a35;
  --green-800: #17613f;
  --green-700: #1f7448;
  --saffron: #d9932f;
  --saffron-dark: #b97a1f;
  --gold: #c9a13b;
  --gold-light: #e3c377;
  --ivory: #faf8f2;
  --cream: #f4efe3;
  --pale-green: #eaf2ea;

  /* Legacy names kept for readability within this file */
  --green-deep: var(--green-900);
  --green-mid: var(--green-700);

  --font-heading: "Noto Serif Devanagari", "Playfair Display", serif;
  --font-body: "Noto Sans Devanagari", "Inter", sans-serif;

  /* Legacy variable names kept so payments/index.html's inline <style>
     (Razorpay checkout UI) continues to work unchanged, remapped to the
     Mahasangh palette instead of the old teal "SaaS" theme. */
  --primary-teal: var(--green-700);
  --primary-gradient: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 100%);
  --dark-bg: var(--green-900);
  --card-bg: rgba(255, 255, 255, 0.97);
  --border-color: rgba(201, 161, 59, 0.35);
  --text-primary: #1c1c1c;
  --text-secondary: #5a5a5a;
  --accent-color: var(--gold);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--ivory);
  color: var(--text-primary);
  line-height: 1.7;
  padding: 0;
  min-height: 100vh;
}

/* Header / Navigation */
header {
  background-color: var(--green-950);
  border-bottom: 1px solid rgba(201, 161, 59, 0.35);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  height: 42px;
  width: 42px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  background: #fff;
  border-radius: 50%;
  padding: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.logo-text h2 {
  margin: 0;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.logo-text span {
  display: block;
  color: var(--gold-light);
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  margin-top: 2px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-link {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-light);
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 30px;
  padding: 4px;
}

.lang-btn {
  font-family: 'Noto Sans Devanagari', 'Inter', sans-serif;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 22px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn:hover { color: #fff; }

.lang-btn.active {
  background: var(--gold);
  color: var(--green-deep);
}

/* Main Layout */
.main-container {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
}

@media (max-width: 900px) {
  .main-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .sidebar {
    display: none;
  }
}

/* Sidebar Menu */
.sidebar {
  position: sticky;
  top: 90px;
  height: fit-content;
}

.sidebar-title {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  color: var(--green-mid);
  margin-bottom: 1.25rem;
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-item a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  display: block;
  padding: 0.5rem 0.75rem;
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
}

.sidebar-item a:hover, .sidebar-item.active a {
  color: var(--green-deep);
  border-left-color: var(--gold);
  background-color: rgba(201, 168, 76, 0.08);
  padding-left: 1rem;
}

/* Document Styling */
.doc-card {
  background: #ffffff;
  border: 1px solid #e8e4dc;
  border-top: 4px solid var(--gold);
  border-radius: 12px;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(27, 67, 50, 0.08);
}

@media (max-width: 600px) {
  .doc-card {
    padding: 1.75rem;
  }
}

.doc-header {
  margin-bottom: 2.5rem;
  border-bottom: 1px solid #e8e4dc;
  padding-bottom: 1.5rem;
}

.doc-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: normal;
  margin-bottom: 0.5rem;
  color: var(--green-deep);
}

@media (max-width: 600px) {
  .doc-title {
    font-size: 2rem;
  }
}

.doc-meta {
  font-size: 0.9rem;
  color: var(--green-mid);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
}

/* Document Content */
.doc-section {
  scroll-margin-top: 100px;
  margin-bottom: 2.5rem;
}

.doc-section h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: normal;
  color: var(--green-deep);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.doc-section h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 24px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

.doc-section p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.doc-section ul {
  list-style-type: none;
  margin-bottom: 1.25rem;
  padding-left: 0.5rem;
}

.doc-section li {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1.5rem;
}

.doc-section li::before {
  content: '✦';
  color: var(--gold);
  position: absolute;
  left: 0;
  top: 0;
}

/* Callout Box */
.callout-box {
  background: rgba(201, 168, 76, 0.1);
  border-left: 4px solid var(--gold);
  padding: 1.5rem;
  border-radius: 0 12px 12px 0;
  margin: 2rem 0;
}

.callout-box p {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0;
}

/* Footer */
footer {
  background-color: var(--green-950);
  border-top: 1px solid rgba(201, 161, 59, 0.3);
  padding: 3rem 2rem;
  margin-top: 6rem;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}

.footer-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--gold-light);
}
