/* ==========================================================
   ENDEAVOUR SCREENS - custom build
   Palette + component language taken from the site footer.
   ========================================================== */

:root {
  --teal:       #89C5C2;
  --teal-dark:  #3E7F7B;
  --teal-bar:   #315F5D;
  --sand:       #E1B978;
  --sand-deep:  #C99A52;
  --cream:      #FAEED9;
  --charcoal:   #393838;
  --ink:        #2E2E2C;
  --muted:      #6B6B66;
  --line:       rgba(57,56,56,0.12);
  --sand-line:  rgba(225,185,120,0.45);
  --shell:      1320px;
  --pad:        clamp(20px, 5vw, 50px);
  --r:          14px;
  --head: "Sora", "Segoe UI", Helvetica, Arial, sans-serif;
  --body: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--charcoal);
  font-family: var(--body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--teal-dark); }

h1, h2, h3, h4 {
  font-family: var(--head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--charcoal);
  margin: 0 0 .5em;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(34px, 5vw, 56px); }
h2 { font-size: clamp(27px, 3.4vw, 40px); }
h3 { font-size: clamp(20px, 2vw, 25px); }
h4 { font-size: 18px; }
p  { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding-inline: var(--pad); }
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section--tint { background: #FBF8F2; }
.section--cream { background: var(--cream); }

.eyebrow {
  display: block;
  margin-bottom: 14px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.lead { font-size: clamp(18px, 1.6vw, 20px); color: #4A4A46; }
.rule { width: 46px; height: 2px; margin: 20px 0 26px; background: var(--sand); border: 0; }
.center { text-align: center; }
.center .rule { margin-inline: auto; }
.measure { max-width: 62ch; }
.center .measure { margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px;
  border: 1px solid var(--sand);
  border-radius: 999px;
  background: var(--sand);
  color: var(--charcoal);
  font-family: var(--head);
  font-size: 15px; font-weight: 700; letter-spacing: .3px;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(57,56,56,.10);
  cursor: pointer;
  transition: all .2s ease;
}
.btn:hover {
  background: var(--teal); border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(57,56,56,.14);
}
.btn svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 2; }
.btn--ghost {
  background: transparent; color: var(--charcoal);
  border-color: rgba(57,56,56,.28); box-shadow: none;
}
.btn--ghost:hover { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.btn--light { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; box-shadow: none; }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--charcoal); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.center .btn-row { justify-content: center; }

/* ==========================================================
   HEADER
   ========================================================== */
.hdr { position: relative; z-index: 900; background: #fff; }

.hdr-top { background: var(--teal-bar); color: rgba(255,255,255,.85); }
.hdr-top-in {
  max-width: var(--shell); margin: 0 auto; padding: 9px var(--pad);
  min-height: 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  font-size: 12px; letter-spacing: 1px;
}
.hdr-badge { text-transform: uppercase; font-weight: 600; letter-spacing: 2px; white-space: nowrap; }
.hdr-top-r { display: flex; align-items: center; gap: 26px; }
.hdr-top-r a {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.85); text-decoration: none; white-space: nowrap;
  transition: color .2s ease;
}
.hdr-top-r a:hover { color: #fff; }
.hdr-top-r svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; flex: none; }
.hdr-social { display: flex; gap: 12px; }
.hdr-social a {
  width: 28px; height: 28px; justify-content: center;
  border: 1px solid rgba(255,255,255,.28); border-radius: 50%;
}
.hdr-social a:hover { background: var(--teal); border-color: var(--teal); color: var(--teal-bar); }
.hdr-social svg { width: 14px; height: 14px; }

.hdr-main { border-bottom: 1px solid var(--sand-line); }
.hdr-main-in {
  max-width: var(--shell); margin: 0 auto; padding: 14px var(--pad);
  display: flex; align-items: center; gap: 32px;
}
.hdr-logo { flex: none; }
.hdr-logo img { height: 46px; width: auto; }

.nav { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.nav > a, .nav-btn {
  position: relative; padding: 6px 0;
  background: none; border: 0; font: inherit;
  font-family: var(--body); font-size: 15px; font-weight: 600;
  color: var(--charcoal); text-decoration: none; white-space: nowrap; cursor: pointer;
}
.nav > a::after, .nav-btn::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--teal); transform: scaleX(0); transform-origin: left;
  transition: transform .22s ease;
}
.nav > a:hover::after, .nav-btn:hover::after, .nav > a.on::after, .nav-item.on .nav-btn::after { transform: scaleX(1); }
.nav > a.on, .nav-item.on .nav-btn { color: var(--teal-dark); }

.nav-item { position: relative; }
.nav-btn { display: inline-flex; align-items: center; gap: 7px; }
.nav-btn svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 2.5; transition: transform .22s ease; }
.nav-item:hover .nav-btn svg { transform: rotate(180deg); }

