/* LEGAM legal pages shared stylesheet (owner 2026-11-05).
   Structure: .lg-page > header.lg-topbar (fixed) + main.lg-content (white card) + footer.lg-footer.
   Legal text must remain identical — this file only styles structure/classes. */
:root {
  --lg-ink: #1A1A2E;
  --lg-brand: #6D5AE0;
  --lg-bg: #F4F4F6;
  --lg-border: #E8E8EC;
  --lg-dark: #1E1033;
}

* { box-sizing: border-box; }

html { scroll-padding-top: 80px; }

body.lg-page {
  margin: 0;
  font-family: "Vazirmatn", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  background: var(--lg-bg);
  color: var(--lg-ink);
  direction: rtl;
  text-align: right;
  line-height: 1.85;
}

/* Fixed dark top bar */
.lg-topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 64px;
  padding: 0 24px;
  background: var(--lg-dark);
  color: #fff;
}

.lg-topbar a { color: #fff; text-decoration: none; }
.lg-topbar .lg-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .2px;
}
.lg-topbar .lg-logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #4F9EDB 0%, #6D5AE0 35%, #8E2FBC 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}
.lg-topbar .lg-home-link {
  margin-right: auto;
  font-size: 13px;
  opacity: .92;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  padding: 6px 14px;
  transition: opacity .15s ease;
}
.lg-topbar .lg-home-link:hover { opacity: 1; }

/* Centered white content card */
.lg-content {
  max-width: 800px;
  margin: 96px auto 40px;
  padding: 40px 44px;
  background: #fff;
  border: 1px solid var(--lg-border);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.lg-content h1 {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 800;
  color: var(--lg-ink);
}
.lg-content .lg-sub { margin: 6px 0 18px; color: #6B7280; font-size: 14px; }
.lg-content h2 {
  margin: 30px 0 10px;
  font-size: 19px;
  font-weight: 700;
  color: var(--lg-ink);
}
.lg-content p { margin: 10px 0; }
.lg-content ul { margin: 10px 0; padding-right: 24px; }
.lg-content li { margin: 6px 0; }
/* Brand bullets */
.lg-content ul li::marker { color: var(--lg-brand); }
.lg-content a { color: var(--lg-brand); text-decoration: underline; text-underline-offset: 3px; }
.lg-content .lg-btn {
  display: inline-block;
  margin-top: 18px;
  margin-left: 8px;
  padding: 9px 20px;
  border-radius: 10px;
  background: var(--lg-brand);
  color: #fff !important;
  text-decoration: none;
  font-size: 14px;
}

/* Dark footer */
.lg-footer {
  background: var(--lg-dark);
  color: rgba(255,255,255,.75);
  text-align: center;
  font-size: 13px;
  padding: 22px 16px;
}
.lg-footer a { color: rgba(255,255,255,.9); }

/* Responsive */
@media (max-width: 640px) {
  .lg-content { margin: 84px 14px 28px; padding: 26px 20px; }
  .lg-topbar { padding: 0 14px; }
}