/* ==========================================================================
   ACDC Cranes Ltd | Terms and Conditions page
   Author: Rob Richardson
   Copyright 2026 Digital Design NE Ltd. All rights reserved.
   ========================================================================== */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tc { max-width: 1100px; }
.tc [id] { scroll-margin-top: calc(var(--header-h) - var(--topbar-h) + 24px); }

/* Contents */
.tc-contents { padding: 32px 34px; border-radius: 14px; background: var(--light); }
.tc-contents h2 { font-size: 26px; line-height: 1.2; letter-spacing: -.5px; font-weight: 600; color: var(--acdc-indigo); margin-bottom: 18px; }
.tc-contents ol { list-style: none; margin: 0; padding: 0; columns: 3; column-gap: 30px; }
.tc-contents li { break-inside: avoid; }
.tc-contents a { display: flex; align-items: baseline; gap: 12px; padding: 7px 0; font-size: 15px; line-height: 1.4; font-weight: 500; color: var(--text); transition: color .25s; }
.tc-contents a span { flex: none; min-width: 22px; font-weight: 600; color: var(--acdc-orange-2); }
.tc-contents a:hover { color: var(--acdc-indigo); }

/* Clauses */
.tc-clause { padding-top: 46px; margin-top: 46px; border-top: 1px solid #e6e4ee; }
.tc-clause:first-of-type { border-top: 0; margin-top: 30px; padding-top: 30px; }
.tc-clause > h2 {
  display: flex; align-items: center; gap: 16px; margin-bottom: 22px;
  font-size: 32px; line-height: 1.15; letter-spacing: -.8px; font-weight: 600; color: var(--acdc-indigo);
}
.tc-clause > h2 .tc-badge {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--acdc-indigo); color: var(--white); font-size: 17px; letter-spacing: 0;
}
.tc-clause p, .tc-item { color: var(--muted); font-size: 16px; line-height: 1.7; }
.tc-clause > p { margin: 0 0 14px; }
.tc-clause strong { color: var(--text); font-weight: 600; }
.tc-clause a { color: var(--acdc-blue); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.tc-clause a:hover { color: var(--acdc-orange-2); }

.tc-item { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 0 10px; margin-top: 12px; }
.tc-item > .tc-n { font-weight: 600; color: var(--acdc-indigo); font-variant-numeric: tabular-nums; }
.tc-item--l3 { margin-left: 72px; grid-template-columns: 70px minmax(0, 1fr); }
.tc-item--l4 { margin-left: 152px; grid-template-columns: 38px minmax(0, 1fr); margin-top: 8px; }
.tc-item--head > div { font-weight: 600; color: var(--text); }
.tc-cont { margin-left: 72px; margin-top: 8px; color: var(--muted); }

/* Definitions */
.tc-defs { margin: 14px 0 6px 72px; border: 1px solid #e3e1ea; border-radius: var(--radius); overflow: hidden; }
.tc-defs div { display: grid; grid-template-columns: minmax(170px, 230px) minmax(0, 1fr); gap: 0 24px; padding: 13px 20px; border-top: 1px solid #ebe9f1; }
.tc-defs div:first-child { border-top: 0; }
.tc-defs div:nth-child(even) { background: #f7f7fb; }
.tc-defs dt { font-weight: 600; color: var(--acdc-indigo); font-size: 15px; line-height: 1.6; }
.tc-defs dd { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* Cancellation table */
.tc .table-wrap { margin: 14px 0 6px 72px; max-width: 640px; }
.tc .data-table td:first-child { white-space: normal; }

.tc-top { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 14px; font-weight: 600; color: var(--acdc-orange-2) !important; text-decoration: none !important; }
.tc-top::before { content: ""; width: 7px; height: 7px; border-top: 2px solid currentColor; border-left: 2px solid currentColor; transform: rotate(45deg) translateY(2px); }
.tc-top:hover { color: var(--acdc-indigo) !important; }
.tc-version { margin-top: 46px; padding-top: 20px; border-top: 1px solid #e6e4ee; font-size: 13px; color: var(--muted); }

@media (max-width: 1199px) {
  .tc-contents ol { columns: 2; }
}
@media (max-width: 809px) {
  .tc-contents { padding: 24px 20px; }
  .tc-contents ol { columns: 1; }
  .tc-clause > h2 { font-size: 24px; gap: 12px; }
  .tc-clause > h2 .tc-badge { width: 36px; height: 36px; font-size: 15px; }
  .tc-item { grid-template-columns: 46px minmax(0, 1fr); }
  .tc-item--l3 { margin-left: 0; grid-template-columns: 58px minmax(0, 1fr); padding-left: 14px; }
  .tc-item--l4 { margin-left: 28px; grid-template-columns: 30px minmax(0, 1fr); }
  .tc-cont, .tc-defs, .tc .table-wrap { margin-left: 0; }
  .tc-defs div { grid-template-columns: 1fr; gap: 4px; padding: 12px 16px; }
}

@media print {
  .site-header, .drawer, .action-bar, .site-footer, .tc-top, .tc-contents { display: none !important; }
  main { padding-top: 0; }
  .hero--page .media { height: auto; background: none !important; }
  .page-hero__content { position: static; color: #000; padding: 0 0 20px; }
  .crumbs { display: none; }
  .tc-clause { break-inside: auto; }
  .tc-item, .tc-defs div { break-inside: avoid; }
}
