/* ==========================================================================
   Terms and conditions — "bailrbet-terms-and-conditions" (1440) /
   "bailrbet-terms-and-conditions-mobile" (390)
   ========================================================================== */

/* Intro ------------------------------------------------------------------ */
.tc-intro { background: var(--navy-3); border-bottom: 1px solid var(--line); }
.tc-hero { display: flex; flex-direction: column; gap: 20px; padding: 32px 16px 31px; }
.tc-badge { display: flex; align-items: center; gap: 8px; font-size: 11px; line-height: 14px; }
.tc-badge__a { font-weight: 800; color: var(--blue); }
.tc-badge__sep { color: var(--ink-4); }
.tc-badge__b { font-weight: 800; color: var(--yellow); }
.tc-title { font-family: var(--font-display); font-weight: 900; font-size: 36px; line-height: 37.8px; color: var(--white); }
.tc-lead { font-size: 14px; line-height: 21px; color: var(--ink-4); }
.tc-operator { font-size: 12px; line-height: 16.8px; color: var(--ink-4); }
.tc-directory { display: flex; flex-direction: column; gap: 16px; padding: 19px; background: var(--navy-2); border: 1px solid var(--line); }
.tc-directory__title { font-family: var(--font-display); font-weight: 800; font-size: 18px; line-height: 22px; color: var(--yellow); }
.tc-directory__list { display: flex; flex-direction: column; gap: 10px; max-height: 240px; overflow-y: auto; scrollbar-width: thin; }
.tc-directory__link { display: flex; align-items: center; gap: 8px; min-height: 17px; transition: color var(--t); }
.tc-directory__num { flex: 0 0 24px; font-family: var(--font-display); font-weight: 800; font-size: 14px; line-height: 17px; color: var(--blue); }
.tc-directory__label { font-size: 12px; line-height: 16px; color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color var(--t); }
.tc-directory__link:hover .tc-directory__label { color: var(--white); }
@media (min-width: 1024px) {
  .tc-intro { border-top: 1px solid var(--line); padding: 79px 0; }
  .tc-intro__inner { width: min(var(--content), 100% - 2 * var(--gutter)); margin-inline: auto; display: flex; align-items: flex-start; gap: 64px; }
  .tc-hero { flex: 0 0 720px; gap: 24px; padding: 0; }
  .tc-title { font-size: 64px; line-height: 67.2px; }
  .tc-lead { font-size: 16px; line-height: 25px; }
  .tc-operator { font-size: 13px; line-height: 20px; }
  .tc-directory { flex: 1 1 0; min-width: 0; padding: 23px; border-radius: 6px; }
  .tc-directory__list { gap: 6px; }
  .tc-directory__link { min-height: 16px; }
  .tc-directory__num { flex: 0 0 auto; font-weight: 700; font-size: 13px; line-height: 16px; }
}

