/* Legal centre — same beige language as index / features */

.legal-page-shell {
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1280px) {
  .legal-page-shell {
    max-width: 1160px;
  }
}

@media (min-width: 1536px) {
  .legal-page-shell {
    max-width: 1280px;
  }
}

.legal-page-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .legal-page-grid {
    grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  }
}

@media (min-width: 1280px) {
  .legal-page-grid {
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
    gap: 3rem;
  }
}

.legal-toc {
  position: sticky;
  top: 6rem;
  max-height: calc(100vh - 5rem);
  overflow-y: auto;
  padding-right: 0.5rem;
}

.legal-skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: #FFFFFF;
  color: #000000;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
}

.legal-skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  overflow: visible;
}

.legal-article-card {
  padding: 1.75rem 1.5rem;
  border: 0;
  border-radius: 2rem;
  background: #FFFFFF;
  box-shadow: none;
}

@media (min-width: 640px) {
  .legal-article-card {
    padding: 2.25rem 2rem;
  }
}

.legal-article-body h1 {
  margin: 0 0 0.5rem;
  font-family: "Geist", "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #000000;
}

.booking-public .legal-article-body h1 {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
}

.legal-article-body h1 + p em,
.legal-article-body .legal-english-note + p em,
.legal-article-body > p:first-child em {
  display: block;
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
  font-style: normal;
  color: #000000;
  opacity: 0.55;
}

.legal-article-body h2 {
  scroll-margin-top: 5rem;
  margin-top: 0.25rem;
  padding-top: 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #000000;
}

.legal-article-body h3 {
  scroll-margin-top: 1.5rem;
  color: #000000;
}

.legal-toc-link {
  margin-left: -1px;
  display: block;
  border-left: 2px solid transparent;
  padding: 0.25rem 0 0.25rem 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: #000000;
  text-decoration: none;
  opacity: 0.65;
}

.legal-toc-link:hover {
  color: #000000;
  opacity: 1;
}

.legal-toc-link.is-nested {
  padding-left: 1.125rem;
  font-size: 0.75rem;
}

.legal-toc-link.is-active {
  border-left-color: #4155ff;
  color: #000000;
  font-weight: 600;
  opacity: 1;
}

.legal-page .legal-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0 1.25rem;
  border: 1px solid #E8E4DC;
  border-radius: 1rem;
  background: #FFFFFF;
}

.legal-page .legal-table-scroll table {
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  table-layout: fixed;
}

.legal-page .legal-table-scroll th,
.legal-page .legal-table-scroll td {
  overflow-wrap: anywhere;
  word-break: normal;
  color: #000000;
}

@media (max-width: 1023px) {
  .legal-page .legal-table-scroll table {
    width: 100%;
    min-width: 32rem;
  }
}

.legal-page .privacy-policy-content > table {
  border: 1px solid #E8E4DC;
  border-radius: 1rem;
  overflow: hidden;
}

.legal-page .privacy-policy-content thead th {
  background: #F7F5F0;
  border-top: 0;
  color: #000000;
}

.legal-page .privacy-policy-content tbody tr + tr td {
  border-top: 1px solid #E8E4DC;
}

.legal-toc-mobile {
  border: 0 !important;
  border-radius: 1.25rem !important;
  background: #FFFFFF !important;
}

.legal-toc-mobile summary {
  position: relative;
  display: block;
  padding-right: 2.5rem;
  list-style: none;
  color: #000000;
}

.legal-toc-mobile summary::marker {
  content: "";
}

.legal-toc-mobile summary::-webkit-details-marker {
  display: none;
}

.legal-toc-mobile summary::after {
  position: absolute;
  top: 50%;
  right: 1.25rem;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  color: #000000;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.18s ease;
}

.legal-toc-mobile[open] summary::after {
  transform: translateY(-25%) rotate(225deg);
}

@media (max-width: 639px) {
  .legal-page-shell {
    padding-right: 1rem !important;
    padding-left: 1rem !important;
  }

  .legal-article-card {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .booking-public #legal-main > article {
    padding-right: 1rem !important;
    padding-left: 1rem !important;
  }

  .legal-page .legal-table-scroll table {
    min-width: 0;
  }

  .legal-page .legal-table-scroll th,
  .legal-page .legal-table-scroll td {
    padding: 0.55rem 0.45rem;
    overflow-wrap: anywhere;
  }
}

.legal-page .privacy-policy-content {
  color: #000000;
}

.legal-page .privacy-policy-content a {
  color: #4155ff;
  text-decoration-color: rgba(65, 85, 255, 0.35);
}

.legal-page .privacy-policy-content a:hover {
  color: #3144e6;
  text-decoration-color: #3144e6;
}

.legal-hub-title {
  margin: 0 0 0.75rem;
  font-family: "Geist", "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #000000;
}

.legal-doc-section + .legal-doc-section {
  margin-top: 2.5rem;
}

.legal-doc-section__heading {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #000000;
}

.legal-doc-grid {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .legal-doc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

.legal-doc-card {
  display: block;
  border: 0;
  border-radius: 2rem;
  background: #FFFFFF;
  box-shadow: none;
  outline: none;
  padding: 1.5rem 1.5rem 1.4rem;
  color: #000000;
  text-decoration: none;
  transition: none;
}

@media (min-width: 640px) {
  .legal-doc-card {
    padding: 1.65rem 1.75rem 1.5rem;
  }
}

.legal-doc-card:hover {
  background: #FFFFFF;
}

.legal-doc-card:hover .legal-doc-card__label {
  text-decoration: underline;
}

.legal-doc-card:hover .legal-doc-card__desc {
  color: #000000;
}

.legal-doc-card__label {
  display: block;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #000000;
}

.legal-doc-card__desc {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
  color: #000000;
  opacity: 0.7;
}

.legal-related-card {
  display: block;
  padding: 1rem 1.15rem;
  border: 0;
  border-radius: 1.25rem;
  background: #FFFFFF;
  color: #000000;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.legal-related-card:hover {
  background: #E7F7FF;
}

.legal-view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #000000;
  text-decoration: none;
}

.legal-view-all-link:hover {
  color: #05266A;
}

.legal-hub-help {
  margin-top: 3rem;
  padding: 1.75rem 1.5rem;
  border: 0;
  border-radius: 2rem;
  background: #F7F5F0;
  color: #000000;
}

@media (min-width: 640px) {
  .legal-hub-help {
    padding: 2rem 1.875rem;
  }
}

.legal-hub-help__title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #000000;
}

.legal-hub-help__text {
  margin: 0 0 1.25rem;
  max-width: 40rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
  color: #000000;
}

.legal-hub-help__text a {
  font-weight: 600;
  color: #000000;
  text-decoration: underline;
  text-decoration-color: rgba(0, 0, 0, 0.35);
  text-underline-offset: 3px;
}

.legal-hub-help__text a:hover {
  color: #000000;
  text-decoration-color: #000000;
}

.legal-hub-help__note {
  margin: 0;
  max-width: 42rem;
  padding-top: 1.125rem;
  border-top: 1px solid #E8E4DC;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  color: #000000;
  opacity: 0.65;
}

#legalLang .lang-chevron {
  transition: transform 0.2s ease;
}
#legalLang.is-open .lang-chevron {
  transform: rotate(180deg);
}
#legalLang.is-open .lang-menu {
  display: block;
}
@media (prefers-reduced-motion: reduce) {
  #legalLang .lang-chevron {
    transition: none;
  }
}

.legal-article-body .legal-english-note {
  display: inline-block;
  margin: 0.25rem 0 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #F3F1EC;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #000000;
}
