/* /terms/ and /privacy/ on the DL2 Family chrome (design hub g26). The legal document is a white card on the page
   ground; the Family header and footer come from features-v3/launch-family.css. Tokens only, from
   features-v3/tokens.css; the white card is --mp-warm-bg (white under .lp-v2). */

body.lp-family,
#lp-family[data-layout="legal"] { background: var(--mp-page); }

.lg-skip {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  padding: 8px 12px; border-radius: 6px;
  background: var(--mp-warm-bg); color: var(--mp-action);
  font: 600 14px/20px Inter, system-ui, sans-serif;
}
.lg-skip:focus { top: 8px; }
.lg-skip:focus-visible { outline: 2px solid var(--mp-focus-ring); outline-offset: 2px; }

.lg-main { padding-inline: 16px; overflow-x: clip; }

.lg-doc {
  box-sizing: border-box;
  max-width: 760px;
  margin: clamp(24px, 6vw, 64px) auto;
  padding: clamp(24px, 5vw, 56px);
  background: var(--mp-warm-bg);
  border: 1px solid var(--mp-rule);
  border-radius: 12px;
  color: var(--mp-text);
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.lg-doc h1 {
  margin: 0 0 12px;
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.15;
  color: var(--mp-ink);
}
.lg-doc h1::before {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-bottom: 20px;
  background: var(--mp-accent-500);
}

.lg-doc .lg-updated {
  margin: 0 0 32px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--mp-muted);
}

.lg-doc h2 {
  margin: 40px 0 12px;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
  color: var(--mp-ink);
}
.lg-doc h3,
.lg-doc h5 {
  margin: 28px 0 8px;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.4;
  color: var(--mp-ink);
}

.lg-doc p { margin: 0 0 16px; }
.lg-doc ul { margin: 0 0 16px; padding-left: 1.25rem; }
.lg-doc li + li { margin-top: 8px; }
.lg-doc strong { font-weight: 600; }

.lg-doc a {
  color: var(--mp-action);
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}
.lg-doc a:hover { color: var(--mp-action-hover); }
.lg-doc a:focus-visible { outline: 2px solid var(--mp-focus-ring); outline-offset: 2px; border-radius: 2px; }

.lg-callout {
  margin: 0 0 24px;
  padding: 16px 20px;
  background: var(--mp-sky);
  border-left: 4px solid var(--mp-action);
  border-radius: 8px;
}
.lg-callout h5 { margin-top: 0; }
.lg-callout p:last-child { margin-bottom: 0; }
