/* ─────────────────────────────────────────────────────────────
   ROHINDIA GROUP — LEGAL PAGES STYLESHEET (legal.css)
   Namespace: lg-
   Depends on: base variables defined in rg.css
───────────────────────────────────────────────────────────── */

/* Page shell */
.lg-page {
  background-color: var(--rg-white);
  min-height: 100vh;
  font-family: var(--rg-font-body);
  color: var(--rg-black);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* ── HERO SECTION (Dark Editorial) ─────────────────────── */
.lg-hero {
  position: relative;
  background-color: #040f1a;
  /* Matches rg footer and solid navbar */
  background-image: linear-gradient(rgba(4, 15, 26, 0.75), rgba(4, 15, 26, 0.75)), url("../images/local/legal.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: calc(var(--rg-navbar-h) + 80px) 0 80px 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: -80px;
}

.lg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  pointer-events: none;
}

.lg-hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
  position: relative;
  z-index: 2;
}

.lg-hero-eyebrow {
  display: inline-block;
  font-family: var(--rg-font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rg-accent);
  margin-bottom: 12px;
}

.lg-hero-title {
  font-family: var(--rg-font-display);
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--rg-white);
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
}

.lg-hero-meta {
  font-family: var(--rg-font-body);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 16px;
}

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

/* ── LAYOUT & CONTENT ────────────────────────────────── */
.lg-main {
  flex: 1;
  background-color: var(--rg-white);
  padding: 80px 0;
}

.lg-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 60px;
  align-items: start;
}

/* Sidebar navigation */
.lg-sidebar {
  position: sticky;
  top: calc(var(--rg-navbar-h) + 40px);
  padding-right: 15px;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.lg-sidebar-title {
  font-family: var(--rg-font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.4);
  margin-bottom: 20px;
}

.lg-sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lg-sidebar-link {
  font-family: var(--rg-font-body);
  font-size: 14px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.6);
  text-decoration: none !important;
  transition: all var(--rg-trans-fast) ease;
  display: inline-block;
  line-height: 1.4;
  border-left: 2px solid transparent;
  padding-left: 12px;
  margin-left: -12px;
}

.lg-sidebar-link:hover {
  color: var(--rg-accent);
  padding-left: 16px;
}

.lg-sidebar-link.active {
  color: var(--rg-accent);
  font-weight: 600;
  border-left-color: var(--rg-accent);
  padding-left: 12px;
}

/* Legal text content */
.lg-content {
  color: #2d3748;
  /* Premium readable dark grey */
  font-size: 16px;
  line-height: 1.8;
  max-width: 800px;
}

.lg-content-section {
  scroll-margin-top: calc(var(--rg-navbar-h) + 60px);
  margin-bottom: 50px;
}

.lg-content-section:last-of-type {
  margin-bottom: 0;
}

.lg-content h2 {
  font-family: var(--rg-font-display);
  font-size: 24px;
  font-weight: 700;
  color: #040f1a;
  margin: 0 0 20px 0;
  letter-spacing: -0.01em;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.lg-content h3 {
  font-family: var(--rg-font-body);
  font-size: 18px;
  font-weight: 600;
  color: #040f1a;
  margin: 30px 0 12px 0;
}

.lg-content p {
  margin: 0 0 20px 0;
}

.lg-content p:last-child {
  margin-bottom: 0;
}

.lg-content ul,
.lg-content ol {
  margin: 0 0 24px 0;
  padding-left: 24px;
}

.lg-content li {
  margin-bottom: 8px;
}

.lg-content li:last-child {
  margin-bottom: 0;
}

.lg-content a {
  color: var(--rg-accent);
  font-weight: 500;
  transition: color var(--rg-trans-fast) ease;
}

.lg-content a:hover {
  color: var(--rg-accent-hover);
  text-decoration: underline !important;
}

.lg-content-table-wrapper {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--rg-card-radius, 8px);
}

.lg-content table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.lg-content th,
.lg-content td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.lg-content th {
  background-color: rgba(0, 0, 0, 0.02);
  font-weight: 600;
  color: #040f1a;
}

.lg-content tr:last-child td {
  border-bottom: none;
}

/* Accordion for mobile menu list */
.lg-mobile-toc {
  display: none;
  background-color: #f7f9fc;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 40px;
}

.lg-mobile-toc-header {
  font-family: var(--rg-font-display);
  font-size: 13px;
  font-weight: 700;
  color: #040f1a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.lg-mobile-toc-header::after {
  content: "+";
  font-size: 16px;
  font-weight: 500;
  transition: transform var(--rg-trans-fast) ease;
}

.lg-mobile-toc.open .lg-mobile-toc-header::after {
  content: "−";
}

.lg-mobile-toc-body {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.lg-mobile-toc.open .lg-mobile-toc-body {
  display: block;
}

/* ── RESPONSIVE STYLES ───────────────────────────────── */
@media (max-width: 991px) {
  .lg-container {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .lg-sidebar {
    display: none;
    /* Replaced by lg-mobile-toc */
  }

  .lg-mobile-toc {
    display: block;
  }

  .lg-main {
    padding: 50px 0;
  }
}

@media (max-width: 768px) {
  .lg-hero {
    padding: calc(var(--rg-navbar-h) + 50px) 0 50px 0;
  }

  .lg-content {
    font-size: 15px;
  }

  .lg-content h2 {
    font-size: 20px;
  }
}