/* ============================================================
   ShaniMandirSeva — Legal Pages Stylesheet
   Design: Pure White + Saffron/Orange Accent
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #FFFFFF;
  color: #1A1208;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── CSS Variables ── */
:root {
  --saffron:       #E8610A;
  --saffron-dark:  #C24F08;
  --saffron-light: #F4874B;
  --saffron-pale:  #FEF3EC;
  --saffron-10:    rgba(232, 97, 10, 0.10);
  --saffron-20:    rgba(232, 97, 10, 0.20);
  --gold:          #D4A017;
  --white:         #FFFFFF;
  --off-white:     #FDF9F5;
  --light-gray:    #F5F0EB;
  --border:        #E8D5C4;
  --border-light:  #F0E4D8;
  --text-dark:     #1A1208;
  --text-medium:   #4A3728;
  --text-light:    #7A6558;
  --text-muted:    #A09080;
  --shadow-sm:     0 2px 8px rgba(232, 97, 10, 0.07);
  --shadow-md:     0 4px 24px rgba(232, 97, 10, 0.11);
  --shadow-lg:     0 8px 48px rgba(232, 97, 10, 0.16);
  --radius:        8px;
  --radius-lg:     14px;
  --radius-xl:     20px;
  --transition:    all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width:     1160px;
}

/* ── Typography ── */
h1, h2, h3, h4 { font-family: 'Cormorant Garamond', Georgia, serif; line-height: 1.18; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem);   font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.35rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { font-size: 0.965rem; color: var(--text-medium); line-height: 1.78; }
a  { text-decoration: none; color: var(--saffron); transition: var(--transition); }
a:hover { color: var(--saffron-dark); }
ul, ol { padding-left: 1.25rem; }
li { font-size: 0.955rem; color: var(--text-medium); line-height: 1.72; margin-bottom: 5px; }

/* ── Utility ── */
.container     { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.text-saffron  { color: var(--saffron); }
.text-muted    { color: var(--text-muted); }
.fw-600        { font-weight: 600; }
.mt-4          { margin-top: 4px; }
.mt-8          { margin-top: 8px; }
.mt-12         { margin-top: 12px; }
.mt-16         { margin-top: 16px; }
.mt-20         { margin-top: 20px; }
.mt-28         { margin-top: 28px; }

/* ── Badge / Tag ── */
.badge {
  display: inline-block;
  padding: 4px 13px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge-saffron { background: var(--saffron-10); color: var(--saffron); }
.badge-gold    { background: rgba(212,160,23,0.12); color: var(--gold); }


/* ── ════════════════════════════════════════════
   PAGE HERO
   ════════════════════════════════════════════ ── */

.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(255,255,255,0.07) 0%, transparent 65%);
}
.page-hero::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0;
  height: 40px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero-inner { position: relative; z-index: 1; text-align: center; }
.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.92);
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 16px; border-radius: 100px;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.22);
}
.page-hero h1 { color: var(--white); margin-bottom: 14px; }
.page-hero p  { color: rgba(255,255,255,0.84); max-width: 560px; margin: 0 auto; font-size: 1rem; }
.hero-meta {
  display: flex; align-items: center; justify-content: center; gap: 20px;
  margin-top: 24px; flex-wrap: wrap;
}
.hero-meta-item { font-size: 0.8rem; color: rgba(255,255,255,0.75); }
.hero-meta-dot  { width: 4px; height: 4px; background: rgba(255,255,255,0.4); border-radius: 50%; }

/* ── ════════════════════════════════════════════
   MAIN CONTENT LAYOUT
   ════════════════════════════════════════════ ── */
.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
  padding: 56px 0 80px;
}

/* Sidebar TOC */
.toc-sidebar {
  position: sticky;
  top: 86px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 0;
  overflow: hidden;
}
.toc-header {
  padding: 0 20px 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-light);
}
.toc-list { list-style: none; padding: 12px 0 0; margin: 0; }
.toc-list li { margin: 0; }
.toc-list a {
  display: block; padding: 8px 20px;
  font-size: 0.84rem; font-weight: 500;
  color: var(--text-medium);
  border-left: 3px solid transparent;
  transition: var(--transition);
}
.toc-list a:hover { color: var(--saffron); background: var(--saffron-10); border-left-color: var(--saffron-light); }
.toc-list a.toc-active { color: var(--saffron); background: var(--saffron-10); border-left-color: var(--saffron); font-weight: 700; }
.toc-footer {
  margin: 16px 16px 0;
  padding: 14px;
  background: var(--saffron-pale);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.toc-footer p  { font-size: 0.8rem; color: var(--text-light); line-height: 1.55; }
.toc-footer a  { font-size: 0.8rem; font-weight: 700; }

/* ── Legal Sections ── */
.legal-content { min-width: 0; }
.legal-section {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  margin-bottom: 24px;
  scroll-margin-top: 88px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.legal-section:hover { border-color: var(--border); box-shadow: var(--shadow-sm); }
.section-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--saffron); color: var(--white);
  font-size: 0.8rem; font-weight: 700;
  margin-bottom: 12px; flex-shrink: 0;
}
.section-header {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1.5px solid var(--border-light);
}
.section-header-text h2 { font-size: 1.45rem; margin-bottom: 3px; }
.section-header-text p  { font-size: 0.85rem; color: var(--text-light); margin: 0; }

