/* Leads Onboard — the legal pages.
 *
 * Privacy and Terms, in the green design the rest of the site uses. They were
 * the last two pages on the old blue stylesheet, which retired with the
 * annuity side on 2026-08-22.
 *
 * Shared rather than self-contained, which is the one place these two depart
 * from the pages around them. index/mva/apply/qualify each carry their own
 * <style> because each was generated on its own; these two are the same page
 * twice, so a shared file means a fix happens once instead of twice.
 *
 * The tokens below are copied from apply.html deliberately, values and all,
 * so the two families cannot drift apart in a way nobody notices.
 */

:root {
  --accent: #12b76a;
  --on-accent: #fff;

  --bg: #000;
  --surface: rgb(8, 8, 8);

  --fg: #fff;
  --fg-2: rgba(255, 255, 255, 0.6);
  --fg-3: rgba(255, 255, 255, 0.5);
  --fg-4: rgba(255, 255, 255, 0.4);

  --line: rgba(255, 255, 255, 0.05);
  --line-2: rgba(255, 255, 255, 0.1);

  --chip: linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0%, rgba(153, 153, 153, 0.07) 50%, rgba(97, 97, 97, 0.09) 100%);
  --nav-bg: rgba(0, 0, 0, 0.55);
  --card-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);

  --pad: clamp(20px, 5vw, 60px);
}

html[data-theme='light'] {
  --bg: #f4f5f7;
  --surface: #ffffff;

  --fg: #0a0b0d;
  --fg-2: rgba(10, 11, 13, 0.66);
  --fg-3: rgba(10, 11, 13, 0.58);
  --fg-4: rgba(10, 11, 13, 0.44);

  --line: rgba(10, 11, 13, 0.09);
  --line-2: rgba(10, 11, 13, 0.14);

  --chip: rgba(10, 11, 13, 0.045);
  --nav-bg: rgba(255, 255, 255, 0.78);
  --card-shadow: 0 1px 2px rgba(10, 11, 13, 0.04), 0 14px 34px -16px rgba(10, 11, 13, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  /* The old stylesheet let the header push the page 127px wider than a phone
     screen. This is the belt to that braces: nothing here may scroll sideways. */
  overflow-x: hidden;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---- Nav ---- */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line-2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: var(--nav-bg);
}

.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 11px;
  /* min-width:0 lets the name shrink instead of forcing the bar wider, which
     is exactly what the retired stylesheet failed to do. */
  min-width: 0;
}

.logo-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

.wm-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--chip);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  flex-shrink: 0;
}

.icon-sun {
  display: none;
}
html[data-theme='light'] .icon-sun {
  display: block;
}
html[data-theme='light'] .icon-moon {
  display: none;
}

/* ---- The document ---- */

.doc-head {
  padding: clamp(44px, 7vw, 72px) 0 clamp(20px, 3vw, 30px);
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 52px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.updated {
  margin: 16px 0 0;
  font-size: 14.5px;
  color: var(--fg-4);
}

.doc {
  padding-bottom: clamp(50px, 8vw, 90px);
}

.doc > .lede {
  margin: 0 0 8px;
  font-size: clamp(16.5px, 2vw, 18.5px);
  line-height: 1.65;
  color: var(--fg-2);
}

.doc section {
  padding-top: clamp(28px, 4vw, 40px);
}

.doc h2 {
  margin: 0 0 14px;
  font-size: clamp(20px, 2.6vw, 24px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.doc p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg-2);
}

.doc ul {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.doc li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 11px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg-2);
}

/* A tick rather than a bullet, matching the checklists on the other pages. */
.doc li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.85;
}

.doc a:not(.btn) {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* The contact block at the end of each document. */
.contact-card {
  margin-top: clamp(30px, 4vw, 44px);
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
}

.contact-card h2 {
  margin-top: 0;
}

.contact-card p:last-child {
  margin-bottom: 0;
}

/* ---- Footer ---- */

.site-foot {
  border-top: 1px solid var(--line);
  padding: clamp(28px, 4vw, 40px) 0 clamp(36px, 5vw, 56px);
}

.foot-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 14px;
  color: var(--fg-4);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.foot-links a:hover {
  color: var(--fg);
}

@media (max-width: 560px) {
  .foot-in {
    flex-direction: column;
    align-items: flex-start;
  }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  body {
    transition: none;
  }
}
