/* ==========================================================================
   Amrit Poshan Vatika - Official Legal Document Stylesheet (Light Theme)
   Government of Rajasthan | Department of Women & Child Development
   ========================================================================== */

@import url('admin.css');
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;1,300&display=swap');

:root {
  --legal-paper-bg: #ffffff;
  --legal-paper-border: #cbd5e1;
  --legal-text-heading: #0f172a;
  --legal-text-body: #1e293b;
  --legal-accent: #059669;
  --legal-gold: #d97706;
}

body {
  background-color: var(--bg-main);
  color: var(--legal-text-body);
}

.privacy-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* Legal Header Banner */
.privacy-header {
  background: #ffffff;
  border: 1px solid var(--legal-paper-border);
  border-radius: 18px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  position: relative;
  text-align: center;
}

.privacy-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 18px 18px 0 0;
}

.govt-seal-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.govt-seal-icon {
  font-size: 2.8rem;
}

.privacy-header h1 {
  font-family: 'Merriweather', serif;
  font-size: 2.1rem;
  color: var(--legal-text-heading);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.privacy-header p {
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 720px;
  margin: 0 auto 1.5rem auto;
}

/* Statutory Metadata Box */
.legal-metadata-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: 0.82rem;
}

.metadata-item label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.metadata-item span {
  font-weight: 600;
  color: var(--legal-text-heading);
}

/* Two-column Layout */
.privacy-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 2rem;
}

/* Sticky Table of Contents */
.toc-card {
  position: sticky;
  top: 2rem;
  background: #ffffff;
  border: 1px solid var(--legal-paper-border);
  border-radius: 16px;
  padding: 1.5rem;
  height: fit-content;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.toc-card h3 {
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--legal-text-heading);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.toc-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  display: block;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  font-weight: 500;
}

.toc-list a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

/* Main Legal Paper Body */
.privacy-body {
  background: #ffffff;
  border: 1px solid var(--legal-paper-border);
  border-radius: 20px;
  padding: 3rem 2.75rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  position: relative;
}

/* Official Legal Section Styling */
.privacy-section {
  margin-bottom: 2.75rem;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 2rem;
}

.privacy-section:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.article-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 700;
  display: block;
  margin-bottom: 0.25rem;
}

.privacy-section h2 {
  font-family: 'Merriweather', serif;
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
  color: var(--legal-text-heading);
  font-weight: 700;
}

.privacy-section h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.05rem;
  margin: 1.5rem 0 0.75rem 0;
  color: var(--primary);
}

.privacy-section p {
  line-height: 1.8;
  color: var(--legal-text-body);
  margin-bottom: 1.15rem;
  font-size: 0.95rem;
}

.privacy-section ul, .privacy-section ol {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.privacy-section li {
  margin-bottom: 0.6rem;
  color: var(--legal-text-body);
  font-size: 0.95rem;
}

/* Legal Callout & Statutory Notice Boxes */
.callout-box {
  background: #f8fafc;
  border-left: 4px solid var(--primary);
  border-right: 1px solid #e2e8f0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 1.25rem 1.5rem;
  border-radius: 0 12px 12px 0;
  margin: 1.75rem 0;
}

.callout-box p {
  margin-bottom: 0;
  font-size: 0.92rem;
  color: var(--legal-text-heading);
  font-weight: 500;
}

/* Print Legal Document Formatting */
@media print {
  body { background: white !important; color: black !important; }
  .privacy-container { max-width: 100% !important; padding: 0 !important; }
  .privacy-layout { grid-template-columns: 1fr !important; }
  .toc-card, .btn-secondary, .print-btn, .sidebar, .theme-toggle-btn { display: none !important; }
  .privacy-header, .privacy-body { border: none !important; box-shadow: none !important; padding: 0 !important; }
  .privacy-section { page-break-inside: avoid; }
}

@media (max-width: 768px) {
  .privacy-layout { grid-template-columns: 1fr; }
  .toc-card { display: none; }
  .privacy-body { padding: 1.75rem; }
}
