/**
 * Hispadrive — CMS legales (ids 3, 5, 7, 8, 10)
 */
.hispadrive-legal-page #page_banner_container_1,
.hispadrive-legal-page #page_banner_container_1 + .breadcrumb_spacing,
.hispadrive-legal-page #wrapper > .breadcrumb_spacing,
.hispadrive-legal-page .cms_page_heading,
.hispadrive-legal-page .page_heading {
  display: none !important;
}

body.hispadrive-legal-page,
.hispadrive-legal-page #wrapper,
.hispadrive-legal-page #columns,
.hispadrive-legal-page #columns.container,
.hispadrive-legal-page #center_column,
.hispadrive-legal-page #main,
.hispadrive-legal-page section.page-content.page-cms,
.hispadrive-legal-page .page-content.page-cms {
  background: #fff !important;
  background-color: #fff !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.hispadrive-legal-page section.page-content.page-cms,
.hispadrive-legal-page .page-content.page-cms {
  padding: 0 !important;
  margin: 0 !important;
}

/* position:sticky del índice requiere ancestros sin overflow recortado */
.hispadrive-legal-page #st-container,
.hispadrive-legal-page #wrapper,
.hispadrive-legal-page #columns,
.hispadrive-legal-page #columns.container,
.hispadrive-legal-page #center_column,
.hispadrive-legal-page #main,
.hispadrive-legal-page .page-content.page-cms,
.hispadrive-legal-page .hd-legal,
.hispadrive-legal-page .hd-legal__shell {
  overflow: visible !important;
}

.hispadrive-legal-page #main > #breadcrumb_wrapper.hd-breadcrumb {
  margin-top: 0;
  margin-bottom: 0;
}

.hd-legal {
  box-sizing: border-box;
  font-family: var(--font-sans);
}

.hd-legal__shell {
  box-sizing: border-box;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--gutter) 64px;
}

.hd-legal__title {
  margin: 40px 0 28px;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--color-heading, #444a9b);
}

.hd-legal__content {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: #444558;
  text-align: left !important;
}

.hd-legal__content,
.hd-legal__content * {
  text-align: left !important;
  font-family: var(--font-sans) !important;
}

.hd-legal__content h2,
.hd-legal__content h3,
.hd-legal__content .hd-legal__pseudo-h2,
.hd-legal__content .hd-legal__section-heading {
  scroll-margin-top: 120px;
  margin: 40px 0 12px;
  font-size: 20px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.2px;
  color: var(--color-heading, #444a9b) !important;
}

.hd-legal__content .hd-legal__section-heading {
  margin-top: 48px;
}

.hd-legal__content .hd-legal__section-heading:first-of-type {
  margin-top: 8px;
}

.hd-legal[data-hd-legal-cms="5"] .hd-legal__content p:first-of-type {
  margin-top: 0;
}

.hd-legal__content p.post-section-title {
  font-size: inherit !important;
  line-height: inherit !important;
  margin: 0 !important;
  letter-spacing: 0 !important;
}

.hd-legal[data-hd-legal-cms="5"] .hd-legal__content [style*="100vw"],
.hd-legal[data-hd-legal-cms="5"] .hd-legal__content [style*="max-width"] {
  width: auto !important;
  max-width: none !important;
}

.hd-legal--no-toc .hd-legal__aside {
  display: none !important;
}

.hd-legal--no-toc .hd-legal__shell {
  display: block;
  max-width: 760px;
}

@media (min-width: 1100px) {
  .hd-legal--no-toc .hd-legal__shell {
    display: block;
    max-width: 760px;
  }

  .hd-legal--no-toc .hd-legal__title {
    margin-top: 48px;
  }
}

.hd-legal__content h3 {
  margin-top: 28px;
  font-size: 18px !important;
}

.hd-legal__content p,
.hd-legal__content li,
.hd-legal__content td,
.hd-legal__content th {
  font-size: 16px !important;
  line-height: 1.7 !important;
  color: #444558 !important;
}

.hd-legal__content a {
  color: #2b3181 !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hd-legal__content a:hover {
  color: #1e2360 !important;
}

.hd-legal__content ul,
.hd-legal__content ol {
  margin: 0 0 1em;
  padding-left: 1.35em;
}

.hd-legal__content ul {
  list-style: disc;
}

.hd-legal__content ul li::marker {
  color: #a8acc9;
}

.hd-legal__content table {
  width: 100%;
  margin: 1.25em 0;
  border-collapse: collapse;
  font-size: 14px !important;
}

.hd-legal__content th,
.hd-legal__content td {
  padding: 10px 12px;
  border: 1px solid #ececf3;
  vertical-align: top;
}

.hd-legal__content th {
  background: #f9f9fb;
  font-weight: 600;
  color: var(--color-heading, #444a9b) !important;
}

.hd-legal__content section.card,
.hd-legal__content .card {
  margin: 1.5em 0;
  padding: 20px 22px;
  border: 1px solid #ececf3;
  border-radius: 16px;
  background: #fff;
}

.hd-legal__content > header {
  margin-bottom: 1.5em;
}

.hd-legal__hidden-duplicate {
  display: none !important;
}

.hd-legal__company-card {
  margin: 0 0 32px;
  padding: 22px 24px;
  border: 1px solid #ececf3;
  border-radius: 16px;
  background: #fff;
}

.hd-legal__company-card p {
  margin: 0 0 10px;
}

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

.hd-legal__aside {
  margin-bottom: 8px;
}

.hd-legal__toc-label {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #5b61a6;
}

.hd-legal__toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hd-legal__toc-item {
  margin: 0 0 6px;
}

.hd-legal__toc-link {
  display: block;
  padding: 6px 0 6px 12px;
  border-left: 2px solid transparent;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  color: #444558;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.hd-legal__toc-link:hover {
  color: #2b3181;
}

.hd-legal__toc-link.is-active {
  border-left-color: #2b3181;
  font-weight: 500;
  color: #2b3181;
}

.hd-legal__toc-item--level-3 .hd-legal__toc-link {
  padding-left: 24px;
  font-size: 13px;
}

.hd-legal__toc-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 28px 0 0;
  padding: 14px 16px;
  border: 1px solid #ececf3;
  border-radius: 12px;
  background: #f9f9fb;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-heading, #444a9b);
  cursor: pointer;
  text-align: left;
}

.hd-legal__toc-toggle::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid #444a9b;
  border-bottom: 2px solid #444a9b;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.hd-legal__toc-toggle[aria-expanded="true"]::after {
  transform: rotate(-135deg);
}

