/* Linfaflow Legal Pages — shared styles */

:root {
  --lf-green: #075230;
  --lf-green-soft: #0a6b3f;
  --lf-green-border: #085431;
  --lf-bg: #ffffff;
  --lf-text: #1a1a1a;
  --lf-text-muted: #555555;
  --lf-line: #e6e6e6;
  --lf-link: #075230;
  --lf-max: 1488px;
  --lf-content-max: 880px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--lf-bg);
  color: var(--lf-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--lf-link); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--lf-green-soft); }

/* ---------- Header (mirrors main site) ---------- */
.lgl-header {
  background: #ffffff;
  border-bottom: 1px solid var(--lf-green-border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.lgl-header__inner {
  max-width: var(--lf-max);
  margin: 0 auto;
  padding: 18px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.lgl-header__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.lgl-header__brand img {
  display: block;
  width: 198px;
  max-width: 100%;
  height: auto;
}
.lgl-header__cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #000;
  text-decoration: none;
  position: relative;
}
.lgl-header__cart svg { display: block; }

/* ---------- Main ---------- */
.lgl-main {
  background: #ffffff;
  padding: 64px 24px 96px;
}

.lgl-container {
  max-width: var(--lf-content-max);
  margin: 0 auto;
}

.lgl-title {
  font-size: 40px;
  line-height: 1.15;
  color: var(--lf-text);
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.015em;
  text-align: center;
}
.lgl-subtitle {
  font-size: 15px;
  color: var(--lf-text-muted);
  margin: 0 0 48px;
  text-align: center;
}

.lgl-body {
  font-size: 16px;
  color: var(--lf-text);
}

.lgl-body h2 {
  font-size: 22px;
  color: var(--lf-text);
  margin: 40px 0 14px;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.lgl-body h3 {
  font-size: 17px;
  color: var(--lf-text);
  margin: 26px 0 10px;
  font-weight: 600;
}

.lgl-body p { margin: 0 0 16px; }
.lgl-body strong { color: var(--lf-text); font-weight: 600; }

.lgl-body ul, .lgl-body ol {
  margin: 0 0 20px;
  padding-left: 24px;
}
.lgl-body li { margin: 8px 0; }

.lgl-body a { word-break: break-word; }

/* ---------- Footer (mirrors main site: green + bg image) ---------- */
.lgl-footer {
  position: relative;
  overflow: hidden;
  background: var(--lf-green);
  color: #ffffff;
}
.lgl-footer__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.lgl-footer__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.lgl-footer__bg-overlay {
  position: absolute;
  inset: 0;
  background: var(--lf-green);
  opacity: 0.12;
}
.lgl-footer__container {
  position: relative;
  z-index: 1;
  max-width: var(--lf-max);
  margin: 0 auto;
  padding: 64px 50px 36px;
}
.lgl-footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.22);
}
.lgl-footer__brand img {
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
}
.lgl-footer__disclaimer {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,0.85);
  margin: 0;
  max-width: 460px;
}
.lgl-footer__title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 16px;
  color: #ffffff;
  font-weight: 700;
}
.lgl-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lgl-footer__list li { margin: 9px 0; }
.lgl-footer__list a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 14px;
}
.lgl-footer__list a:hover { color: #ffffff; text-decoration: underline; }
.lgl-footer__bottom {
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .lgl-header__inner { padding: 14px 18px; }
  .lgl-header__brand img { width: 140px; }
  .lgl-main { padding: 36px 18px 64px; }
  .lgl-title { font-size: 30px; }
  .lgl-subtitle { margin-bottom: 36px; }
  .lgl-body { font-size: 15.5px; }
  .lgl-body h2 { font-size: 20px; }
  .lgl-body h3 { font-size: 16px; }
  .lgl-footer__container { padding: 44px 22px 28px; }
  .lgl-footer__top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 540px) {
  .lgl-title { font-size: 26px; }
  .lgl-header__brand img { width: 120px; }
}
