/* =============================================
   LEGAL PAGES — Privacy Policy & Terms
   Garden Sansar Theme
   ============================================= */

/* ── Page Root ─────────────────────────────── */
.legal-page {
  font-family: var(--font-body, 'Inter', sans-serif);
  color: #1a2e1e;
  background: #f8faf8;
}

/* ── Hero ───────────────────────────────────── */
.legal-hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 72px;
  background: linear-gradient(135deg, #0b2d20 0%, #0d3b27 55%, #0a2019 100%);
  color: #fff;
}
.legal-hero--terms {
  background: linear-gradient(135deg, #0d2238 0%, #0a3050 55%, #071826 100%);
}
.legal-hero-bg {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.legal-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: #f8faf8;
  clip-path: ellipse(60% 100% at 50% 100%);
}
.legal-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
}
.legal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: .84rem;
  color: rgba(255,255,255,.55);
}
.legal-breadcrumb a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
}
.legal-breadcrumb a:hover { color: #45e39b; }
.legal-breadcrumb span:first-of-type { font-size: .7rem; }
.legal-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(0,209,125,.18);
  border: 1px solid rgba(0,209,125,.35);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  color: #45e39b;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.legal-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
}
.legal-hero-sub {
  margin: 0 0 28px;
  font-size: 1.05rem;
  color: rgba(255,255,255,.72);
  line-height: 1.75;
  max-width: 700px;
}
.legal-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 0;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
}
.legal-meta-item strong { color: rgba(255,255,255,.85); }
.legal-meta-sep {
  margin: 0 10px;
  color: rgba(255,255,255,.2);
}

/* ── Body Layout ────────────────────────────── */
.legal-body {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  padding-top: 52px;
  padding-bottom: 80px;
  align-items: start;
}