/* Workspace ------------------------------------------------------------- */
.tc-work { background: var(--cream); color: var(--legal-dark); }
.tc-work__inner { display: flex; flex-direction: column; }
.tc-outline { display: none; }
.tc-doc { display: flex; flex-direction: column; }
.tc-utility { order: -1; }
.tc-utility__sticky { display: flex; flex-direction: column; gap: 16px; padding: 15px; background: var(--navy-2); border: 1px solid var(--line); color: var(--ink-4); }
.tc-box { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.tc-box--limit { padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.tc-box__title { font-family: var(--font-display); font-weight: 800; font-size: 14px; line-height: 17px; }
.tc-box--limit .tc-box__title { color: var(--yellow); }
.tc-box--support .tc-box__title { color: var(--blue); }
.tc-box__text { font-size: 12px; line-height: 16px; }
.tc-box__cta { font-size: 12px; line-height: 16px; font-weight: 800; color: var(--blue); transition: color var(--t); }
.tc-box__cta:hover { text-decoration: underline; }
.tc-box__link { font-size: 12px; line-height: 16px; font-weight: 800; color: var(--yellow); }
.tc-box__link:hover { text-decoration: underline; }
@media (min-width: 1024px) {
  .tc-work__inner { width: min(var(--content), 100% - 2 * var(--gutter)); margin-inline: auto; flex-direction: row; align-items: flex-start; gap: 40px; }
  .tc-outline { display: block; flex: 0 0 240px; min-width: 0; padding: 48px 0; }
  .tc-outline__sticky { display: flex; flex-direction: column; gap: 20px; }
  .tc-outline__title { font-family: var(--font-display); font-weight: 800; font-size: 14px; line-height: 17px; color: var(--navy); }
  .tc-outline__list { display: flex; flex-direction: column; gap: 4px; }
  .tc-outline__link { display: flex; align-items: center; gap: 12px; height: 32px; padding: 0 12px; border-radius: 4px; }
  .tc-outline__num { flex: none; font-family: var(--font-display); font-weight: 700; font-size: 12px; line-height: 14px; color: var(--blue); }
  .tc-outline__label { flex: 1 1 auto; min-width: 0; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tc-outline__link:hover { background: rgba(5, 8, 33, .06); }
  .tc-outline__link.is-active { background: var(--navy); }
  .tc-outline__link.is-active .tc-outline__num { color: var(--yellow); }
  .tc-outline__link.is-active .tc-outline__label { color: var(--white); font-weight: 700; }
  .tc-doc { flex: 0 0 760px; border-left: 1px solid var(--line-light); border-right: 1px solid var(--line-light); background: var(--white); }
  .tc-utility { order: 0; flex: 1 1 auto; min-width: 0; padding: 48px 0; }
  .tc-utility__sticky { gap: 24px; padding: 0; background: transparent; border: 0; }
  .tc-box { gap: 12px; padding: 15px; border-radius: 6px; }
  .tc-box--limit { background: var(--navy-2); border: 1px solid var(--line); color: var(--ink-4); }
  .tc-box--support { background: var(--white); border: 1px solid var(--line-light); color: var(--ink-2); }
  .tc-box__cta { display: flex; align-items: center; justify-content: center; align-self: stretch; height: 30px; border-radius: 4px; background: var(--yellow); color: var(--navy); font-size: 11px; line-height: 14px; transition: background-color var(--t), box-shadow var(--t); }
  .tc-box__cta:hover { text-decoration: none; background: #ffc733; box-shadow: 0 6px 16px rgba(255, 184, 0, .25); }
  .tc-box__link { font-weight: 700; color: var(--blue); }
}

/* Clause blocks --------------------------------------------------------- */
.tc-clause { display: flex; flex-direction: column; gap: 16px; padding: 28px 16px 27px; background: var(--cream); border-bottom: 1px solid var(--line-light); color: var(--legal-dark); }
.tc-clause--alt { padding-bottom: 28px; background: var(--white); border-bottom: 0; color: var(--ink-2); }
.tc-clause__header { display: flex; align-items: center; gap: 12px; padding-bottom: 8px; font-family: var(--font-display); }
.tc-clause__num { font-weight: 900; font-size: 32px; line-height: 38px; color: var(--blue); }
.tc-clause__title { flex: 1 1 auto; min-width: 0; font-weight: 800; font-size: 18px; line-height: 22px; color: var(--navy); }
.tc-clause__body { display: flex; flex-direction: column; gap: 12px; }
.tc-clause__item { font-size: 13px; line-height: 20px; }
.tc-clause__item strong { color: var(--navy); }
@media (min-width: 1024px) {
  .tc-clause, .tc-clause--alt { gap: 28px; padding: 56px 48px 55px; background: var(--white); border-bottom: 1px solid var(--line-light); color: var(--ink-2); }
  .tc-clause--alt { background: var(--cream); }
  .tc-clause__header { gap: 20px; padding-bottom: 0; }
  .tc-clause__num { font-size: 48px; line-height: 57px; }
  .tc-clause__title { font-size: 24px; line-height: 29px; }
  .tc-clause__body { gap: 16px; }
  .tc-clause__item { font-size: 14px; line-height: 22px; }
}

/* Narrow desktop (1024–1279px): the 240 / 760 / utility columns only fit at 1280+.
   The document flexes and the utility boxes move under it side by side. */
@media (min-width: 1024px) and (max-width: 1279px) {
  .tc-intro__inner { gap: 40px; }
  .tc-hero { flex: 1 1 0; min-width: 0; }
  .tc-directory { flex: 0 0 340px; }
  .tc-work__inner { flex-wrap: wrap; gap: 32px; }
  .tc-outline { flex-basis: 220px; }
  .tc-doc { flex: 1 1 0; min-width: 0; }
  .tc-utility { flex: 1 1 100%; order: 3; padding: 0 0 48px; }
  .tc-utility__sticky { position: static; flex-direction: row; align-items: stretch; }
  .tc-utility__sticky > * { flex: 1 1 0; min-width: 0; }
}
