/*
 * Legal pages (Privacy Policy, Terms & Conditions, Cookie Policy).
 * Site typography (Advent Pro), white background, dark text, purple/yellow details.
 */
/* Specific enough to override the site's ".verticalScroll .rightContents .main section" padding */
.verticalScroll .rightContents .main section.legal-page {
  max-width: 820px;
  padding: 40px 30px 80px;
  color: #212529;
}

/* The site's ".main section" rules must not add padding to nested sections */
.verticalScroll .rightContents .main .legal-page section.legal-section {
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  float: none;
  overflow: visible;
}

/* Breadcrumb */
.legal-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: #6b6578;
}

.legal-breadcrumb li + li::before {
  content: "/";
  margin-inline-end: 8px;
  color: #b9b2c4;
}

.legal-breadcrumb a {
  color: #6b6578;
  text-decoration: none;
}

.legal-breadcrumb a:hover {
  color: #542785;
  text-decoration: underline;
}

.legal-breadcrumb [aria-current="page"] {
  color: #542785;
  font-weight: 600;
}

/* Header — h1 uses the site's existing "title" style (uppercase, yellow bar) */
.legal-header h1.title {
  margin-bottom: 28px;
}

.legal-intro p {
  font-size: 17px;
  line-height: 1.7;
}

/* Body text */
.legal-page p,
.legal-page li {
  font-size: 16px;
  line-height: 1.75;
}

.legal-page p {
  margin: 0 0 14px;
}

.legal-page ul,
.legal-page ol {
  margin: 0 0 16px;
  padding-inline-start: 22px;
}

.legal-page li {
  margin-bottom: 6px;
}

.legal-page li::marker {
  color: #542785;
}

.legal-page a {
  color: #542785;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page a:hover {
  color: #3d1c61;
  text-decoration-color: #fac400;
}

.legal-page a:focus-visible,
.legal-page button:focus-visible,
.legal-table-wrap:focus-visible {
  outline: 2px solid #542785;
  outline-offset: 2px;
}

.legal-page code {
  padding: 1px 5px;
  border-radius: 3px;
  background: #f4f0f9;
  color: #3d1c61;
  font-size: 13px;
  letter-spacing: 0;
  word-break: break-word;
}

/* Table of contents */
.legal-toc {
  margin: 8px 0 40px;
  padding: 18px 22px;
  border-inline-start: 3px solid #fac400;
  background: #faf8fc;
}

.legal-toc__title {
  margin: 0 0 8px !important;
  color: #542785;
  font-size: 12px !important;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.legal-toc ol {
  columns: 2 240px;
  column-gap: 32px;
  margin: 0;
  padding-inline-start: 20px;
}

.legal-toc li {
  margin-bottom: 4px;
  font-size: 15px;
  line-height: 1.5;
  break-inside: avoid;
}

.legal-toc a {
  text-decoration: none;
}

.legal-toc a:hover {
  text-decoration: underline;
}

/* Sections */
.legal-section {
  scroll-margin-top: 24px;
}

.legal-section + .legal-section {
  margin-top: 36px;
}

.legal-updated {
  margin: 32px 0 0 !important;
  color: #6b6578;
  font-size: 14px !important;
}

.legal-section h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 14px;
  color: #1e2333;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.legal-num {
  flex-shrink: 0;
  color: #542785;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
}

.legal-section h3 {
  margin: 22px 0 8px;
  color: #1e2333;
  font-size: 17px;
  font-weight: 700;
}

.legal-address {
  margin: 0;
  font-size: 16px;
  font-style: normal;
  line-height: 1.75;
}

/* Review notes (drafting aid; hidden once SHOW_LEGAL_REVIEW_NOTES is false) */
.legal-review {
  margin: 12px 0 18px;
  padding: 10px 14px;
  border-inline-start: 3px solid #fac400;
  background: #fffbea;
  color: #5c4a00;
  font-size: 14px;
  line-height: 1.6;
}

/* Cookie tables */
.legal-table-wrap {
  margin: 8px 0 18px;
  overflow-x: auto;
}

.legal-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.55;
}

.legal-table caption {
  margin-bottom: 6px;
  color: #542785;
  font-size: 13px;
  font-weight: 600;
  text-align: start;
  caption-side: top;
}

.legal-table th,
.legal-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #ebe6f2;
  text-align: start;
  vertical-align: top;
}

.legal-table thead th {
  border-bottom: 2px solid #542785;
  color: #1e2333;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.legal-table tbody th {
  font-weight: 400;
}

/* Cookie settings (Cookie Policy page) */
.legal-prefs {
  margin: 8px 0 18px;
  padding: 18px 20px;
  border: 1px solid #e3dbee;
  border-top: 3px solid #542785;
  background: #faf8fc;
  min-height: 1px;
}

.legal-prefs:empty {
  display: none;
}

.legal-prefs__title {
  margin: 0 0 4px !important;
  color: #1e2333;
  font-weight: 700;
}

.legal-prefs__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.legal-btn {
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid #542785;
  border-radius: 6px;
  background: #fff;
  color: #542785;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.legal-btn:hover {
  background: #f4f0f9;
}

.legal-btn--primary {
  background: #542785;
  color: #fff;
}

.legal-btn--primary:hover {
  background: #3d1c61;
}

.legal-btn[aria-pressed="true"] {
  box-shadow: inset 0 -3px 0 #fac400;
}

/* Related policies */
.legal-related {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid #ebe6f2;
}

.legal-related p {
  margin-bottom: 8px;
  color: #6b6578;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.legal-related ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-related a {
  text-decoration: none;
  font-weight: 600;
}

.legal-related i {
  margin-inline-end: 6px;
  color: #542785;
}

@media (max-width: 992px) {
  .verticalScroll .rightContents .main section.legal-page {
    padding: 28px 20px 60px;
  }
}

@media (max-width: 576px) {
  .legal-intro p {
    font-size: 16px;
  }

  .legal-section h2 {
    font-size: 19px;
  }

  .legal-toc {
    padding: 14px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .legal-btn {
    transition: none;
  }
}
