/* ==========================================================================
   AaradhyaSetu — Devotional Legal Documentation Design System
   Brand Colors: Maroon (#6F1D1B), Burgundy (#4A1015), Gold (#D4AF37),
                 Gold Highlight (#F6D783), Background (#FFF8EF), Surface (#FFFFFF)
   ========================================================================== */

:root {
  --color-maroon: #6F1D1B;
  --color-maroon-dark: #4A1015;
  --color-maroon-light: #8E2825;
  --color-gold: #D4AF37;
  --color-gold-highlight: #F6D783;
  --color-gold-subtle: rgba(212, 175, 55, 0.12);
  --color-gold-border: rgba(212, 175, 55, 0.35);
  --color-bg: #FFF8EF;
  --color-surface: #FFFFFF;
  --color-surface-alt: #FBF4EA;
  --color-surface-hover: #F4E8D8;
  --color-text-main: #2B211D;
  --color-text-secondary: #786A60;
  --color-text-muted: #9E8F84;
  --color-border: #E8DACB;
  --color-border-light: #F0E5D8;
  --color-success: #1E6B38;
  --color-success-bg: #EAF7EE;
  --color-warning-bg: #FFF9E6;
  --color-warning-border: #F0CF65;
  --color-info-bg: #EEF4FA;
  --color-info-border: #9BC0E2;
  
  --font-heading: 'Cinzel', 'Noto Serif Devanagari', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 6px rgba(74, 16, 21, 0.05);
  --shadow-md: 0 6px 18px rgba(74, 16, 21, 0.08);
  --shadow-lg: 0 14px 34px rgba(74, 16, 21, 0.12);
  
  --container-max: 1240px;
  --header-height: 74px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.7;
  font-weight: 400;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Accessibility & Focus */
a {
  color: var(--color-maroon);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover, a:focus-visible {
  color: var(--color-maroon-dark);
  text-decoration-color: var(--color-gold);
}

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--color-maroon-dark);
  color: var(--color-gold-highlight);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  z-index: 9999;
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

/* Top Devotional Bar */
.devotional-bar {
  background: linear-gradient(90deg, #4A1015 0%, #6F1D1B 50%, #4A1015 100%);
  color: var(--color-gold-highlight);
  font-size: 0.825rem;
  padding: 8px 16px;
  text-align: center;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.devotional-bar strong {
  color: #FFFFFF;
}

.devotional-bar span.sanskrit {
  font-family: 'Noto Serif Devanagari', serif;
  margin: 0 8px;
  color: var(--color-gold);
}

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 248, 239, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: box-shadow 0.2s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.brand-symbol {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--color-maroon-dark);
  border: 1.5px solid var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  font-size: 1.5rem;
  font-family: 'Noto Serif Devanagari', serif;
  box-shadow: 0 3px 8px rgba(74, 16, 21, 0.2);
  flex-shrink: 0;
  overflow: hidden;
}

.brand-symbol img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-hero-logo {
  width: 110px;
  height: 110px;
  border-radius: 22px;
  border: 2.5px solid var(--color-gold);
  box-shadow: 0 10px 24px rgba(74, 16, 21, 0.35);
  margin-bottom: 18px;
  display: inline-block;
  background: var(--color-maroon-dark);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-hero-logo:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 30px rgba(212, 175, 55, 0.4);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-maroon-dark);
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--color-text-secondary);
  font-weight: 600;
}

/* Header Navigation */
.header-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-maroon-dark);
  background: var(--color-gold-subtle);
}

.nav-link.active {
  font-weight: 600;
  color: var(--color-maroon);
}

.portal-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--color-maroon) 0%, var(--color-maroon-dark) 100%);
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: 1px solid var(--color-gold);
  box-shadow: 0 2px 6px rgba(111, 29, 27, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.portal-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(111, 29, 27, 0.35);
  color: var(--color-gold-highlight) !important;
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  padding: 8px;
  border-radius: var(--radius-sm);
  color: var(--color-maroon);
  cursor: pointer;
  font-size: 1.25rem;
}

/* Breadcrumbs */
.breadcrumbs-bar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border-light);
  padding: 10px 0;
  font-size: 0.85rem;
}

.breadcrumbs-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--color-text-muted);
}

.breadcrumbs-container a {
  color: var(--color-text-secondary);
  text-decoration: none;
}

.breadcrumbs-container a:hover {
  color: var(--color-maroon);
  text-decoration: underline;
}

.breadcrumbs-separator {
  color: var(--color-border);
  font-size: 0.75rem;
}

