.haillo-legal-page {
  overflow-wrap: anywhere;
  background: var(--wp--preset--color--white);
  color: var(--wp--preset--color--navy);
}

.haillo-legal-page *,
.haillo-legal-page *::before,
.haillo-legal-page *::after { box-sizing: border-box; }

.haillo-legal-page h1,
.haillo-legal-page h2,
.haillo-legal-page h3 { letter-spacing: 0; }

.haillo-legal-hero {
  width: 100%;
  max-width: none !important;
  margin: 0;
  padding: clamp(145px, 15vw, 190px) 24px clamp(60px, 7vw, 84px);
  border-bottom: 1px solid rgba(6,23,71,.08);
  background: linear-gradient(145deg, #fff 0%, #f7f9fd 65%, #faf7ff 100%);
}

.haillo-legal-hero > * { width: min(850px, 100%); margin-right: auto !important; margin-left: auto !important; }
.haillo-legal-hero > .haillo-eyebrow {
  width: max-content;
  max-width: 100%;
  margin-right: 0 !important;
  margin-bottom: 20px;
  margin-left: max(0px, calc((100% - var(--wp--style--global--content-size, 760px)) / 2)) !important;
}
.haillo-legal-hero .wp-block-post-title {
  margin-top: 0;
  margin-bottom: 0;
  font-size: clamp(3rem, 5.2vw, 4.5rem);
  font-weight: 670;
  line-height: 1.06;
}
.haillo-legal-hero h1 {
  margin-top: 0;
  margin-bottom: 0;
  font-size: clamp(3rem, 5.2vw, 4.5rem);
  font-weight: 670;
  line-height: 1.06;
}
.haillo-legal-hero__inner > p {
  margin: 22px 0 0;
  color: var(--wp--preset--color--slate);
  font-size: var(--wp--preset--font-size--lead);
  line-height: 1.65;
}
.haillo-legal-hero__inner > time { display: block; margin-top: 22px; color: var(--wp--preset--color--slate); font-size: .8rem; }
.haillo-legal-hero__intro {
  margin-top: 22px !important;
  margin-bottom: 0 !important;
  color: var(--wp--preset--color--slate);
  font-size: var(--wp--preset--font-size--lead);
  line-height: 1.65;
}
.haillo-legal-updated { gap: 5px !important; margin-top: 22px !important; color: var(--wp--preset--color--slate); font-size: .8rem; }
.haillo-legal-updated p { margin: 0; }

.haillo-legal-layout {
  display: grid;
  grid-template-columns: minmax(190px, 250px) minmax(0, 850px);
  gap: clamp(45px, 7vw, 95px);
  width: var(--wp--custom--container--page);
  max-width: 1200px !important;
  margin: 0 auto;
  padding: clamp(65px, 8vw, 110px) 0 clamp(90px, 10vw, 145px);
}

.haillo-policy-layout {
  display: grid;
  grid-template-columns: minmax(190px, 250px) minmax(0, 850px);
  gap: clamp(45px, 7vw, 95px);
  width: var(--wp--custom--container--page);
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(65px, 8vw, 110px) 0 clamp(90px, 10vw, 145px);
}

.haillo-legal-toc {
  position: sticky;
  top: 120px;
  align-self: start;
  max-height: calc(100vh - 150px);
  overflow-y: auto;
  padding: 4px 18px 10px 2px;
  scrollbar-width: thin;
}
.haillo-legal-toc > p { margin: 0 0 16px; color: var(--wp--preset--color--navy); font-size: .72rem; font-weight: 760; letter-spacing: .065em; text-transform: uppercase; }
.haillo-legal-toc ol { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; counter-reset: legal-toc; }
.haillo-legal-toc li { counter-increment: legal-toc; }
.haillo-legal-toc a {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 6px;
  padding: 6px 8px;
  border-left: 2px solid transparent;
  color: var(--wp--preset--color--slate);
  font-size: .68rem;
  font-weight: 560;
  line-height: 1.35;
  transition: border-color var(--wp--custom--transition--fast), color var(--wp--custom--transition--fast), background var(--wp--custom--transition--fast);
}
.haillo-legal-toc a::before { color: rgba(102,112,133,.65); content: counter(legal-toc, decimal-leading-zero); font-size: .58rem; }
.haillo-legal-toc a:hover,
.haillo-legal-toc a[aria-current="location"] { border-left-color: var(--wp--preset--color--blue); background: rgba(52,120,246,.055); color: var(--wp--preset--color--navy); }
.haillo-legal-toc-mobile { display: none; }
.haillo-policy-toc { position: sticky; top: 120px; align-self: start; max-height: calc(100vh - 150px); overflow-y: auto; padding: 4px 18px 10px 2px; scrollbar-width: thin; }
.haillo-policy-toc > p { margin: 0 0 16px; color: var(--wp--preset--color--navy); font-size: .72rem; font-weight: 760; letter-spacing: .065em; text-transform: uppercase; }
.haillo-policy-toc ol { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; counter-reset: legal-toc; }
.haillo-policy-toc li { counter-increment: legal-toc; }
.haillo-policy-toc a { display: grid; grid-template-columns: 22px 1fr; gap: 6px; padding: 6px 8px; border-left: 2px solid transparent; color: var(--wp--preset--color--slate); font-size: .68rem; font-weight: 560; line-height: 1.35; }
.haillo-policy-toc a::before { color: rgba(102,112,133,.65); content: counter(legal-toc, decimal-leading-zero); font-size: .58rem; }
.haillo-policy-toc a:hover,
.haillo-policy-toc a[aria-current="location"] { border-left-color: var(--wp--preset--color--blue); background: rgba(52,120,246,.055); color: var(--wp--preset--color--navy); }
.haillo-policy-toc-mobile { display: none; }

.haillo-policy-content { width: 100%; max-width: 850px; }
.haillo-policy-content section { scroll-margin-top: 130px; }
.haillo-policy-content h2 { margin: clamp(52px, 7vw, 78px) 0 20px; padding-top: 12px; font-size: clamp(1.65rem, 2.5vw, 2.15rem); font-weight: 680; line-height: 1.25; }
.haillo-policy-content section:first-of-type h2 { margin-top: 42px; }
.haillo-policy-content h3 { margin: 36px 0 14px; font-size: clamp(1.16rem, 1.7vw, 1.4rem); line-height: 1.35; }
.haillo-policy-content p,
.haillo-policy-content li { color: #344054; font-size: 1rem; line-height: 1.82; }
.haillo-policy-content p { margin: 0 0 20px; }
.haillo-policy-content ul,
.haillo-policy-content ol { margin: 0 0 24px; padding-left: 1.35rem; }
.haillo-policy-content li { margin-bottom: 8px; padding-left: 5px; }
.haillo-policy-content strong { color: var(--wp--preset--color--navy); }
.haillo-policy-content a { color: var(--wp--preset--color--blue); font-weight: 620; text-decoration: underline; text-underline-offset: 3px; }
.haillo-policy-preamble { padding: 28px; border: 1px solid rgba(6,23,71,.09); border-radius: var(--wp--custom--radius--medium); background: var(--wp--preset--color--mist); }
.haillo-policy-preamble p:last-child { margin-bottom: 0; }

.haillo-terms-document { width: 100%; max-width: 850px !important; margin: 0 !important; }
.haillo-terms-document > :first-child { margin-top: 0; }
.haillo-terms-source-date { margin: 0 0 36px !important; color: var(--wp--preset--color--slate) !important; font-size: .82rem !important; }
.haillo-terms-document > p,
.haillo-terms-document > ul,
.haillo-terms-document > ol,
.haillo-terms-document > blockquote,
.haillo-terms-document > address,
.haillo-terms-document > .wp-block-group { max-width: 100%; }
.haillo-terms-document h2 {
  margin: clamp(52px, 7vw, 78px) 0 20px;
  padding-top: 12px;
  color: var(--wp--preset--color--navy);
  font-size: clamp(1.65rem, 2.5vw, 2.15rem);
  font-weight: 680;
  line-height: 1.25;
  scroll-margin-top: 130px;
}
.haillo-terms-document h2:first-child { margin-top: 0; }
.haillo-terms-document h3 { margin: 36px 0 14px; font-size: clamp(1.16rem, 1.7vw, 1.4rem); font-weight: 680; line-height: 1.35; scroll-margin-top: 130px; }
.haillo-terms-document p,
.haillo-terms-document li { color: #344054; font-size: 1rem; line-height: 1.82; }
.haillo-terms-document p { margin: 0 0 20px; }
.haillo-terms-document ul,
.haillo-terms-document ol { margin: 0 0 24px; padding-left: 1.35rem; }
.haillo-terms-document li { margin-bottom: 8px; padding-left: 5px; }
.haillo-terms-document strong { color: var(--wp--preset--color--navy); font-weight: 700; }
.haillo-terms-document a { color: var(--wp--preset--color--blue); font-weight: 620; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.haillo-terms-document blockquote { margin: 28px 0; padding: 20px 24px; border-left: 3px solid var(--wp--preset--color--blue); background: var(--wp--preset--color--mist); }
.haillo-terms-document blockquote p:last-child { margin-bottom: 0; }
.haillo-terms-document address { margin: 24px 0; color: #344054; font-style: normal; line-height: 1.8; }
.haillo-terms-document hr { margin: 52px 0; border: 0; border-top: 1px solid rgba(6,23,71,.1); }
.haillo-terms-document code { padding: 2px 5px; border-radius: 5px; background: var(--wp--preset--color--mist); font-size: .9em; }

.haillo-legal-page a:focus-visible,
.haillo-legal-page summary:focus-visible { outline: none; box-shadow: var(--wp--custom--shadow--focus); }

@media (max-width: 1024px) {
  .haillo-legal-layout { grid-template-columns: 195px minmax(0, 1fr); gap: 42px; }
  .haillo-policy-layout { grid-template-columns: 195px minmax(0, 1fr); gap: 42px; }
}

@media (max-width: 780px) {
  .haillo-legal-hero { padding: 130px 20px 58px; }
  .haillo-legal-hero .wp-block-post-title { font-size: clamp(2.8rem, 12vw, 4rem); }
  .haillo-legal-layout { display: block; width: min(100% - 36px, 850px); padding-top: 38px; }
  .haillo-policy-layout { display: block; width: min(100% - 36px, 850px); padding-top: 38px; }
  .haillo-legal-toc { display: none; }
  .haillo-policy-toc { display: none; }
  .haillo-legal-toc-mobile { display: block; margin: 0 0 48px; border: 1px solid rgba(6,23,71,.11); border-radius: 14px; background: var(--wp--preset--color--mist); }
  .haillo-legal-toc-mobile summary { display: flex; align-items: center; justify-content: space-between; padding: 15px 17px; cursor: pointer; font-size: .88rem; font-weight: 700; list-style: none; }
  .haillo-legal-toc-mobile summary::-webkit-details-marker { display: none; }
  .haillo-legal-toc-mobile summary span { color: var(--wp--preset--color--blue); font-size: 1.25rem; transition: transform var(--wp--custom--transition--fast); }
  .haillo-legal-toc-mobile[open] summary span { transform: rotate(45deg); }
  .haillo-legal-toc-mobile nav { max-height: 55vh; overflow-y: auto; padding: 0 17px 17px; }
  .haillo-legal-toc-mobile ol { display: grid; gap: 9px; margin: 0; padding: 15px 0 0 20px; border-top: 1px solid rgba(6,23,71,.09); }
  .haillo-legal-toc-mobile a { color: var(--wp--preset--color--slate); font-size: .76rem; line-height: 1.4; }
  .haillo-policy-toc-mobile { display: block; margin: 0 0 48px; border: 1px solid rgba(6,23,71,.11); border-radius: 14px; background: var(--wp--preset--color--mist); }
  .haillo-policy-toc-mobile summary { display: flex; align-items: center; justify-content: space-between; padding: 15px 17px; cursor: pointer; font-size: .88rem; font-weight: 700; list-style: none; }
  .haillo-policy-toc-mobile summary::-webkit-details-marker { display: none; }
  .haillo-policy-toc-mobile nav { max-height: 55vh; overflow-y: auto; padding: 0 17px 17px; }
  .haillo-policy-toc-mobile ol { display: grid; gap: 9px; margin: 0; padding: 15px 0 0 36px; border-top: 1px solid rgba(6,23,71,.09); }
  .haillo-policy-toc-mobile a { color: var(--wp--preset--color--slate); font-size: .76rem; line-height: 1.4; }
  .haillo-terms-document h2 { scroll-margin-top: 105px; }
}

@media (max-width: 430px) {
  .haillo-legal-layout { width: calc(100% - 32px); }
  .haillo-policy-layout { width: calc(100% - 32px); }
  .haillo-terms-document h2 { font-size: 1.55rem; }
  .haillo-terms-document p,
  .haillo-terms-document li { font-size: .96rem; line-height: 1.76; }
}

@media (prefers-reduced-motion: no-preference) {
  .haillo-terms-page { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
  .haillo-legal-page *,
  .haillo-legal-page *::before,
  .haillo-legal-page *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
