/* Legal pages. Scoped so marketing layouts stay unchanged. */
.sg-legal-main { padding-top: 4rem; }
.sg-legal-wrap { max-width: 76rem; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.sg-legal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: rgba(101, 183, 30, 0.16);
  color: #1e4200;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
html[dir="rtl"] .sg-legal-kicker { letter-spacing: 0; text-transform: none; font-size: 13px; }
.sg-legal-title {
  margin: 0.8rem 0 0;
  font-family: "Plus Jakarta Sans", Cairo, sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
html[dir="rtl"] .sg-legal-title { font-family: Cairo, "Plus Jakarta Sans", sans-serif; line-height: 1.45; letter-spacing: 0; }
.sg-legal-lead { max-width: 46rem; margin: 0.9rem 0 0; color: #414a38; font-size: 1.05rem; line-height: 1.7; }
html[dir="rtl"] .sg-legal-lead { line-height: 1.9; }
.sg-legal-meta { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; }
.sg-legal-chip, .sg-legal-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.25rem;
  padding: 0.35rem 0.8rem;
  border-radius: 0.6rem;
  background: #fff;
  border: 1px solid rgba(192, 202, 178, 0.8);
  color: #191c1e;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.sg-legal-switch:hover { border-color: #356b00; }
.sg-legal-note {
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: 0.8rem;
  background: #fff8e8;
  border: 1px solid #e6d3a1;
  color: #3d3114;
  font-size: 14px;
  line-height: 1.6;
}
html[dir="rtl"] .sg-legal-note { line-height: 1.85; }
.sg-legal-grid {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.5rem;
}
@media (min-width: 768px) {
  .sg-legal-grid { grid-template-columns: 1fr 1fr; }
}
.sg-legal-card {
  background: #fff;
  border-radius: 0.9rem;
  padding: 1rem 1.05rem;
  box-shadow: 0 1px 2px rgba(25, 28, 30, 0.04);
}
.sg-legal-card h2, .sg-legal-card h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.sg-legal-card p { margin: 0; color: #414a38; font-size: 0.92rem; line-height: 1.55; }
html[dir="rtl"] .sg-legal-card p { line-height: 1.8; }
.sg-legal-layout {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (min-width: 1024px) {
  .sg-legal-layout { grid-template-columns: 15.5rem minmax(0, 1fr); align-items: start; }
  .sg-legal-toc {
    position: sticky;
    top: 5.25rem;
    max-height: calc(100vh - 6.5rem);
    overflow: auto;
  }
}
.sg-legal-toc {
  background: #fff;
  border-radius: 0.9rem;
  padding: 0.9rem;
}
.sg-legal-toc p { margin: 0 0 0.45rem; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #717a66; }
html[dir="rtl"] .sg-legal-toc p { letter-spacing: 0; text-transform: none; font-size: 13px; }
.sg-legal-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.sg-legal-toc a {
  display: block;
  padding: 0.35rem 0.45rem;
  border-radius: 0.45rem;
  color: #191c1e;
  text-decoration: none;
  font-size: 13.5px;
  line-height: 1.45;
}
html[dir="rtl"] .sg-legal-toc a { line-height: 1.7; }
.sg-legal-toc a:hover, .sg-legal-toc a:focus-visible { background: rgba(101, 183, 30, 0.16); }
.sg-legal-doc {
  background: #fff;
  border-radius: 1rem;
  padding: 1.25rem 1.15rem 1.5rem;
  box-shadow: 0 8px 30px rgba(15, 25, 60, 0.05);
}
@media (min-width: 768px) { .sg-legal-doc { padding: 1.75rem 1.8rem 2rem; } }
.sg-legal-section { padding-top: 0.35rem; scroll-margin-top: 5.25rem; }
.sg-legal-section + .sg-legal-section { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid #e6e8ea; }
.sg-legal-section h2 {
  display: flex;
  gap: 0.65rem;
  align-items: baseline;
  margin: 0 0 0.7rem;
  font-size: 1.35rem;
  line-height: 1.35;
}
html[dir="rtl"] .sg-legal-section h2 { line-height: 1.6; }
.sg-legal-num { color: #356b00; font-variant-numeric: tabular-nums; font-size: 0.95rem; }
.sg-legal-section h3 { margin: 1rem 0 0.4rem; font-size: 1.02rem; }
.sg-legal-section p, .sg-legal-section li { color: #191c1e; font-size: 1rem; line-height: 1.7; }
html[dir="rtl"] .sg-legal-section p, html[dir="rtl"] .sg-legal-section li { line-height: 1.95; }
.sg-legal-section p { margin: 0.55rem 0 0; }
.sg-legal-section ul { margin: 0.45rem 0 0; padding-inline-start: 1.2rem; }
.sg-legal-section li + li { margin-top: 0.28rem; }
.sg-legal-pending {
  background: #fff4cc;
  border-bottom: 1px dashed #8a6a00;
  padding: 0 0.15rem;
  font-weight: 650;
}
.sg-legal-related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
}
.sg-legal a:focus-visible, .sg-legal-toc a:focus-visible, .sg-legal-switch:focus-visible {
  outline: 2px solid #356b00;
  outline-offset: 2px;
}
html:has(.sg-legal-main) { scroll-behavior: smooth; scroll-padding-top: 5.25rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  header, footer, #sg-mobile-nav, .sg-legal-toc, .sg-legal-switch, .sg-legal-note { display: none !important; }
  .sg-legal-main { padding: 0; }
  .sg-legal-doc { box-shadow: none; }
}
