/* legal.css — shared styling for Legalprivacypolicy.php and Legaltermsoservice.php */

/* The document source is parsed by js/legal-canvas.js and never displayed.
   Kept in the DOM (rather than display:none) so crawlers and assistive
   technology can still reach the text, but excluded from selection and from
   pointer interaction so it cannot be copied out of the page. */
#legalSource {
  position: absolute;
  left: -99999px;
  top: 0;
  width: 900px;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

.legal-doc-page {
  box-sizing: border-box;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Grows to absorb any shortfall so the footer always meets the bottom of the
   viewport; never shrinks, so a tall document still scrolls normally. The
   growth is split evenly above and below the card rather than piling up
   underneath it. */
.legal-page {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef1f6;
  padding: 26px 0;
}

/* The document box — the only rounded element on the page. */
.legal-container {
  width: 92%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0;
  background: #fff;
  border: 1px solid #d7dde6;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(24, 63, 122, 0.10);
  overflow: hidden;
}

/* Title plate — one line, closed by the double rule a printed instrument uses. */
.legal-plate {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  padding: 11px 24px 10px;
  background: linear-gradient(180deg, #fbfcfe 0%, #fff 100%);
}

.legal-eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #7b8899;
  white-space: nowrap;
}

.legal-plate-sep {
  align-self: center;
  width: 1px;
  height: 15px;
  background: #ccd4de;
}

.legal-heading {
  margin: 0;
  font-family: 'Times New Roman', Times, serif;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: #16283d;
}

.scroll-box {
  width: 100%;
  /* Deliberately a little short of the space available: .legal-page grows
     to absorb whatever is left over, so the footer lands exactly on the
     bottom edge without the outer page needing a scrollbar. */
  height: calc(100vh - 265px);
  min-height: 300px;
  margin: 0;
  padding: 0;
  overflow-y: scroll;
  overflow-x: hidden;
  background: #fff;
  border: 0;
  border-radius: 0 0 12px 12px;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: #c2cbd8 #f1f4f8;
}

.scroll-box canvas {
  display: block;
}

.scroll-box::-webkit-scrollbar {
  width: 11px;
}

.scroll-box::-webkit-scrollbar-track {
  background: #f1f4f8;
}

.scroll-box::-webkit-scrollbar-thumb {
  background: #c2cbd8;
  border: 3px solid #f1f4f8;
  border-radius: 6px;
}

.scroll-box::-webkit-scrollbar-thumb:hover {
  background: #a7b3c4;
}

.legal-doc-page .footer {
  flex: 0 0 auto;
  padding: 0;
}

@media (max-width: 767.98px) {
  .legal-page {
    padding: 14px 0;
  }

  .legal-container {
    width: 96%;
    border-radius: 10px;
  }

  .legal-plate {
    gap: 9px;
    padding: 9px 12px 8px;
  }

  .legal-eyebrow {
    font-size: 9px;
    letter-spacing: 0.16em;
  }

  .legal-heading {
    font-size: 17px;
  }

  .scroll-box {
    height: calc(100vh - 175px);
    min-height: 320px;
    border-radius: 0 0 10px 10px;
  }
}