/* Sub-sections */
.sub-section { margin-top: 24px; }
.sub-section:first-child { margin-top: 0; }
.sub-section h3 { font-size: 1.1rem; color: var(--text-dark); margin-bottom: 10px; }
.sub-section h4 { font-size: 0.96rem; color: var(--saffron); font-family: 'Inter', sans-serif; font-weight: 700; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.06em; }

/* Divider between sub-sections */
.sub-divider { border: none; border-top: 1px dashed var(--border); margin: 24px 0; }

/* Info boxes */
.info-box {
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 16px 0;
  display: flex; gap: 14px; align-items: flex-start;
}
.info-box-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.info-box-body p { margin: 0; font-size: 0.9rem; }
.info-box-body strong { font-weight: 700; display: block; margin-bottom: 4px; font-size: 0.88rem; }
.info-box.info   { background: #EFF6FF; border: 1px solid #BFDBFE; }
.info-box.info .info-box-icon { color: #2563EB; }
.info-box.warn   { background: #FFFBEB; border: 1px solid #FDE68A; }
.info-box.warn .info-box-icon { color: #D97706; }
.info-box.success{ background: #F0FDF4; border: 1px solid #BBF7D0; }
.info-box.success .info-box-icon { color: #16A34A; }
.info-box.saffron{ background: var(--saffron-pale); border: 1px solid var(--border); }
.info-box.saffron .info-box-icon { color: var(--saffron); }

/* Data table */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 16px 0; }
.data-table th {
  background: var(--saffron); color: var(--white);
  padding: 11px 16px; text-align: left;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
}
.data-table th:first-child { border-radius: var(--radius) 0 0 0; }
.data-table th:last-child  { border-radius: 0 var(--radius) 0 0; }
.data-table td { padding: 11px 16px; border-bottom: 1px solid var(--border-light); color: var(--text-medium); vertical-align: top; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: var(--off-white); }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }

/* Styled list */
.check-list { list-style: none; padding: 0; margin: 10px 0; }
.check-list li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 7px 0; border-bottom: 1px solid var(--border-light);
  font-size: 0.935rem;
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before { content: ''; display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--saffron); flex-shrink: 0; margin-top: 2px; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 5l3.5 3.5L11 1' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-size: 11px 9px; background-repeat: no-repeat; background-position: center; }

.cross-list { list-style: none; padding: 0; margin: 10px 0; }
.cross-list li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 7px 0; border-bottom: 1px solid var(--border-light);
  font-size: 0.935rem;
}
.cross-list li:last-child { border-bottom: none; }
.cross-list li::before { content: ''; display: block; width: 18px; height: 18px; border-radius: 50%; background: #FEE2E2; flex-shrink: 0; margin-top: 2px; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 2l6 6M8 2L2 8' stroke='%23DC2626' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); background-size: 10px 10px; background-repeat: no-repeat; background-position: center; }

/* Contact card */
.contact-card {
  background: linear-gradient(135deg, var(--saffron) 0%, var(--saffron-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  color: var(--white);
  margin-top: 24px;
}
.contact-card h3 { color: var(--white); font-size: 1.35rem; margin-bottom: 6px; }
.contact-card p  { color: rgba(255,255,255,0.82); margin-bottom: 18px; font-size: 0.93rem; }
.contact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.contact-item {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.contact-item-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-bottom: 4px; }
.contact-item-value { font-size: 0.9rem; font-weight: 600; color: var(--white); word-break: break-all; }

/* Last updated banner */
.updated-banner {
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-bottom: 32px;
}
.updated-banner p { font-size: 0.88rem; color: var(--text-light); margin: 0; }
.updated-banner strong { color: var(--text-dark); }

/* ── ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ ── */
@media (max-width: 1024px) {
  .legal-layout { grid-template-columns: 200px 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; }
  .toc-sidebar  { position: static; }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .site-nav  { display: none; flex-direction: column; position: absolute; top: 66px; left: 0; right: 0; background: var(--white); border-bottom: 2px solid var(--saffron); padding: 12px 16px; gap: 2px; box-shadow: var(--shadow-md); }
  .site-nav.open { display: flex; }
  .nav-toggle    { display: flex; }
  .header-inner  { position: relative; }
  .legal-section { padding: 24px 20px; }
  .contact-grid  { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .page-hero     { padding: 52px 0 44px; }
}
@media (max-width: 480px) {
  .container   { padding: 0 16px; }
  .hero-meta   { display: none; }
  .updated-banner { flex-direction: column; align-items: flex-start; }
}