/* ── TOC Sidebar ────────────────────────────── */
.legal-toc {
  position: sticky;
  top: 90px;
}
.legal-toc-inner {
  background: #fff;
  border: 1px solid #deeade;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.legal-toc-title {
  margin: 0 0 16px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #4a7c59;
}
.legal-toc-list {
  margin: 0 0 24px;
  padding: 0 0 0 18px;
  list-style: decimal;
}
.legal-toc-list li {
  margin: 0 0 6px;
  font-size: .82rem;
  line-height: 1.5;
}
.legal-toc-list a {
  color: #3d6b4f;
  text-decoration: none;
  transition: color .2s;
}
.legal-toc-list a:hover { color: #00d17d; }
.legal-toc-list li.active > a { color: #00d17d; font-weight: 600; }
.legal-toc-cta {
  border-top: 1px solid #deeade;
  padding-top: 20px;
  text-align: center;
}
.legal-toc-cta p {
  margin: 0 0 12px;
  font-size: .8rem;
  color: #7a9b85;
}
.legal-toc-btn {
  display: inline-block;
  padding: 9px 18px;
  background: linear-gradient(135deg, #00d17d, #0ba360);
  color: #fff;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.legal-toc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,209,125,.35);
  color: #fff;
}

/* ── Content Area ───────────────────────────── */
.legal-content { min-width: 0; }

.legal-intro-banner {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 24px;
  background: #eaf5ee;
  border-left: 4px solid #00d17d;
  border-radius: 0 12px 12px 0;
  margin-bottom: 36px;
  font-size: .92rem;
  color: #1a3321;
  line-height: 1.7;
}
.legal-intro-banner > span { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.legal-intro-banner a { color: #0ba360; font-weight: 600; }

/* ── Sections ───────────────────────────────── */
.legal-section {
  padding: 40px 0;
  border-bottom: 1px solid #e3ede6;
}
.legal-section:last-child { border-bottom: none; }
.legal-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.legal-section-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  line-height: 1;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #eaf5ee, #d5eddb);
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.legal-section h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: #0d2e18;
}
.legal-section h3 {
  margin: 24px 0 10px;
  font-size: 1rem;
  font-weight: 700;
  color: #1a3d27;
}
.legal-section p {
  margin: 0 0 16px;
  font-size: .95rem;
  line-height: 1.8;
  color: #3a5244;
}
.legal-section a {
  color: #0ba360;
  font-weight: 500;
  text-decoration: underline;
}
.legal-section a:hover { color: #00d17d; }
.legal-note {
  font-size: .85rem !important;
  color: #6a8f77 !important;
  font-style: italic;
}

/* ── Lists ──────────────────────────────────── */
.legal-list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.legal-list li {
  position: relative;
  padding: 10px 14px 10px 42px;
  margin-bottom: 8px;
  background: #f5faf6;
  border-radius: 10px;
  font-size: .92rem;
  line-height: 1.7;
  color: #2e4a36;
}
.legal-list li::before {
  content: '✓';
  position: absolute;
  left: 14px;
  top: 12px;
  color: #00d17d;
  font-weight: 700;
  font-size: .85rem;
}
.legal-list li strong { color: #1a3321; }

/* ── Highlight Box ──────────────────────────── */
.legal-highlight-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  background: rgba(0,209,125,.08);
  border: 1px solid rgba(0,209,125,.25);
  border-radius: 12px;
  font-size: .9rem;
  color: #1a4228;
  line-height: 1.7;
  margin: 20px 0;
}
.legal-highlight-box--warning {
  background: rgba(255,159,64,.08);
  border-color: rgba(255,159,64,.3);
  color: #3d2a0a;
}
.legal-highlight-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }

/* ── Cards Grid ─────────────────────────────── */
.legal-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0;
}
.legal-cards-grid--sm { grid-template-columns: repeat(3, 1fr); }
.legal-card {
  padding: 22px 18px;
  background: #fff;
  border: 1px solid #deeade;
  border-radius: 14px;
  transition: transform .22s, box-shadow .22s;
}
.legal-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.legal-card > span { font-size: 1.6rem; display: block; margin-bottom: 10px; }
.legal-card h4 { margin: 0 0 6px; font-size: .9rem; font-weight: 700; color: #0d2e18; }
.legal-card p { margin: 0; font-size: .82rem; color: #5a7b66; line-height: 1.6; }

/* ── Rights Grid ────────────────────────────── */
.legal-rights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 20px 0;
}
.legal-right-item {
  padding: 20px 16px;
  background: linear-gradient(135deg, #f0faf4, #fff);
  border: 1px solid #d0e8d9;
  border-radius: 14px;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.legal-right-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.07);
}
.legal-right-item > span { font-size: 1.5rem; display: block; margin-bottom: 10px; }
.legal-right-item h4 { margin: 0 0 6px; font-size: .85rem; font-weight: 700; color: #0d2e18; }
.legal-right-item p { margin: 0; font-size: .78rem; color: #5a7b66; line-height: 1.55; }

/* ── Tables ─────────────────────────────────── */
.legal-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: 12px;
  border: 1px solid #deeade;
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.legal-table thead tr {
  background: linear-gradient(135deg, #0b2d20, #0d3b27);
  color: #fff;
}
.legal-table th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .04em;
}
.legal-table td {
  padding: 12px 18px;
  border-top: 1px solid #e8f2ea;
  color: #2e4a36;
  line-height: 1.6;
}
.legal-table tbody tr:nth-child(even) { background: #f5faf6; }
.legal-table tbody tr:hover { background: #eaf5ee; }
.legal-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.legal-badge--yes { background: rgba(0,209,125,.12); color: #0a7a3e; border: 1px solid rgba(0,209,125,.3); }
.legal-badge--no { background: rgba(120,120,120,.1); color: #556; border: 1px solid rgba(120,120,120,.2); }

/* ── Contact Card ───────────────────────────── */
.legal-contact-card {
  background: #fff;
  border: 1px solid #deeade;
  border-radius: 16px;
  padding: 28px;
  margin: 20px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,.05);
}
.legal-contact-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid #eef5f0;
}
.legal-contact-row:last-child { border-bottom: none; padding-bottom: 0; }
.legal-contact-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: #eaf5ee;
  border-radius: 8px;
  display: grid;
  place-items: center;
  margin-top: 2px;
}
.legal-contact-row div {
  font-size: .9rem;
  color: #3a5244;
  line-height: 1.7;
}
.legal-contact-row div strong { color: #0d2e18; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; display: block; margin-bottom: 2px; }
.legal-contact-row a { color: #0ba360; font-weight: 500; text-decoration: none; }
.legal-contact-row a:hover { color: #00d17d; text-decoration: underline; }

/* ── Also See Banner ────────────────────────── */
.legal-also-see {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 22px 26px;
  margin-top: 40px;
  background: linear-gradient(135deg, #0b2d20, #0d3b27);
  border-radius: 16px;
  color: #fff;
}
.legal-also-see > span { font-size: 1.8rem; flex-shrink: 0; }
.legal-also-see div { font-size: .95rem; }
.legal-also-see strong { display: block; color: rgba(255,255,255,.6); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.legal-also-see a { color: #45e39b; font-weight: 700; font-size: 1rem; text-decoration: none; }
.legal-also-see a:hover { text-decoration: underline; }

/* ── TOC Active State JS ────────────────────── */
.legal-toc-list li.toc-active > a {
  color: #00d17d;
  font-weight: 700;
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 1024px) {
  .legal-body {
    grid-template-columns: 220px 1fr;
    gap: 32px;
  }
  .legal-cards-grid,
  .legal-cards-grid--sm { grid-template-columns: repeat(2, 1fr); }
  .legal-rights-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .legal-body {
    grid-template-columns: 1fr;
    padding-top: 32px;
    padding-bottom: 56px;
  }
  .legal-toc {
    position: static;
    order: -1;
  }
  .legal-hero { padding: 80px 0 60px; }
  .legal-hero h1 { font-size: 2rem; }
  .legal-meta-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .legal-meta-sep { display: none; }
  .legal-cards-grid,
  .legal-cards-grid--sm { grid-template-columns: repeat(2, 1fr); }
  .legal-rights-grid { grid-template-columns: repeat(2, 1fr); }
  .legal-section-header { gap: 10px; }
  .legal-section h2 { font-size: 1.2rem; }
}

@media (max-width: 480px) {
  .legal-hero { padding: 70px 0 50px; }
  .legal-cards-grid,
  .legal-cards-grid--sm,
  .legal-rights-grid { grid-template-columns: 1fr; }
  .legal-toc-inner { padding: 20px 16px; }
  .legal-contact-card { padding: 20px 16px; }
  .legal-intro-banner { flex-direction: column; gap: 10px; }
  .legal-section-icon { width: 40px; height: 40px; font-size: 1.3rem; }
}