.breadcrumbs-current {
  color: var(--color-maroon);
  font-weight: 600;
}

/* Document Header Banner */
.doc-header-banner {
  background: linear-gradient(135deg, #4A1015 0%, #6F1D1B 65%, #350B0F 100%);
  color: #FFFFFF;
  padding: 48px 0 42px;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--color-gold);
}

.doc-header-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 85% 20%, rgba(212, 175, 55, 0.18) 0%, transparent 60%);
  pointer-events: none;
}

.banner-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.doc-badge-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.doc-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--color-gold-highlight);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.doc-tag.compliance {
  background: rgba(30, 107, 56, 0.3);
  border-color: rgba(68, 207, 110, 0.5);
  color: #8CF0A8;
}

.doc-title {
  font-family: var(--font-heading);
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1.25;
  color: #FFFFFF;
  margin-bottom: 14px;
  letter-spacing: 0.2px;
}

.doc-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 248, 239, 0.9);
  max-width: 820px;
  line-height: 1.6;
  margin-bottom: 22px;
}

.doc-meta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(255, 248, 239, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 18px;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-item strong {
  color: var(--color-gold-highlight);
}

.banner-actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.action-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.825rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  color: var(--color-gold-highlight);
  border-color: var(--color-gold);
}

/* Main Layout (2 Columns) */
.main-wrapper {
  max-width: var(--container-max);
  margin: 36px auto 60px;
  padding: 0 24px;
  width: 100%;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

/* Single Column Layout (e.g. Hub / About) */
.main-wrapper.single-col {
  grid-template-columns: 1fr;
  max-width: 1060px;
}

/* Sidebar / Table of Contents */
.sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  max-height: calc(100vh - var(--header-height) - 48px);
  overflow-y: auto;
}

.sidebar-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-maroon-dark);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toc-item a {
  display: block;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  transition: all 0.15s ease;
  line-height: 1.4;
}

.toc-item a:hover {
  color: var(--color-maroon);
  background: var(--color-surface-alt);
}

.toc-item.active a {
  color: var(--color-maroon-dark);
  font-weight: 600;
  border-left-color: var(--color-gold);
  background: var(--color-gold-subtle);
}

.toc-item.sub {
  margin-left: 12px;
}

.toc-item.sub a {
  font-size: 0.8rem;
}

.sidebar-divider {
  margin: 18px 0;
  border: 0;
  border-top: 1px solid var(--color-border-light);
}

.sidebar-quick-links h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.sidebar-quick-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-quick-links a {
  font-size: 0.85rem;
  color: var(--color-maroon);
  text-decoration: none;
}

.sidebar-quick-links a:hover {
  text-decoration: underline;
}

/* Legal Content Body */
.legal-content {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 44px 48px;
  box-shadow: var(--shadow-sm);
}

.legal-content section {
  margin-bottom: 48px;
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.legal-content section:last-child {
  margin-bottom: 0;
}

.section-anchor {
  display: flex;
  align-items: baseline;
  gap: 12px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.section-num {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-gold);
  background: var(--color-maroon-dark);
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  display: inline-block;
  line-height: 1.4;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--color-maroon-dark);
  line-height: 1.3;
}

.subsection-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-maroon);
  margin: 28px 0 12px;
  line-height: 1.35;
}

.legal-content p {
  margin-bottom: 16px;
  color: var(--color-text-main);
  font-size: 0.985rem;
  line-height: 1.8;
}

.legal-content p.lead {
  font-size: 1.08rem;
  color: var(--color-maroon-dark);
  font-weight: 500;
  line-height: 1.75;
}

.legal-content ul, .legal-content ol {
  margin: 14px 0 20px 24px;
  color: var(--color-text-main);
}

.legal-content li {
  margin-bottom: 10px;
  line-height: 1.7;
  font-size: 0.975rem;
}

.legal-content strong {
  color: var(--color-maroon-dark);
  font-weight: 600;
}

/* Callout Boxes */
.callout {
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin: 24px 0;
  border-left: 4px solid;
  font-size: 0.94rem;
  line-height: 1.7;
}

.callout.gold {
  background: #FFFDF7;
  border-color: var(--color-gold);
  border: 1px solid var(--color-warning-border);
  border-left: 5px solid var(--color-gold);
}

.callout.maroon {
  background: #FAF0EE;
  border-color: #E2B9B4;
  border-left: 5px solid var(--color-maroon);
}

.callout.success {
  background: var(--color-success-bg);
  border-color: #A3D8B3;
  border-left: 5px solid var(--color-success);
}

