/* =====================================================
   LEGAL.CSS — Legal Documents page
   Load order: style-N.css (via header) → home.css → legal.css
   ===================================================== */

/* ---------- Page hero (dark, logo-ring motif) ---------- */
.ld-hero {
  position: relative; isolation: isolate; overflow: clip; color: #fff;
  padding: 84px 6% 140px;
  background:
    radial-gradient(55% 80% at 100% 0%, rgba(18, 163, 201, .28), transparent 70%),
    radial-gradient(45% 70% at 0% 100%, rgba(31, 157, 58, .3), transparent 70%), var(--deep);
}
.ld-hero::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; width: 560px; height: 560px; border-radius: 50%;
  right: -150px; top: -190px; opacity: .3;
  background: conic-gradient(var(--red), var(--orange), var(--green), var(--teal), var(--red));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 30px), #000 calc(100% - 29px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 30px), #000 calc(100% - 29px));
}
.ld-hero::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none; width: 380px; height: 260px; left: 4%; bottom: 30px;
  background-image: radial-gradient(rgba(255, 255, 255, .18) 1.7px, transparent 1.8px); background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent); mask-image: radial-gradient(closest-side, #000 30%, transparent);
}
.ld-hero-inner { max-width: 1180px; margin: 0 auto; }
.ld-crumb { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: #b7d0c3; margin-bottom: 22px; }
.ld-crumb a { color: #fff; text-decoration: none; }
.ld-crumb a:hover { text-decoration: underline; }
.ld-crumb i { font-size: .62rem; }
.ld-hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.8rem); font-weight: 800; line-height: 1.1; }
.ld-hero h1::after { content: ""; display: block; width: 92px; height: 5px; margin-top: 18px; border-radius: 3px; background: var(--ring); }
.ld-hero p { max-width: 580px; margin-top: 20px; color: #d5e8de; font-size: 1.12rem; }
.ld-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.ld-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 30px; font-size: .85rem; font-weight: 600;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
}
.ld-pill i { color: var(--gold-light); }

/* ---------- Key facts card (overlaps hero) ---------- */
.ld-facts-wrap { padding: 0 6%; position: relative; z-index: 5; }
.ld-facts {
  max-width: 1080px; margin: -64px auto 0; background: #fff; border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow-lg); display: grid; grid-template-columns: repeat(3, 1fr);
}
.ld-fact { display: flex; align-items: center; gap: 16px; padding: 26px 28px; }
.ld-fact + .ld-fact { border-left: 1px solid var(--line); }
.ld-fact > i {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%; background: var(--mint); color: var(--green-dark);
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
}
.ld-fact:nth-child(2) > i { color: var(--teal-dark); }
.ld-fact:nth-child(3) > i { color: var(--gold); }
.ld-fact b { display: block; font-family: var(--font-head); font-size: 1.02rem; color: var(--ink); line-height: 1.25; }
.ld-fact span { display: block; font-size: .84rem; color: var(--muted); margin-top: 3px; line-height: 1.4; }

/* ---------- Document cards ---------- */
#documents { padding-top: 90px; }
.ld-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.ld-card { grid-column: span 2; }
.ld-card:nth-child(n+4) { grid-column: span 3; }

.ld-card {
  position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 24px;
  padding: 34px 30px 28px; display: flex; flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform .5s cubic-bezier(.22, .61, .36, 1), box-shadow .5s cubic-bezier(.22, .61, .36, 1), border-color .3s ease;
}
.ld-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--accent, var(--green)); }
.ld-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--accent, var(--green)); }

.ld-no {
  position: absolute; right: 22px; top: 18px; font-family: var(--font-head); font-weight: 800; font-size: 3.4rem; line-height: 1;
  color: var(--accent, var(--green)); opacity: .12;
}
.ld-ico {
  width: 62px; height: 62px; border-radius: 18px; background: var(--accent, var(--green)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 20px;
  box-shadow: 0 10px 22px rgba(16, 32, 26, .18);
}
.ld-card h3 { font-size: 1.3rem; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.ld-card p { color: var(--muted); font-size: .96rem; line-height: 1.65; margin-bottom: 16px; }
.ld-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.ld-chip { font-size: .76rem; font-weight: 700; padding: 5px 12px; border-radius: 30px; background: var(--ink); color: #fff; }
.ld-chip.alt { background: var(--mint); color: var(--green-dark); border: 1px solid var(--line); }
.ld-actions { margin-top: auto; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ld-actions .btn-filled { padding: 11px 22px; font-size: .92rem; }
.ld-actions .btn-filled i { font-size: .8rem; color: #fff; }
.ld-dl { font-weight: 700; font-size: .92rem; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: color .25s; }
.ld-dl i { color: var(--accent, var(--green)); }
.ld-dl:hover { color: var(--green-dark); }

.ld-link { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .ld-hero { padding: 64px 6% 120px; }
  .ld-facts { grid-template-columns: 1fr; }
  .ld-fact + .ld-fact { border-left: 0; border-top: 1px solid var(--line); }
  .ld-grid { grid-template-columns: repeat(2, 1fr); }
  .ld-card, .ld-card:nth-child(n+4) { grid-column: span 1; }
  .ld-card:last-child { grid-column: 1 / -1; }
  #documents { padding-top: 72px; }
}
@media (max-width: 600px) {
  .ld-grid { grid-template-columns: 1fr; }
  .ld-card:last-child { grid-column: auto; }
  .ld-card { padding: 30px 24px 24px; }
  .ld-hero p { font-size: 1rem; }
}