/* ============================================================
   Delancey Street — Utility / Footer Pages
   Privacy Policy, Terms of Service, Sitemap
   Owned by agent T9. Loaded by template files directly.
   ============================================================ */

/* ------------------------------------------------------------
   LEGAL PAGE LAYOUT (privacy + terms)
   Two-column reading layout: sticky TOC + long-form article.
   ------------------------------------------------------------ */
.ds-legal {
  padding: 72px var(--ds-page-pad-x) 96px;
  background: var(--ds-white);
  position: relative;
  overflow: hidden;
}
.ds-legal__inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
}

/* Sticky table-of-contents */
.ds-legal__toc {
  position: sticky;
  top: 120px;
  align-self: start;
}
.ds-legal__toc-kicker {
  font-size: 11px;
  font-weight: 800;
  color: var(--ds-cyan);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ds-cyan);
}
.ds-legal__toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: ds-legal-toc;
}
.ds-legal__toc ol li {
  counter-increment: ds-legal-toc;
}
.ds-legal__toc ol a {
  font-size: 13px;
  color: var(--ds-ink);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.4;
  display: block;
  padding: 4px 0;
  transition: color var(--ds-dur) var(--ds-ease);
}
.ds-legal__toc ol a::before {
  content: counter(ds-legal-toc) ". ";
  color: var(--ds-muted);
  font-weight: 700;
}
.ds-legal__toc ol a:hover,
.ds-legal__toc ol a:focus-visible {
  color: var(--ds-cyan-deep);
}
.ds-legal__toc-cta {
  margin-top: 32px;
  padding: 20px 22px;
  background: var(--ds-paper);
  border-radius: 14px;
  border: 1px solid var(--ds-line);
}
.ds-legal__toc-cta .kicker {
  font-size: 11px;
  font-weight: 800;
  color: var(--ds-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.ds-legal__toc-cta p {
  font-size: 14px;
  color: var(--ds-ink);
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
}
.ds-legal__toc-cta a {
  color: var(--ds-cyan-deep);
  font-weight: 700;
  text-decoration: none;
}
.ds-legal__toc-cta a:hover { text-decoration: underline; }

/* Plain-English summary callout */
.ds-legal__summary {
  padding: 24px 28px;
  background: rgba(0, 184, 240, 0.06);
  border: 1px solid rgba(0, 184, 240, 0.22);
  border-radius: 16px;
  margin-bottom: 48px;
}
.ds-legal__summary-kicker {
  font-size: 13px;
  font-weight: 800;
  color: var(--ds-cyan-deep);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.ds-legal__summary p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ds-ink-2);
  font-weight: 500;
}

/* Article body */
.ds-legal__article {
  min-width: 0; /* allow long words/email links to wrap inside grid */
}
.ds-legal__section {
  margin-bottom: 48px;
  scroll-margin-top: 120px;
}
.ds-legal__section:last-of-type {
  margin-bottom: 24px;
}
.ds-legal__section h2 {
  font-size: 26px;
  font-weight: 900;
  color: var(--ds-ink);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 18px;
  text-wrap: balance;
}
.ds-legal__section p {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ds-ink-2);
  margin: 0 0 14px;
  font-weight: 500;
}
.ds-legal__section p:last-child { margin-bottom: 0; }
.ds-legal__section a {
  color: var(--ds-cyan);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 120ms ease, text-decoration-thickness 120ms ease;
}
.ds-legal__section a:hover {
  color: var(--ds-cyan-deep);
  text-decoration-thickness: 2px;
}
.ds-legal__section a:focus-visible {
  outline: 2px solid var(--ds-cyan);
  outline-offset: 2px;
  border-radius: 2px;
}
.ds-legal__section strong {
  color: var(--ds-ink);
  font-weight: 800;
}
/* Generic prose lists in legal body (plain ul/ol from content, not .ds-legal__defs).
   Base resets ul/ol globally so body lists need explicit markers. */
.ds-legal__section > ul,
.ds-legal__section > ol {
  margin: 14px 0 18px;
  padding-left: 26px;
}
.ds-legal__section > ul { list-style: disc; }
.ds-legal__section > ol { list-style: decimal-leading-zero; padding-left: 36px; }
.ds-legal__section > ul > li,
.ds-legal__section > ol > li {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ds-ink-2);
  font-weight: 500;
  margin-bottom: 8px;
  padding-left: 4px;
}
.ds-legal__section > ul > li::marker { color: var(--ds-cyan); }
.ds-legal__section > ol > li::marker { color: var(--ds-cyan); font-weight: 800; }

/* Bulleted definition list — each li has a bold label + description */
.ds-legal__defs {
  list-style: none;
  padding: 0;
  margin: 18px 0 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ds-legal__defs li {
  padding-left: 22px;
  position: relative;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ds-ink-2);
  font-weight: 500;
}
.ds-legal__defs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ds-cyan);
}
.ds-legal__defs li strong {
  color: var(--ds-ink);
  font-weight: 800;
}
.ds-legal__defs li strong::after {
  content: ". ";
  font-weight: 800;
}

/* Last-updated stamp + back-to-top */
.ds-legal__updated {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--ds-line);
  font-size: 13px;
  color: var(--ds-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ds-legal__back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ds-cyan-deep);
  text-decoration: none;
  padding: 8px 16px;
  border: 1.5px solid var(--ds-line);
  border-radius: 999px;
  background: var(--ds-white);
  transition: border-color var(--ds-dur) var(--ds-ease), color var(--ds-dur) var(--ds-ease);
}
.ds-legal__back-to-top:hover,
.ds-legal__back-to-top:focus-visible {
  border-color: var(--ds-cyan);
  color: var(--ds-ink);
}
.ds-legal__back-to-top::before {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(-45deg);
  margin-top: 3px;
}

