/* Legal pages (privacy): hero, summary cards, sticky contents, article cards. */
.lg {
  --lg-green: var(--color-primary, #1a4d2e);
  --lg-forest: var(--color-primary-dark, #0d2818);
  --lg-oak: var(--color-secondary, #8b5e34);
  --lg-gold: var(--color-gold, #c9a227);
  --lg-cream: var(--warm-cream, #f4f1ea);
  --lg-mint: #e7f0e8;
  --lg-ink: #1a1a1a;
  --lg-muted: #525252;
  --lg-line: rgba(139, 94, 52, 0.18);
  --lg-radius: 14px;
  background: var(--lg-cream);
  color: var(--lg-ink);
  font-family: var(--font-primary, Inter, sans-serif);
  padding-bottom: 4rem;
}
.lg h1, .lg h2, .lg h3 {
  color: var(--lg-forest);
  font-family: var(--font-display, Montserrat, sans-serif);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}
.lg p { line-height: 1.65; margin: 0; }
.lg a { color: var(--lg-green); }
.lg svg { flex: 0 0 auto; }
.lg-wrap { margin: 0 auto; max-width: 1200px; padding: 0 1.25rem; }

/* hero */
.lg-hero { background: var(--lg-forest); color: #fff; isolation: isolate; overflow: hidden; padding: 2rem 0 2.5rem; position: relative; }
.lg-hero__image { height: 100%; inset: 0; max-width: none; object-fit: cover; object-position: center 60%; position: absolute; width: 100%; z-index: 0; }
.lg-hero::before { background: linear-gradient(90deg, rgba(13,40,24,.94), rgba(13,40,24,.82) 55%, rgba(13,40,24,.42)); content: ''; inset: 0; pointer-events: none; position: absolute; z-index: 1; }
.lg-hero > .lg-wrap { position: relative; z-index: 2; }
.lg-hero h1 { color: #fff; }
.lg-hero .lg-hero__lead { color: rgba(255,255,255,.9); }
.lg-hero .breadcrumb { color: rgba(255,255,255,.8); margin-bottom: 1.25rem; }
.lg-hero .breadcrumb a, .lg-hero .breadcrumb span, .lg-hero .breadcrumb [aria-current] { color: inherit; }
.lg-hero .lg-pill { background: rgba(255,255,255,.12); color: #fff; }
@media (max-width: 768px) {
  .lg-hero__image { object-position: 66% center; }
  .lg-hero::before { background: rgba(13,40,24,.8); }
}
.lg-pill {
  align-items: center;
  background: var(--lg-mint);
  border-radius: 999px;
  color: var(--lg-green);
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 600;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
  padding: 0.3rem 0.8rem;
}
.lg-hero h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); font-weight: 800; margin-bottom: 0.75rem; }
.lg-hero__lead { color: var(--lg-muted); font-size: 1.075rem; max-width: 46rem; }
.lg-badges { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; margin: 1.5rem 0 0; padding: 0; }
.lg-badges li {
  align-items: center;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
  color: var(--lg-forest);
  display: inline-flex;
  font-size: 0.85rem;
  font-weight: 600;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
}
.lg-badges svg { color: var(--lg-green); }

/* summary cards */
.lg-summary { background: #fff; padding: 2.25rem 0; }
.lg-kicker {
  color: var(--lg-oak);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0 0 0.35rem;
  text-transform: uppercase;
}
.lg-summary h2 { font-size: 1.4rem; margin-bottom: 1.25rem; }
.lg-cards { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.lg-card {
  background: var(--lg-cream);
  border-radius: var(--lg-radius);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
}
.lg-card h3 { font-size: 1.05rem; }
.lg-card p { color: var(--lg-muted); font-size: 0.93rem; }
.lg-icon {
  align-items: center;
  background: #fff;
  border-radius: 10px;
  color: var(--lg-green);
  display: inline-flex;
  height: 2.5rem;
  justify-content: center;
  width: 2.5rem;
}

/* layout */
.lg-body { padding-top: 2.5rem; }
.lg-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.lg-aside { display: flex; flex-direction: column; gap: 1rem; }
.lg-box { background: #fff; border-radius: var(--lg-radius); box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05); padding: 1.1rem; }
.lg-toc summary {
  color: var(--lg-forest);
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.lg-toc summary::-webkit-details-marker { display: none; }
.lg-toc summary::after { content: '+'; float: right; font-weight: 700; }
.lg-toc[open] summary::after { content: '-'; }
.lg-toc ol { list-style: none; margin: 0.75rem 0 0; padding: 0; }
.lg-toc a {
  border-radius: 8px;
  color: var(--lg-muted);
  display: block;
  font-size: 0.92rem;
  padding: 0.4rem 0.6rem;
  text-decoration: none;
}
.lg-toc a:hover, .lg-toc a:focus-visible { background: var(--lg-mint); color: var(--lg-forest); }
.lg-contact { background: var(--lg-forest); color: #fff; }
.lg-contact h2 { color: #fff; font-size: 1.1rem; margin-bottom: 0.4rem; }
.lg-contact p { color: rgba(255, 255, 255, 0.85); font-size: 0.92rem; }
.lg-contact ul { display: grid; gap: 0.5rem; list-style: none; margin: 0.9rem 0 0; padding: 0; }
.lg-contact li { align-items: center; display: flex; gap: 0.5rem; font-size: 0.92rem; }
.lg-contact a { color: #fff; font-weight: 600; }
.lg-btn {
  align-items: center;
  background: var(--lg-mint);
  border: 0;
  border-radius: 10px;
  color: var(--lg-forest);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 0.45rem;
  justify-content: center;
  padding: 0.6rem 0.95rem;
  text-decoration: none;
}
.lg-btn:hover, .lg-btn:focus-visible { background: #d6e6d9; }
.lg-contact .lg-btn--light { background: #fff; color: var(--lg-forest); margin-top: 1rem; width: 100%; }

/* article cards */
.lg-main { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.lg-art {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  scroll-margin-top: 6rem;
}
.lg-art__num {
  align-items: center;
  color: var(--lg-green);
  display: flex;
  font-size: 0.75rem;
  font-weight: 700;
  gap: 0.45rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}
.lg-art__num::before { background: var(--lg-green); border-radius: 50%; content: ''; height: 0.5rem; width: 0.5rem; }
.lg-art h2 { font-size: clamp(1.3rem, 2.6vw, 1.65rem); margin-bottom: 0.75rem; }
.lg-art > p + p, .lg-art > p + .lg-list, .lg-art > .lg-list + p, .lg-art > p + .lg-table, .lg-art > .lg-table + p,
.lg-art > p + .lg-tiles, .lg-art > .lg-tiles + p, .lg-art > p + .lg-rows, .lg-art > .lg-note { margin-top: 1rem; }
.lg-art > p { color: #333; }
.lg-list { display: grid; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.lg-list li { background: var(--lg-cream); border-radius: 10px; padding: 0.65rem 0.9rem; }
.lg-address { background: var(--lg-mint); border-radius: 12px; display: grid; gap: 1rem; margin-top: 1rem; padding: 1rem 1.1rem; }
.lg-address dt { color: var(--lg-muted); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.lg-address dd { margin: 0.2rem 0 0; }

.lg-table { border-radius: 12px; overflow-x: auto; }
.lg-table table { border-collapse: collapse; font-size: 0.92rem; min-width: 34rem; width: 100%; }
.lg-table th {
  background: var(--lg-forest);
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding: 0.7rem 0.9rem;
  text-align: left;
  text-transform: uppercase;
}
.lg-table td { padding: 0.7rem 0.9rem; vertical-align: top; }
.lg-table tbody tr:nth-child(even) { background: var(--lg-cream); }
.lg-tag {
  background: var(--lg-mint);
  border-radius: 999px;
  color: var(--lg-forest);
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
}
.lg-tag--consent { background: #fbe9c8; color: #61400d; }

.lg-tiles { display: grid; gap: 0.75rem; grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; }
.lg-tile { background: var(--lg-cream); border-radius: 12px; display: flex; flex-direction: column; gap: 0.35rem; padding: 1rem; }
.lg-tile h3 { font-size: 1rem; }
.lg-tile p { color: var(--lg-muted); font-size: 0.92rem; }
.lg-tile .lg-btn, .lg-tile__link { align-self: flex-start; margin-top: auto; padding-top: 0.4rem; }
.lg-tile__link { font-size: 0.9rem; font-weight: 700; }
.lg-tile__meta { color: var(--lg-green); font-size: 0.78rem; font-weight: 700; }

.lg-rows { display: grid; gap: 0.6rem; list-style: none; margin: 0; padding: 0; }
.lg-rows li {
  align-items: flex-start;
  background: var(--lg-cream);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.85rem 1rem;
}
.lg-rows .lg-tag { background: #fff; }
.lg [hidden] { display: none !important; }
.lg-art > .lg-note + .lg-list, .lg-art > .lg-list + .lg-updated { margin-top: 1rem; }
.lg-note { background: var(--lg-mint); border-radius: 12px; display: flex; gap: 0.6rem; padding: 0.85rem 1rem; }
.lg-note p { font-size: 0.93rem; }
.lg-updated { color: var(--lg-muted); font-size: 0.88rem; }

@media (min-width: 640px) {
  .lg-cards, .lg-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg-address { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg-rows li { align-items: center; flex-direction: row; justify-content: space-between; }
  .lg-art { padding: 2rem; }
}
@media (min-width: 1024px) {
  .lg-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  /* body overflow-x:hidden turns body into the scroll container and breaks sticky; clip does not. */
  body:has(.lg) { overflow-x: clip; }
  .lg-art { scroll-margin-top: 14rem; }
  .lg-aside__inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: calc(100vh - 15rem);
    overflow-y: auto;
    position: sticky;
    top: 14rem;
  }
  .lg-toc summary { cursor: default; pointer-events: none; }
  .lg-toc summary::after, .lg-toc[open] summary::after { content: none; }
}
@media (prefers-reduced-motion: no-preference) {
  html:has(.lg) { scroll-behavior: smooth; }
}
