/* ========================================================================
   Legal & Privacy hub.

   Loads on top of subpage.css, which supplies the reset, the body background
   band behind the nav, and the type stack (Poppins headings / Inter body).
   Only what the hub adds lives here.
   ======================================================================== */

.lg {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 1.5rem 96px;
}

/* Moved off the top rather than off the left: a negative left offset widens
   the scroll area in some browsers, which shows up as a stray horizontal
   scrollbar on narrow screens. */
.lg-skip {
  position: absolute;
  top: -100px;
  left: 1rem;
}
.lg-skip:focus {
  top: 1rem;
  z-index: 1000;
  background: #fff;
  color: #1e1b4b;
  padding: 10px 16px;
  border-radius: 8px;
  font: 600 14px/1 Inter, sans-serif;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.18);
}

/* ------------------------------------------------------------------ hero */

.lg-hero {
  max-width: 720px;
  padding: 8px 0 40px;
}
.lg-hero-title {
  font-family: Poppins, sans-serif;
  font-weight: 700;
  color: #0f172a;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.028em;
  margin: 0 0 14px;
}

/* ----------------------------------------------------------------- cards */

.lg-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.lg-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 26px 24px 12px;
}
.lg-card-title {
  font-family: Poppins, sans-serif;
  font-weight: 600;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: #0f172a;
  margin: 0 0 8px;
}
.lg-card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #616b83;
  margin: 0 0 18px;
  max-width: 46ch;
}

/* ------------------------------------------------------------------ rows */

.lg-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #eef0f4;
}
.lg-row-item + .lg-row-item .lg-row { border-top: 1px solid #eef0f4; }
.lg-row {
  display: flex;
  align-items: center;
  gap: 12px;
  /* 56px minimum: a comfortable touch target on a phone. */
  min-height: 56px;
  padding: 13px 6px 13px 0;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  transition: background-color 0.14s ease, padding-left 0.14s ease;
}
.lg-row:hover {
  background: #f7f8fc;
  padding-left: 8px;
}
.lg-row:focus-visible {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
}
.lg-row-title {
  flex: 1;
  min-width: 0;
  font: 500 14.5px/1.45 Inter, sans-serif;
  color: #1e2338;
}
.lg-row-chevron {
  flex: none;
  color: #b3bccf;
  transition: transform 0.14s ease, color 0.14s ease;
}
.lg-row:hover .lg-row-chevron {
  color: #4f46e5;
  transform: translateX(2px);
}
/* An external entry has no badge, so its icon carries the whole right edge —
   nudge it into the space the badge would have occupied. */
.lg-row-chevron--external { margin-right: 1px; }
.lg-row:hover .lg-row-chevron--external { transform: translate(1px, -1px); }

/* --------------------------------------------------------------- badges */

.lg-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  font: 600 11.5px/1 Inter, sans-serif;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 5px 10px;
  white-space: nowrap;
}
.lg-badge--in-review {
  color: #4338ca;
  background: #eef2ff;
  border: 1px solid #dfe3fb;
}
.lg-badge--coming-soon {
  color: #6b7280;
  background: #f2f3f7;
  border: 1px solid #e4e7ee;
}
.lg-badge--on-request {
  color: #3f4a63;
  background: #f1f3f9;
  border: 1px solid #e2e6f0;
}
.lg-badge--published {
  color: #14603f;
  background: #e7f6ee;
  border: 1px solid #c9ebda;
}

/* ---------------------------------------------------------- procurement */

