/* ============================================================
   IJAR — legal-page.css
   Shared styles for sitemap.html, terms.html, privacy.html
   All classes prefixed .lg-
   ============================================================ */

/* ---- wrapper ---- */
.lg-sec {
  padding: 14px 0 48px;
}

/* standard two-column page layout (content + right sidebar), matching the
   other inner pages (submit-article / past-issues / subscription) */
.lg-wrap {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 30px;
  align-items: start;
}

/* ============================================================
   DOCUMENT CARD  (terms & privacy)
   ============================================================ */
.lg-doc {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 30px 34px 36px;
  box-shadow: 0 2px 10px rgba(0, 26, 77, .05);
}

@media (max-width: 600px) {
  .lg-doc {
    padding: 24px 18px;
  }
  .lg-sec {
    padding: 28px 0 40px;
  }
}

@media (max-width: 480px) {
  /* prevent long headings overflowing the doc card */
  .lg-doc h2 {
    display: block;
    font-size: 17px;
    word-break: break-word;
  }
  .lg-doc p,
  .lg-doc ul li {
    font-size: 14px;
  }
}

@media (max-width: 360px) {
  .lg-doc {
    padding: 18px 14px;
    border-radius: 8px;
  }
  .lg-sec {
    padding: 20px 0 28px;
  }
  /* sitemap cards: tighten padding at narrowest */
  .lg-col {
    padding: 18px 16px 20px;
  }
  .lg-map-intro {
    font-size: 14px;
    margin-bottom: 24px;
  }
}

/* "Last updated" line (block chip so the first heading starts on its own line) */
.lg-updated {
  display: block;
  width: max-content;
  font-size: 13px;
  color: var(--text-2);
  background: var(--light, #F7F8F9);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 14px;
  margin-bottom: 24px;
}

/* section headings inside doc card */
.lg-doc h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin: 32px 0 10px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--gold);
  display: inline-block;
}

.lg-doc h2:first-of-type {
  margin-top: 0;
}

/* body copy */
.lg-doc p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 14px;
}

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

/* lists */
.lg-doc ul {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}

.lg-doc ul li {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  padding: 5px 0 5px 22px;
  position: relative;
}

.lg-doc ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

/* contact block inside doc */
.lg-contact {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lg-contact a {
  color: var(--navy);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lg-contact a:hover {
  color: var(--gold-2, #E6A90C);
}

/* ============================================================
   SITEMAP GRID
   ============================================================ */
.lg-map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

@media (max-width: 700px) {
  .lg-map {
    grid-template-columns: 1fr;
  }
}

/* individual column card */
.lg-col {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 26px 28px;
}

.lg-col h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--gold);
  display: inline-block;
}

/* links list */
.lg-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lg-col ul li a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  padding: 7px 0;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}

.lg-col ul li a i {
  color: var(--gold-2, #E6A90C);
  font-size: 11px;
  flex-shrink: 0;
  transition: transform .2s;
}

.lg-col ul li a:hover {
  color: var(--navy);
}

.lg-col ul li a:hover i {
  transform: translateX(3px);
}

/* sitemap intro text */
.lg-map-intro {
  max-width: 600px;
  margin: 0 auto 36px;
  text-align: center;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
}

/* ---- Hero image (Terms & Privacy): the default globe art (home-page globe,
   hero-bg.png) is a WIDE image, so the inner-hero default (contain, in a 46%
   panel) shrinks it to a tiny floating globe. Show the whole globe at a proper
   size like the home/About hero: height-based sizing + centred + soft left
   fade into the navy. */
.hero--inner .wrap-lg::after{
  background-position:center center;
  background-size:auto 86%;
  -webkit-mask-image:linear-gradient(to right,transparent 0,#000 26%);
  mask-image:linear-gradient(to right,transparent 0,#000 26%);
}

/* ============================================================
   RIGHT SIDEBAR (terms & privacy) — matches the sidebar boxes
   used on submit-article / subscription (navy header + body)
   ============================================================ */
.lg-side-box{background:#fff;border:1px solid var(--border);border-radius:8px;overflow:hidden;
  margin-bottom:22px;box-shadow:0 2px 10px rgba(0,26,77,.05)}
.lg-side-h{background:linear-gradient(135deg,#001a4d 0%,#0a3072 100%);color:#fff;font-size:16px;font-weight:700;padding:11px 18px}
.lg-side-h span{display:block;font-size:12.5px;font-weight:400;color:rgba(255,255,255,.82);margin-top:3px}
.lg-side-b{padding:12px 18px 14px}

/* related-policy links */
.lg-side-links{list-style:none;margin:0;padding:0}
.lg-side-links a{display:flex;align-items:center;gap:9px;font-size:14px;color:var(--text);font-weight:500;
  padding:9px 2px;border-bottom:1px solid var(--border);text-decoration:none;transition:.18s}
.lg-side-links li:last-child a{border-bottom:0}
.lg-side-links a i{color:var(--gold-2,#E6A90C);font-size:12px;flex-shrink:0}
.lg-side-links a:hover{color:var(--navy);padding-left:6px}
.lg-side-links a.cur{color:var(--navy);font-weight:700}

/* contact info */
.lg-cinfo{list-style:none;margin:0;padding:4px 0;display:flex;flex-direction:column;gap:12px}
.lg-cinfo li{display:flex;gap:13px;align-items:flex-start}
.lg-cinfo .ic{color:var(--navy);font-size:16px;width:22px;flex-shrink:0;display:inline-flex;justify-content:center}
.lg-cinfo a,.lg-cinfo div{font-size:13.5px;color:var(--navy);text-decoration:none;line-height:1.45}
.lg-cinfo a:hover{color:var(--royal)}