.drop {
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 268px; padding: 12px;
  background: #fff; border: 1px solid var(--sand-line); border-radius: var(--r);
  box-shadow: 0 18px 40px rgba(57,56,56,.14);
  opacity: 0; visibility: hidden; transition: all .22s ease;
}
.nav-item:hover .drop, .nav-item:focus-within .drop { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.drop::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.drop a {
  display: block; padding: 10px 14px; border-radius: 9px;
  color: var(--charcoal); font-size: 14.5px; text-decoration: none;
  transition: all .16s ease;
}
.drop a:hover { background: rgba(137,197,194,.16); color: var(--teal-dark); }

.burger {
  display: none; width: 46px; height: 46px; flex: none;
  align-items: center; justify-content: center;
  background: none; border: 1px solid rgba(62,127,123,.25); border-radius: 50%; cursor: pointer;
}
.burger span, .burger span::before, .burger span::after {
  display: block; width: 19px; height: 2px; background: var(--charcoal); transition: all .22s ease;
}
.burger span { position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.burger.on span { background: transparent; }
.burger.on span::before { top: 0; transform: rotate(45deg); }
.burger.on span::after  { top: 0; transform: rotate(-45deg); }

.mnav { display: none; padding: 12px var(--pad) 28px; border-top: 1px solid var(--sand-line); }
.mnav.on { display: block; }
.mnav a {
  display: block; padding: 13px 2px; border-bottom: 1px solid rgba(57,56,56,.08);
  color: var(--charcoal); font-size: 16px; font-weight: 600; text-decoration: none;
}
.mnav a.sub { padding-left: 18px; font-size: 14.5px; font-weight: 400; color: #5B5B56; }
.mnav .lbl {
  padding: 16px 2px 7px; color: var(--teal-dark);
  font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
}
.mnav .btn { margin-top: 20px; width: 100%; justify-content: center; border-bottom: 0; }

/* ==========================================================
   HERO
   ========================================================== */
.hero { position: relative; color: #fff; isolation: isolate; }
.hero img.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(30,45,44,.86) 0%, rgba(30,45,44,.66) 45%, rgba(30,45,44,.28) 100%);
}
.hero-in { padding: clamp(80px, 12vw, 150px) 0; }
.hero h1 { color: #fff; max-width: 17ch; }
.hero p  { color: rgba(255,255,255,.9); max-width: 56ch; font-size: clamp(17px, 1.5vw, 19px); }
.hero .eyebrow { color: var(--sand); }
.hero .rule { background: var(--sand); }

.hero--page .hero-in { padding: clamp(60px, 8vw, 104px) 0; }
.hero--page h1 { max-width: 22ch; }

.crumb { margin-bottom: 22px; font-size: 13px; color: rgba(255,255,255,.7); letter-spacing: .4px; }
.crumb a { color: rgba(255,255,255,.7); text-decoration: none; }
.crumb a:hover { color: #fff; text-decoration: underline; }

/* ==========================================================
   GRIDS / CARDS
   ========================================================== */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--sand-line); box-shadow: 0 18px 38px rgba(57,56,56,.10); }
.card img { width: 100%; height: 235px; object-fit: cover; }
.card-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 10px; }
.card-body p { color: var(--muted); font-size: 16px; }
.card ul { margin: 4px 0 0; padding-left: 0; list-style: none; }
.card ul li {
  position: relative; padding-left: 20px; margin-bottom: 7px;
  font-size: 15px; color: var(--charcoal);
}
.card ul li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--teal);
}
.card .more {
  margin-top: auto; padding-top: 20px;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--teal-dark); font-family: var(--head);
  font-size: 14px; font-weight: 600; text-decoration: none;
}
.card .more svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform .2s ease; }
.card .more:hover svg { transform: translateX(4px); }

