/* ==========================================================================
   MSP Process — Legal pages (Privacy Policy, Terms of Service, Subprocessors)
   Theme-aware via the site's existing tokens (light + dark). Cyan → green
   hero gradient matches the home page. Non-boxy long-form typography in the
   body; hairline section dividers between h2/h3 chapters.
   Namespace: lg-*
   ========================================================================== */

/* --- Hero ----------------------------------------------------------- */
.lg-hero {
  position: relative;
  padding: clamp(72px, 9vw, 110px) 0 clamp(48px, 6vw, 72px);
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}
.lg-hero__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 75% 60% at 82% 18%, rgba(0, 186, 251, 0.16), transparent 60%),
    radial-gradient(ellipse 65% 50% at 14% 92%, rgba(10, 154, 86, 0.10), transparent 60%);
}
.lg-hero__grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(color-mix(in srgb, var(--heading) 4%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--heading) 4%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 75%);
}
[data-theme="dark"] .lg-hero__grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
}
.lg-hero__inner { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }

.lg-h1 {
  color: var(--heading); font-weight: 900;
  letter-spacing: -0.025em; line-height: 1.05;
  font-size: clamp(38px, 5vw, 64px);
  margin: 0 0 16px;
}
.lg-h1 .grad {
  background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-green) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.lg-updated {
  display: inline-block;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-cyan);
  margin-bottom: 18px;
}

.lg-dek {
  color: var(--text); font-size: 17px; line-height: 1.6;
  max-width: 720px; margin: 0 0 24px;
}

.lg-meta {
  display: flex; gap: 14px 22px; flex-wrap: wrap;
  padding: 14px 18px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--heading) 3%, transparent);
  border: 1px solid var(--hairline);
}
[data-theme="dark"] .lg-meta {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}
.lg-meta span { color: var(--text); font-size: 12.5px; font-weight: 500; }
.lg-meta strong { color: var(--heading); font-weight: 700; }

/* --- Body ----------------------------------------------------------- */
.lg-body { padding: clamp(48px, 7vw, 80px) 0 clamp(64px, 8vw, 96px); }
.lg-body__inner { max-width: 880px; margin: 0 auto; color: var(--text); }

.lg-body__inner p {
  font-size: 15.5px; line-height: 1.75;
  margin: 0 0 18px;
  color: var(--text);
}
.lg-body__inner h2 {
  color: var(--heading);
  font-size: clamp(22px, 2.4vw, 28px); font-weight: 800;
  line-height: 1.2; letter-spacing: -0.018em;
  margin: 44px 0 14px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
}
.lg-body__inner h2:first-of-type {
  border-top: 0; padding-top: 0; margin-top: 8px;
}
.lg-body__inner h3 {
  color: var(--heading);
  font-size: 18px; font-weight: 800;
  line-height: 1.25;
  margin: 30px 0 12px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
}
.lg-body__inner h3:first-of-type {
  border-top: 0; padding-top: 0; margin-top: 8px;
}
.lg-body__inner h4 {
  color: var(--heading);
  font-size: 15.5px; font-weight: 800;
  line-height: 1.3;
  margin: 24px 0 8px;
}
.lg-body__inner ol,
.lg-body__inner ul {
  padding-left: 22px; margin: 0 0 20px;
}
.lg-body__inner li {
  font-size: 15.5px; line-height: 1.7;
  margin-bottom: 10px;
  color: var(--text);
}
.lg-body__inner ol li::marker,
.lg-body__inner ul li::marker {
  color: var(--brand-cyan); font-weight: 700;
}
.lg-body__inner strong { color: var(--heading); font-weight: 700; }
.lg-body__inner em { color: var(--heading); font-style: italic; font-weight: 500; }
.lg-body__inner address {
  display: block;
  font-style: normal;
  line-height: 1.6;
  padding: 14px 18px;
  background: color-mix(in srgb, var(--heading) 2.5%, transparent);
  border-left: 3px solid var(--brand-cyan);
  border-radius: 0 8px 8px 0;
  margin: 14px 0 0;
  color: var(--heading);
}
[data-theme="dark"] .lg-body__inner address { background: rgba(255, 255, 255, 0.03); }

/* --- Subprocessors table -------------------------------------------- */
.lg-table-wrap { overflow-x: auto; margin: 14px 0 20px; }
.lg-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  overflow: hidden;
}
.lg-table thead th {
  background: color-mix(in srgb, var(--heading) 4%, transparent);
  color: var(--heading);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 11px; font-weight: 800; letter-spacing: 0.10em;
  text-transform: uppercase;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--hairline);
}
[data-theme="dark"] .lg-table thead th { background: rgba(255, 255, 255, 0.04); }
.lg-table tbody td {
  padding: 14px;
  border-bottom: 1px solid var(--hairline);
  color: var(--text);
  vertical-align: top;
}
.lg-table tbody td:first-child { color: var(--heading); font-weight: 700; }
.lg-table tbody tr:last-child td { border-bottom: 0; }
.lg-table tbody tr:nth-child(even) td {
  background: color-mix(in srgb, var(--heading) 2%, transparent);
}
[data-theme="dark"] .lg-table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.015); }

/* --- Related links footer ------------------------------------------- */
.lg-related {
  padding: clamp(48px, 6vw, 72px) 0;
  background: color-mix(in srgb, var(--heading) 2%, transparent);
  border-top: 1px solid var(--hairline);
}
[data-theme="dark"] .lg-related { background: rgba(255, 255, 255, 0.015); }
.lg-related__inner { max-width: 880px; margin: 0 auto; text-align: center; }
.lg-related h3 {
  color: var(--heading); font-size: 18px; font-weight: 800;
  margin: 0 0 18px; letter-spacing: -0.01em;
}
.lg-related__row {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.lg-related__link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  color: var(--heading); font-weight: 700; font-size: 14px;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.lg-related__link:hover {
  border-color: var(--brand-cyan);
  color: var(--brand-cyan);
  transform: translateY(-1px);
}

/* --- Mobile --------------------------------------------------------- */
@media (max-width: 640px) {
  .lg-meta { flex-direction: column; gap: 8px; }
  .lg-body__inner h2 { font-size: 22px; }
  .lg-body__inner h3 { font-size: 16.5px; }
  .lg-table { font-size: 13px; }
  .lg-table thead th,
  .lg-table tbody td { padding: 10px 12px; }
}