.callout.info {
  background: var(--color-info-bg);
  border-color: var(--color-info-border);
  border-left: 5px solid #2B6CB0;
}

.callout-header {
  font-weight: 700;
  color: var(--color-maroon-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 1rem;
}

.callout.success .callout-header {
  color: var(--color-success);
}

.callout.info .callout-header {
  color: #2B6CB0;
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.925rem;
  text-align: left;
}

.legal-table th {
  background: var(--color-surface-alt);
  color: var(--color-maroon-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 2px solid var(--color-gold);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.legal-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text-main);
  vertical-align: top;
}

.legal-table tr:last-child td {
  border-bottom: none;
}

.legal-table tr:hover td {
  background: #FFFAF3;
}

.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge.safe {
  background: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid #B8E4C4;
}

.badge.local {
  background: #E8F4FD;
  color: #1A5FB4;
  border: 1px solid #B4D5F6;
}

.badge.none {
  background: #F3F3F3;
  color: #666666;
  border: 1px solid #D6D6D6;
}

/* Code & Pre */
pre, code {
  font-family: var(--font-mono);
}

code {
  background: var(--color-surface-alt);
  color: var(--color-maroon-dark);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
  border: 1px solid var(--color-border-light);
}

pre {
  background: #251817;
  color: #F8EFEA;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 18px 0;
  border-left: 4px solid var(--color-gold);
}

pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border: none;
}

/* Portal Hub Grid (Index Page) */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin: 32px 0 48px;
}

.hub-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
}

.hub-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-gold);
  box-shadow: var(--shadow-md);
}

.hub-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--color-gold-subtle);
  border: 1px solid var(--color-gold-border);
  color: var(--color-maroon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.hub-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-maroon-dark);
  margin-bottom: 10px;
  line-height: 1.3;
}

.hub-card-desc {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.hub-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--color-border-light);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.hub-card-link {
  font-weight: 600;
  color: var(--color-maroon);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Verification Strip */
.compliance-strip {
  background: linear-gradient(135deg, #FFFDF8 0%, #FAF1E4 100%);
  border: 1.5px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: 26px 30px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
}

.strip-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-maroon-dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.strip-p {
  font-size: 0.93rem;
  color: var(--color-text-secondary);
  margin-bottom: 18px;
}

.strip-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.compliance-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--color-maroon-dark);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.compliance-pill span.icon {
  color: var(--color-gold);
  font-size: 1rem;
}

/* Site Footer */
.site-footer {
  margin-top: auto;
  background: #250B0D;
  color: #E2D3CA;
  border-top: 3px solid var(--color-gold);
  padding: 56px 0 28px;
  font-size: 0.9rem;
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 44px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  color: var(--color-gold-highlight);
  font-size: 1.05rem;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--color-gold);
}

.footer-col p {
  color: #C8B8AE;
  line-height: 1.7;
  font-size: 0.875rem;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: #E2D3CA;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--color-gold-highlight);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.825rem;
  color: #A6948A;
}

.footer-bottom a {
  color: var(--color-gold);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .main-wrapper {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 24px;
  }
  .legal-content {
    padding: 32px 30px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 2px solid var(--color-gold);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    gap: 8px;
  }
  .header-nav.open {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .main-wrapper {
    grid-template-columns: 1fr;
    margin-top: 20px;
  }
  .sidebar {
    position: static;
    max-height: none;
    margin-bottom: 20px;
  }
  .doc-title {
    font-size: 1.85rem;
  }
  .legal-content {
    padding: 24px 20px;
  }
  .doc-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .banner-actions {
    margin-left: 0;
    margin-top: 12px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Print Stylesheet */
@media print {
  body {
    background: #FFFFFF !important;
    color: #000000 !important;
    font-size: 11pt;
  }
  .devotional-bar,
  .site-header,
  .breadcrumbs-bar,
  .sidebar,
  .banner-actions,
  .site-footer,
  .mobile-toggle,
  .skip-link {
    display: none !important;
  }
  .main-wrapper {
    display: block !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .legal-content {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  .doc-header-banner {
    background: none !important;
    color: #000000 !important;
    border-bottom: 2px solid #000000 !important;
    padding: 20px 0 !important;
  }
  .doc-title {
    color: #000000 !important;
    font-size: 18pt !important;
  }
  .doc-subtitle, .doc-meta-row {
    color: #444444 !important;
  }
  a {
    color: #000000 !important;
    text-decoration: underline !important;
  }
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 80%;
  }
  .callout, .table-responsive {
    break-inside: avoid;
    border: 1px solid #CCCCCC !important;
  }
}