.lg-procurement {
  margin-top: 44px;
  background: #fafaff;
  border: 1px solid #e7e8f4;
  border-radius: 16px;
  padding: 30px 30px 32px;
}
.lg-procurement-title {
  font-family: Poppins, sans-serif;
  font-weight: 600;
  font-size: 19px;
  color: #0f172a;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}
.lg-procurement-copy {
  font-size: 14.5px;
  line-height: 1.7;
  color: #56607a;
  margin: 0 0 20px;
  max-width: 74ch;
}
.lg-procurement-cta {
  display: inline-flex;
  align-items: center;
  font: 600 14px/1 Inter, sans-serif;
  color: #fff;
  background: #4f46e5;
  border-radius: 9px;
  padding: 12px 20px;
  text-decoration: none;
  transition: background-color 0.16s ease;
}
.lg-procurement-cta:hover { background: #4038c7; }
.lg-procurement-cta:focus-visible { outline: 3px solid rgba(79, 70, 229, 0.35); outline-offset: 2px; }

/* ------------------------------------------------------- document pages */

.lg-doc { max-width: 780px; }
.lg-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 500 14px/1 Inter, sans-serif;
  color: #56607a;
  text-decoration: none;
  margin-bottom: 26px;
}
.lg-back:hover { color: #4f46e5; }
.lg-back:focus-visible { outline: 2px solid #4f46e5; outline-offset: 3px; border-radius: 4px; }

.lg-doc-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}
.lg-doc-title {
  font-family: Poppins, sans-serif;
  font-weight: 700;
  font-size: clamp(25px, 3.4vw, 34px);
  line-height: 1.18;
  letter-spacing: -0.024em;
  color: #0f172a;
  margin: 0;
}
.lg-doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font: 400 13px/1.5 Inter, sans-serif;
  color: #6b7488;
  margin: 0 0 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e9ebf1;
}
.lg-meta-key { color: #98a1b6; }

/* --------------------------------------------- document byline + download */

.lg-doc-byline {
  font: 400 14px/1.5 Inter, sans-serif;
  color: #7b849c;
  margin: 0 0 6px;
}

/* ----------------------------------------------- railed document layout */

.lg-doc-grid { margin-top: 34px; }

.lg-doc--railed { max-width: 1180px; }

@media (min-width: 900px) {
  .lg-doc--railed .lg-doc-grid {
    display: grid;
    grid-template-columns: 262px minmax(0, 1fr);
    gap: 64px;
    align-items: start;
  }
  .lg-doc--railed .lg-doc-rail {
    /* Clears the sticky site nav (62px) plus breathing room. */
    position: sticky;
    top: 88px;
  }
  .lg-doc--railed .lg-toc {
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

.lg-toc {
  background: #fafaff;
  border: 1px solid #e7e8f4;
  border-radius: 12px;
  padding: 18px 22px;
  margin: 0 0 28px;
}
.lg-doc--railed .lg-toc { margin-bottom: 0; }
.lg-toc li a[aria-current="true"] {
  color: #0f172a;
  font-weight: 600;
}
.lg-toc li a[aria-current="true"]::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 0.55em;
  width: 3px;
  height: 1.1em;
  background: #4f46e5;
  border-radius: 2px;
}
.lg-toc li { position: relative; }
.lg-toc-title {
  font: 700 11px/1 Inter, sans-serif;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #8b93a8;
  margin: 0 0 12px;
}
/* Unnumbered: the section titles carry their own numbering, so an ordered
   list rendered it twice ("1. 1. Scope of Application"). */
.lg-toc ul { margin: 0; padding: 0; list-style: none; }
.lg-toc li { font-size: 14px; line-height: 1.9; }
.lg-toc a { color: #4f46e5; text-decoration: none; }
.lg-toc a:hover { text-decoration: underline; }

.lg-doc-note {
  font-size: 16px;
  line-height: 1.75;
  color: #56607a;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 22px 24px;
  margin: 0;
  max-width: 66ch;
}

.lg-doc-body { font-size: 15.5px; line-height: 1.8; color: #2c3348; }
.lg-doc-body h2 {
  font-family: Poppins, sans-serif;
  font-size: 20px;
  color: #0f172a;
  margin: 34px 0 12px;
  scroll-margin-top: 90px;
}
.lg-doc-body h3 { font-size: 16px; color: #0f172a; margin: 24px 0 10px; scroll-margin-top: 90px; }
.lg-doc-body p, .lg-doc-body li { margin: 0 0 12px; }
.lg-doc-body ul, .lg-doc-body ol { padding-left: 1.25rem; }
.lg-doc-body table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.lg-doc-body th, .lg-doc-body td { border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; }

.lg-doc-footer {
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid #e9ebf1;
}
.lg-doc-address { font-style: normal; font-size: 14px; line-height: 1.75; color: #56607a; }
.lg-doc-address a { color: #4f46e5; }
.lg-doc-copyright { font-size: 12.5px; color: #98a1b6; margin: 14px 0 0; }


/* ------------------------------------------------------------ draft state */

.lg-badge--draft {
  color: #92400e;
  background: #fef4e6;
  border: 1px solid #f6e0bd;
}

/* Deliberately the loudest thing on the page above the text: a reader must
   not be able to mistake a circulated draft for an agreement in force. */
.lg-doc-draft-notice {
  font: 500 14px/1.6 Inter, sans-serif;
  color: #7c3f0c;
  background: #fffaf2;
  border: 1px solid #f6e0bd;
  border-left: 3px solid #d97706;
  border-radius: 10px;
  padding: 15px 18px;
  margin: 0 0 30px;
}

/* ------------------------------------------------------- document content */

.lg-doc-lede {
  font-size: 16px;
  line-height: 1.75;
  color: #2c3348;
  margin: 0 0 14px;
}

/* Definition lists (the GTC's Section 2) read as term/definition pairs
   rather than a wall of paragraphs. */
.lg-defs { margin: 0 0 8px; }
.lg-defs dt {
  font-weight: 600;
  color: #0f172a;
  margin-top: 16px;
}
.lg-defs dd {
  margin: 4px 0 0;
  padding-left: 0;
  color: #2c3348;
}

.lg-doc-contact { line-height: 1.9; }

/* Section rhythm: a rule above each heading so 51 sections read as sections. */
.lg-doc-body h2 {
  padding-top: 24px;
  margin-top: 40px;
  border-top: 1px solid #eef0f4;
}
.lg-doc-body > h2:first-child,
.lg-doc-body > *:first-child + h2 { border-top: 0; }
.lg-doc-body > h2:first-child { margin-top: 4px; padding-top: 0; }
/* The measure that keeps legal prose readable, whatever the container. */
.lg-doc-body p, .lg-doc-body li, .lg-doc-body dd { max-width: 74ch; }

/* ----------------------------------------------------------- responsive */

@media (max-width: 860px) {
  .lg-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 899px) {
  /* Stacked above the document, 51 chapters would bury clause 1. Cap it and
     let the list scroll inside itself instead. */
  .lg-doc--railed .lg-toc {
    max-height: 40vh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

@media (max-width: 620px) {
  .lg { padding: 28px 1.15rem 72px; }
  .lg-card { padding: 22px 18px 8px; border-radius: 14px; }
  .lg-row { padding-right: 2px; }
  .lg-row-title { font-size: 14px; }
  .lg-procurement { padding: 24px 20px 26px; }
  .lg-doc-head { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .lg-row, .lg-row-chevron, .lg-procurement-cta { transition: none; }
}

/* ---------------------------------------------------------------- print */

@media print {
  #site-nav, .footer, .lg-back, .lg-skip, .lg-procurement,
  .lg-doc-rail { display: none !important; }
  .lg-doc--railed { max-width: none; }
  .lg-doc-grid { display: block !important; }
  body { background: #fff; }
  .lg { max-width: none; padding: 0; }
  .lg-doc-body { font-size: 11pt; }
  /* The draft notice must survive printing, so it is never hidden here. */
  .lg-doc-draft-notice { border: 1px solid #999; }
  .lg-doc-body h2, .lg-doc-body h3 { break-after: avoid; }
  .lg-doc-body table, .lg-doc-body li { break-inside: avoid; }
  .lg-doc-footer { break-inside: avoid; }
}