/* ------------------------------------------------------------
   SITEMAP LAYOUT
   ------------------------------------------------------------ */
.ds-sitemap {
  padding: 56px var(--ds-page-pad-x) 96px;
  background: var(--ds-white);
  position: relative;
  overflow: hidden;
}
.ds-sitemap__inner {
  max-width: 1280px;
  margin: 0 auto;
}

/* Each sitemap group (Pages, Services, Blog, States, Cities) */
.ds-sitemap__group {
  margin-bottom: 48px;
}
.ds-sitemap__group:last-child {
  margin-bottom: 0;
}
.ds-sitemap__grouphead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.ds-sitemap__group h2 {
  font-size: 22px;
  font-weight: 900;
  color: var(--ds-ink);
  letter-spacing: -0.005em;
  text-transform: uppercase;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}
.ds-sitemap__group h2::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--ds-cyan);
  flex-shrink: 0;
}
.ds-sitemap__count {
  font-size: 12px;
  font-weight: 700;
  color: var(--ds-muted);
  letter-spacing: 0.16em;
}
.ds-sitemap__all {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ds-cyan-deep);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--ds-line);
  background: var(--ds-white);
  transition: border-color var(--ds-dur) var(--ds-ease), color var(--ds-dur) var(--ds-ease);
}
.ds-sitemap__all:hover,
.ds-sitemap__all:focus-visible {
  border-color: var(--ds-cyan);
  color: var(--ds-ink);
}

/* Link grids */
.ds-sitemap__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.ds-sitemap__list--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.ds-sitemap__list--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ds-sitemap__list a {
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ds-ink-2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: background var(--ds-dur) var(--ds-ease), color var(--ds-dur) var(--ds-ease);
  min-width: 0;
}
.ds-sitemap__list a::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ds-cyan);
  flex-shrink: 0;
}
.ds-sitemap__list a:hover,
.ds-sitemap__list a:focus-visible {
  background: var(--ds-paper);
  color: var(--ds-ink);
}
.ds-sitemap__list a > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* CTA band beneath sitemap (uses shared .ds-cta-band; just constrain content) */
.ds-sitemap-cta__inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* ============================================================
   Final CTA Band — utility-page variant
   Mirrors the design snapshot pattern (copy + consultation pic
   with #delanceygotyou hashtag) for privacy-policy / terms /
   sitemap. Owned by agent Q6.
   ============================================================ */
.ds-team-final-cta { text-align: left; }
.ds-team-final-cta .ds-team-final-cta__inner {
  display: grid;
  grid-template-columns: minmax(0,1fr) 360px;
  gap: 56px;
  align-items: center;
  max-width: var(--ds-page-max);
  margin: 0 auto;
}
.ds-team-final-cta__copy h2 { margin-bottom: 18px; }
.ds-team-final-cta__sub {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
  margin-bottom: 24px;
  opacity: 0.92;
  max-width: 640px;
}
.ds-team-final-cta__sub strong { font-weight: 800; color: var(--ds-cyan, #00b4d8); }
.ds-team-final-cta__actions {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.ds-team-final-cta__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: var(--ds-fw-heavy);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
  border: 1px solid currentColor;
  padding: 12px 18px;
  border-radius: 999px;
}
.ds-team-final-cta__phone:hover { opacity: 0.85; }
.ds-team-final-cta__pic {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--ds-cyan-deep, #003a4d);
}
.ds-team-final-cta__pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ds-team-final-cta__hashtag {
  position: absolute;
  left: 18px;
  bottom: 18px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.ds-team-final-cta__hashtag span {
  background: linear-gradient(90deg, var(--ds-cyan, #00b4d8), #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (max-width: 900px) {
  .ds-team-final-cta .ds-team-final-cta__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .ds-team-final-cta__pic { max-width: 480px; margin: 0 auto; }
}

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .ds-legal__inner {
    grid-template-columns: 240px 1fr;
    gap: 48px;
  }
  .ds-sitemap__list--4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .ds-legal {
    padding: 56px var(--ds-page-pad-x);
  }
  .ds-legal__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .ds-legal__toc {
    position: static;
    top: auto;
    padding: 20px 22px;
    background: var(--ds-paper);
    border-radius: 14px;
    border: 1px solid var(--ds-line);
  }
  .ds-legal__toc ol {
    gap: 6px;
  }
  .ds-legal__toc-cta {
    margin-top: 20px;
    padding: 16px 18px;
    background: var(--ds-white);
  }
  .ds-legal__section h2 {
    font-size: 22px;
  }
  .ds-legal__section p,
  .ds-legal__defs li {
    font-size: 15px;
  }

  .ds-sitemap {
    padding: 40px var(--ds-page-pad-x) 64px;
  }
  .ds-sitemap__list,
  .ds-sitemap__list--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ds-sitemap__group h2 { font-size: 18px; }
}

@media (max-width: 520px) {
  .ds-legal__updated {
    flex-direction: column;
    align-items: flex-start;
  }
  .ds-sitemap__list,
  .ds-sitemap__list--4,
  .ds-sitemap__list--2 {
    grid-template-columns: 1fr;
  }
}

/* Reduced motion safety */
@media (prefers-reduced-motion: reduce) {
  .ds-legal__toc ol a,
  .ds-legal__back-to-top,
  .ds-sitemap__list a,
  .ds-sitemap__all {
    transition: none;
  }
  html { scroll-behavior: auto; }
}