.hd-legal__toc--panel {
  margin: 0 0 8px;
  padding: 12px 16px 4px;
  border: 1px solid #ececf3;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: #fff;
}

.hd-legal__toc--panel[hidden] {
  display: none !important;
}

.hd-legal__toc--desktop {
  display: none;
}

.hd-legal__toc-list--desktop {
  max-height: none;
}

.hd-legal__help {
  margin-top: 48px;
  padding: 28px 24px;
  border: 1px solid #ececf3;
  border-radius: 16px;
  background: #f9f9fb;
}

.hd-legal__help-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 500;
  color: var(--color-heading, #444a9b);
}

.hd-legal__help-text {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.6;
  color: #444558;
}

.hd-legal__help-text a {
  color: #2b3181;
  text-decoration: underline;
}

.hd-legal__help-btn {
  min-height: 48px;
  padding-left: 28px;
  padding-right: 28px;
}

@media (min-width: 1100px) {
  .hd-legal__shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 760px);
    gap: 56px;
    align-items: stretch;
    max-width: calc(260px + 56px + 760px);
    padding-bottom: 96px;
  }

  .hd-legal__article {
    min-width: 0;
  }

  .hd-legal__title {
    margin-top: 48px;
  }

  .hd-legal__toc-mobile {
    display: none;
  }

  .hd-legal__aside {
    align-self: stretch;
    margin-bottom: 0;
    width: 260px;
    min-height: 100%;
  }

  .hd-legal__toc--desktop {
    display: flex;
    flex-direction: column;
    margin-top: 48px;
    width: 260px;
    max-height: var(--hd-legal-toc-max-height, none);
    box-sizing: border-box;
  }

  .hd-legal__aside--pin .hd-legal__toc--desktop {
    position: fixed;
    z-index: 25;
    box-sizing: border-box;
  }

  .hd-legal__toc-list--desktop {
    flex: 1 1 auto;
    min-height: 0;
    max-height: var(--hd-legal-toc-list-max-height, calc(100vh - var(--hd-legal-toc-top, 96px) - 24px));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: #c9c9d8 transparent;
  }

  .hd-legal__toc-list--desktop::-webkit-scrollbar {
    width: 5px;
  }

  .hd-legal__toc-list--desktop::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #c9c9d8;
  }

  .hd-legal--toc-long .hd-legal__shell {
    grid-template-columns: 300px minmax(0, 760px);
    max-width: calc(300px + 56px + 760px);
  }

  .hd-legal--toc-long .hd-legal__aside,
  .hd-legal--toc-long .hd-legal__toc--desktop {
    width: 300px;
  }

  .hd-legal--toc-long .hd-legal__toc-link {
    font-size: 12px;
    line-height: 1.4;
    padding: 5px 0 5px 10px;
  }

  .hd-legal--toc-long .hd-legal__toc-item {
    margin-bottom: 4px;
  }

  .hd-legal--toc-long .hd-legal__toc-item:first-child .hd-legal__toc-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-heading, #444a9b);
  }
}

@media (max-width: 767px) {
  .hd-legal__shell {
    padding-bottom: 64px;
  }

  .hd-legal__title {
    margin-top: 28px;
    font-size: 32px;
  }
}

@media (max-width: 390px) {
  .hd-legal__title {
    font-size: 28px;
  }

  .hd-legal__help {
    padding: 22px 18px;
  }

  .hd-legal__help-btn {
    width: 100%;
    justify-content: center;
  }
}