/* numbered steps */
.step { padding: 30px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.step .n {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: 18px;
  background: rgba(137,197,194,.18); border-radius: 50%;
  color: var(--teal-dark); font-family: var(--head); font-size: 17px; font-weight: 700;
}
.step h4 { margin-bottom: 8px; font-size: 17px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* trust points */
.pt { padding: 26px; border-left: 2px solid var(--sand); background: #fff; border-radius: 0 var(--r) var(--r) 0; }
.pt h4 { margin-bottom: 7px; color: var(--teal-dark); font-size: 16px; }
.pt p { color: var(--muted); font-size: 15.5px; }

/* split image + text */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.split--flip .split-media { order: 2; }
.split-media img { width: 100%; height: 100%; max-height: 560px; object-fit: cover; border-radius: var(--r); }
.split-copy p { color: #4A4A46; }

.tick { margin: 22px 0 0; padding: 0; list-style: none; }
.tick li { position: relative; padding-left: 30px; margin-bottom: 11px; }
.tick li::before {
  content: ""; position: absolute; left: 0; top: .34em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* ==========================================================
   CTA BAND
   ========================================================== */
.cta { background: var(--teal-bar); color: #fff; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.82); }
.cta .rule { background: var(--sand); }

/* ==========================================================
   FORM
   ========================================================== */
.form-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(26px, 3.5vw, 40px); }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px;
  font: inherit; font-size: 16px; color: var(--charcoal);
  background: #fff; border: 1px solid rgba(46,46,44,.26); border-radius: 9px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0; border-color: var(--teal-dark); box-shadow: 0 0 0 3px rgba(62,127,123,.15);
}
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { margin-top: 14px; font-size: 13.5px; color: var(--muted); }

.info-row { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.info-ico {
  width: 42px; height: 42px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: rgba(137,197,194,.16); border-radius: 50%;
}
.info-ico svg { width: 20px; height: 20px; stroke: var(--teal-dark); fill: none; stroke-width: 2; }
.info-row h4 { margin: 0 0 2px; font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.info-row a, .info-row span { color: var(--charcoal); font-size: 17px; text-decoration: none; }
.info-row a:hover { color: var(--teal-dark); }

/* ==========================================================
   FOOTER
   ========================================================== */
.ftr { position: relative; overflow: hidden; background: #fff; }
.ftr::before, .ftr::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.ftr::before { width: 650px; height: 240px; left: -180px; bottom: 70px; background: var(--cream); opacity: .75; transform: rotate(8deg); }
.ftr::after  { width: 800px; height: 230px; right: -220px; bottom: 45px; background: var(--teal); opacity: .55; transform: rotate(-7deg); }

.ftr-in {
  position: relative; z-index: 2;
  max-width: var(--shell); margin: 0 auto;
  padding: 72px var(--pad) 68px;
  display: grid; grid-template-columns: 1.05fr 1.05fr 1.1fr; gap: 56px; align-items: center;
}
.ftr-brand { text-align: center; }
.ftr-brand img { width: 300px; max-width: 100%; margin: 0 auto 24px; }
.ftr-tag { margin-bottom: 24px; color: var(--teal-dark); font-size: 12px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; }
.ftr-social { display: flex; justify-content: center; gap: 18px; }
.ftr-social a {
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(62,127,123,.25); border-radius: 50%;
  color: var(--charcoal); text-decoration: none; transition: all .2s ease;
}
.ftr-social a:hover { background: var(--teal); border-color: var(--teal); color: #fff; transform: translateY(-2px); }
.ftr-social svg { width: 19px; height: 19px; }

.ftr-trust { text-align: center; padding: 10px 30px; border-left: 1px solid var(--sand-line); border-right: 1px solid var(--sand-line); }
.ftr-trust h4 { margin: 0; color: #68848D; font-size: 12px; font-weight: 600; letter-spacing: 2.6px; line-height: 1.6; text-transform: uppercase; }
.ftr-badge { width: 120px; margin: 0 auto 20px; mix-blend-mode: multiply; }
.ftr-line { width: 46px; height: 2px; margin: 18px auto 26px; background: var(--sand); }
.ftr-bens { display: grid; grid-template-columns: repeat(3, 1fr); }
.ftr-ben { padding: 0 10px; border-right: 1px solid rgba(57,56,56,.13); }
.ftr-ben:last-child { border-right: 0; }
.ftr-ben svg { width: 32px; height: 32px; margin: 0 auto 10px; stroke: var(--teal-dark); fill: none; stroke-width: 1.8; }
.ftr-ben span { display: block; color: var(--teal-dark); font-size: 10px; font-weight: 700; letter-spacing: 2px; line-height: 1.35; text-transform: uppercase; }

.ftr-contact { width: 100%; max-width: 430px; margin-left: auto; }
.ftr-contact h4 { margin: 0 0 24px; font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; }
.ftr-row { display: flex; align-items: center; gap: 16px; margin-bottom: 17px; font-size: 16px; }
.ftr-row a, .ftr-row span { color: var(--charcoal); text-decoration: none; }
.ftr-row a:hover { color: var(--teal-dark); }
.ftr-ico { width: 38px; height: 38px; flex: none; display: flex; align-items: center; justify-content: center; background: rgba(137,197,194,.16); border-radius: 50%; }
.ftr-ico svg { width: 19px; height: 19px; stroke: var(--teal-dark); fill: none; stroke-width: 2; }
.ftr-contact .btn { width: 100%; margin-top: 28px; justify-content: space-between; }

.ftr-btm { position: relative; z-index: 5; background: var(--teal-bar); color: rgba(255,255,255,.82); }
.ftr-btm-in {
  max-width: var(--shell); margin: 0 auto; min-height: 78px; padding: 20px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.ftr-btm p { margin: 0; font-size: 12px; letter-spacing: .7px; }
.ftr-links { display: flex; gap: 26px; }
.ftr-links a { color: rgba(255,255,255,.82); font-size: 12px; text-decoration: none; }
.ftr-links a:hover { color: #fff; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1180px) {
  .nav { gap: 24px; }
  .hdr-main-in { gap: 22px; }
}
@media (max-width: 1024px) {
  .nav, .hdr-main-in > .btn, .hdr-badge { display: none; }
  .burger { display: flex; }
  .hdr-top-in { justify-content: center; }
  .hdr-logo { margin-right: auto; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .ftr-in { grid-template-columns: 1fr 1fr; gap: 46px; }
  .ftr-trust { border-right: 0; }
  .ftr-contact { grid-column: 1 / -1; max-width: 620px; margin: 6px auto 0; }
  .ftr-contact h4 { text-align: center; }
}
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split--flip .split-media { order: 0; }
  .split-media img { max-height: 380px; }
}
@media (max-width: 767px) {
  body { font-size: 16px; }
  .hdr-top-in { padding: 7px var(--pad); gap: 14px; font-size: 11px; }
  .hdr-top-r { gap: 14px; }
  .hdr-top-r a span { display: none; }
  .hdr-top-r a.keep span { display: inline; }
  .hdr-logo img { height: 36px; }
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .field-2 { grid-template-columns: 1fr; }
  .ftr::before { width: 400px; height: 160px; left: -180px; bottom: 330px; }
  .ftr::after  { width: 450px; height: 150px; right: -220px; bottom: 120px; }
  .ftr-in { display: block; padding: 50px var(--pad) 46px; }
  .ftr-brand { margin-bottom: 40px; }
  .ftr-trust { margin-bottom: 40px; padding: 38px 0; border: 0; border-top: 1px solid var(--sand-line); border-bottom: 1px solid var(--sand-line); }
  .ftr-contact { max-width: 100%; margin: 0; }
  .ftr-contact h4 { text-align: left; }
  .ftr-btm-in { flex-direction: column; justify-content: center; text-align: center; min-height: auto; padding: 24px var(--pad); gap: 15px; }
  .ftr-links { flex-wrap: wrap; justify-content: center; gap: 20px; }
  .btn { width: 100%; justify-content: center; }
  .btn-row .btn { width: auto; }
}

/* ---------- contact form status + honeypot ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  margin: 16px 0 0;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.5;
}
.form-status.is-good {
  background: rgba(137,197,194,.18);
  border: 1px solid rgba(62,127,123,.35);
  color: #2C5F5C;
}
.form-status.is-bad {
  background: #FBEFE9;
  border: 1px solid #E0B3A0;
  color: #8A4226;
}
#quote-form button[disabled] { opacity: .6; cursor: progress; }

/* ==========================================================
   LEGAL PAGES
   ========================================================== */
.legal-wrap { display: grid; grid-template-columns: 240px 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }

.toc { position: sticky; top: 28px; }
.toc h4 {
  margin: 0 0 14px; color: var(--teal-dark);
  font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
}
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; margin-bottom: 2px; }
.toc a {
  display: flex; gap: 10px; padding: 6px 0;
  color: var(--muted); font-size: 14px; line-height: 1.4; text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .16s ease;
}
.toc a::before {
  content: counter(toc); flex: none; width: 18px;
  color: var(--sand-deep); font-variant-numeric: tabular-nums; font-weight: 600;
}
.toc a:hover { color: var(--teal-dark); }

.legal { max-width: 68ch; counter-reset: sec; }
.legal > section { counter-increment: sec; margin-bottom: 42px; scroll-margin-top: 24px; }
.legal > section:last-child { margin-bottom: 0; }
.legal h2 {
  display: flex; gap: 14px; align-items: baseline;
  margin-bottom: 14px; font-size: clamp(19px, 2vw, 23px);
}
.legal h2::before {
  content: counter(sec); flex: none;
  color: var(--sand-deep); font-size: 15px; font-variant-numeric: tabular-nums;
}
.legal p, .legal li { color: #4A4A46; font-size: 16.5px; line-height: 1.7; }
.legal ul { margin: 0 0 1em; padding-left: 0; list-style: none; }
.legal ul li { position: relative; padding-left: 22px; margin-bottom: 9px; }
.legal ul li::before {
  content: ""; position: absolute; left: 2px; top: .68em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal);
}
.legal strong { color: var(--charcoal); }
.legal .note {
  margin: 26px 0 0; padding: 18px 22px;
  background: #FBF8F2; border-left: 2px solid var(--sand); border-radius: 0 10px 10px 0;
  font-size: 15.5px;
}
.legal-updated {
  margin-bottom: 34px; padding-bottom: 18px; border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: 14px;
}

@media (max-width: 900px) {
  .legal-wrap { grid-template-columns: 1fr; }
  .toc { position: static; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
  .toc ol { columns: 2; column-gap: 26px; }
}
@media (max-width: 560px) {
  .toc ol { columns: 1; }
}

/* ==========================================================
   MOBILE HERO
   The desktop hero is a wide, angled composition. On a phone
   that angle leaves the lower right too light to read over,
   the 17ch headline cap wastes the width, and nowrap flex
   items in the top bar could push the page sideways.
   ========================================================== */

/* clip, not hidden: does not create a scroll container, so
   position:sticky on the legal pages keeps working */
html, body { overflow-x: clip; }

@media (max-width: 767px) {

  /* top bar items were nowrap and could overrun a narrow phone */
  .hdr-top-in { flex-wrap: wrap; row-gap: 8px; }
  .hdr-top-r { flex-wrap: wrap; justify-content: center; row-gap: 8px; }

  .hero { overflow: hidden; }

  /* vertical wash instead of the 100deg angle, so the copy sits
     on even contrast the whole way down */
  .hero::after {
    background: linear-gradient(
      180deg,
      rgba(28, 42, 41, .70) 0%,
      rgba(28, 42, 41, .78) 45%,
      rgba(28, 42, 41, .93) 100%);
  }

  .hero-in { padding: 54px 0 58px; }

  /* let the headline use the full column on a phone */
  .hero h1 {
    max-width: none;
    font-size: clamp(29px, 8.4vw, 37px);
    line-height: 1.12;
    text-wrap: balance;
  }

  .hero p {
    max-width: none;
    font-size: 16.5px;
    line-height: 1.6;
  }

  .hero .rule { margin: 16px 0 20px; }

  /* stacked, full width, equal - not one wide and one orphaned */
  .hero .btn-row { margin-top: 26px; gap: 11px; }
  .hero .btn-row .btn { width: 100%; justify-content: center; }

  /* interior page heroes are tighter again */
  .hero--page .hero-in { padding: 42px 0 46px; }
  .hero--page h1 { max-width: none; }
  .crumb { margin-bottom: 15px; font-size: 12.5px; }
}

@media (max-width: 380px) {
  .hero-in { padding: 44px 0 48px; }
  .hero h1 { font-size: 27px; }
  .hero p { font-size: 16px; }
}

/* ==========================================================
   SCROLL REVEAL
   Hidden state is gated behind html.js, which is set by an
   inline script in the head. No JS means nothing ever hides,
   so the page still reads fine for crawlers and if a script
   fails to load. Motion is off for prefers-reduced-motion.
   ========================================================== */
@media (prefers-reduced-motion: no-preference) {
  html.js .section > .shell.center,
  html.js .section > .shell > .grid > *,
  html.js .section > .shell.split > *,
  html.js .legal > section,
  html.js .toc {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .6s cubic-bezier(.22, .61, .36, 1),
                transform .6s cubic-bezier(.22, .61, .36, 1);
  }

  html.js .is-in {
    opacity: 1 !important;
    transform: none !important;
  }

  /* the hero is never hidden - the first screen must read at rest */
  html.js .hero * { opacity: 1 !important; transform: none !important; }
}
