/* Legal page (blocks legal-tabs + legal-doc, 2026-11-20). Prefix: ltc-legal.
   One document is visible at a time:
   - with the tab script: html.ltc-legal-js + .is-active decide;
   - without it: the first document, or the one the URL's #anchor targets. */

.ltc-legal,
.ltc-legal-doc {
  --ltc-legal-ink: #1f2328;
  --ltc-legal-muted: #57606a;
  --ltc-legal-line: #d0d7de;
  --ltc-legal-accent: #0050bd;
  background: #fff;
  color: var(--ltc-legal-ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.ltc-legal__inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* heading + intro */
.ltc-legal { padding-top: 56px; }
.ltc-legal__title {
  margin: 0 0 24px;
  font-size: 40px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ltc-legal-ink);
}
.ltc-legal__intro {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 32px;
  padding: 16px 18px;
  border-radius: 8px;
  background: #f6f8fa;
  border: 1px solid var(--ltc-legal-line);
}
.ltc-legal__icon { font-size: 20px; line-height: 1.5; }
.ltc-legal__text p { margin: 0; font-size: 16px; line-height: 1.6; }

/* tab bar */
.ltc-legal__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--ltc-legal-line);
}
.ltc-legal-tab {
  flex: 0 0 auto;
  padding: 12px 14px;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ltc-legal-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.ltc-legal-tab:hover { color: var(--ltc-legal-ink); }
.ltc-legal-tab[aria-selected="true"] {
  color: var(--ltc-legal-accent);
  border-bottom-color: var(--ltc-legal-accent);
}
.ltc-legal-tab:focus-visible { outline: 2px solid var(--ltc-legal-accent); outline-offset: -2px; border-radius: 4px; }

/* documents: which one shows */
.ltc-legal-doc { display: none; padding: 32px 0 72px; scroll-margin-top: 80px; }
.ltc-legal + .ltc-legal-doc { display: block; }
.ltc-legal-doc:target { display: block; }
body:has(.ltc-legal-doc:target) .ltc-legal + .ltc-legal-doc:not(:target) { display: none; }
html.ltc-legal-js .ltc-legal-doc { display: none; }
html.ltc-legal-js .ltc-legal-doc.is-active { display: block; }
.ltc-legal-doc:focus { outline: none; }
/* switching documents must not move the page (browser scroll anchoring) */
.ltc-legal, .ltc-legal-doc { overflow-anchor: none; }

/* document typography (sanitized rich text) */
.ltc-legal-doc__title {
  margin: 0 0 24px;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--ltc-legal-ink);
}
.ltc-legal-doc__body { font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; }
.ltc-legal-doc__body p { margin: 0 0 14px; }
.ltc-legal-doc__body h2 { margin: 28px 0 14px; font-size: 24px; line-height: 1.3; font-weight: 700; }
.ltc-legal-doc__body h3 { margin: 24px 0 12px; font-size: 20px; line-height: 1.35; font-weight: 700; }
.ltc-legal-doc__body h4 { margin: 20px 0 10px; font-size: 18px; line-height: 1.4; font-weight: 700; }
.ltc-legal-doc__body .ltc-center { text-align: center; }
.ltc-legal-doc__body strong { font-weight: 700; }
.ltc-legal-doc__body u { text-decoration: underline; text-underline-offset: 2px; }
.ltc-legal-doc__body ul,
.ltc-legal-doc__body ol { margin: 0 0 14px; padding-left: 28px; }
.ltc-legal-doc__body ul { list-style: disc; }
.ltc-legal-doc__body ul ul { list-style: circle; margin-top: 6px; }
.ltc-legal-doc__body ol { list-style: decimal; }
.ltc-legal-doc__body li { margin: 0 0 8px; }
.ltc-legal-doc__body a { color: var(--ltc-legal-accent); text-decoration: underline; }

/* tables (the schedules) */
.ltc-legal-doc__body table {
  width: 100%;
  margin: 8px 0 24px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
  display: block;
  overflow-x: auto;
}
.ltc-legal-doc__body th,
.ltc-legal-doc__body td {
  padding: 10px 12px;
  border: 1px solid var(--ltc-legal-line);
  vertical-align: top;
  text-align: left;
}
.ltc-legal-doc__body th { background: #000; color: #fff; font-weight: 700; }

@media (max-width: 640px) {
  /* phones: one scrollable row instead of a stack of wrapped tabs */
  .ltc-legal__tabs { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .ltc-legal__tabs::-webkit-scrollbar { display: none; }
  .ltc-legal { padding-top: 32px; }
  .ltc-legal__title { font-size: 30px; }
  .ltc-legal-doc__title { font-size: 22px; }
}
