/**
 * @file
 * Terms and Conditions — page-specific styles for legal document page.
 *
 * Uses a consistent tc-* prefix for all page-specific selectors.
 * Includes the two-column shell (sidebar + article), TOC card, CTA card,
 * clause grid, signature block, defined terms, and alpha list.
 *
 * Design tokens, .al-btn, .container come from global general.css.
 * Hero mixin imported from components/.
 *
 * Mirrors the static design reference
 * design-review/terms_and_condition/terms_and_condition.html.
 */
/**
 * @file
 * Shared LESS variables — imported by general.less and component files.
 *
 * Breakpoint variables used in @media queries across the theme.
 */
/* =========================================================================
   Design tokens supplement
   ========================================================================= */
:root {
  --border-2: var(--al-gray-100);
  --header-h: 72px;
}
/* =========================================================================
   HERO — reuse content-hero mixin, hide Drupal default title
   ========================================================================= */
.node--type-terms-and-condition .block-page-title-block {
  display: none;
}
.tc-hero {
  background: var(--al-navy);
  color: #fff;
  position: relative;
  overflow: clip;
  overflow-clip-margin: 20px;
  margin-top: 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}
.tc-hero::after {
  content: "";
  position: absolute;
  right: -150px;
  top: -110px;
  width: 480px;
  height: 270px;
  border: 2px solid rgba(224, 144, 48, 0.3);
  border-radius: 50%;
  transform: rotate(-18deg);
  pointer-events: none;
}
.tc-hero::before {
  content: "";
  position: absolute;
  left: -120px;
  bottom: -160px;
  width: 340px;
  height: 340px;
  border: 1.5px solid rgba(224, 144, 48, 0.16);
  border-radius: 50%;
  pointer-events: none;
}
.tc-hero .container {
  position: relative;
}
.tc-hero__figure {
  position: absolute;
  right: 0;
  bottom: -20px;
  width: 380px;
  z-index: 1;
  pointer-events: none;
}
.tc-hero__figure svg {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 1080px) {
  .tc-hero__figure {
    display: none;
  }
}
.tc-hero__inner {
  position: relative;
  z-index: 2;
  padding: 56px 0 60px;
  max-width: 880px;
}
.tc-hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 80px 0 0;
  text-wrap: balance;
}
.tc-hero__title .accent {
  color: var(--al-orange);
}
.tc-hero__standfirst {
  font-family: var(--font-sans);
  font-size: 19px;
  line-height: 1.6;
  color: #cfe0ec;
  max-width: 62ch;
  margin: 20px 0 0;
  text-wrap: pretty;
}
.tc-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.tc-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.12s;
}
.tc-hero .breadcrumb a:hover {
  color: #fff;
}
.tc-hero .breadcrumb__sep {
  color: rgba(255, 255, 255, 0.3);
}
.tc-hero .breadcrumb__current {
  color: var(--al-orange-300);
  font-weight: 600;
}
.tc-hero__cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
  margin-bottom: 60px;
}
.tc-hero__ghost {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  text-decoration: none;
  padding: 15px 22px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.34);
  transition: background 0.14s, border-color 0.14s;
}
.tc-hero__ghost svg {
  width: 17px;
  height: 17px;
  transition: transform 0.14s;
}
.tc-hero__ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}
.tc-hero__ghost:hover svg {
  transform: translateX(3px);
}
/* Last-updated line */
.tc-updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: #bcd6e7;
  margin: 18px 0 0;
}
.tc-updated svg {
  width: 17px;
  height: 17px;
  color: var(--al-orange);
  flex-shrink: 0;
}
.tc-updated strong {
  color: #fff;
  font-weight: 700;
}
/* =========================================================================
   BODY SHELL — two-column grid (sidebar left)
   ========================================================================= */
.tc-body {
  background: var(--bg-page);
  padding: 54px 0 6px;
}
.tc-grid-main {
  display: grid;
  grid-template-columns: 296px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.tc-article {
  min-width: 0;
}
/* SIDEBAR — TOC card + CTA card */
.tc-side {
  position: sticky;
  top: calc(var(--header-h) + 22px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.tc-toc-card {
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 20px;
  box-shadow: var(--shadow-xs);
}
.tc-toc-card__h {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin: 0 0 14px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--border-1);
}
.tc-toc {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.tc-toc a {
  display: block;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.4;
  color: var(--fg-2);
  text-decoration: none;
  padding: 8px 12px;
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.tc-toc a:hover {
  background: var(--bg-alt);
  color: var(--al-navy);
}
.tc-toc a.is-active {
  color: var(--al-orange-700);
  border-left-color: var(--al-orange);
  background: #fff6ec;
  font-weight: 600;
}
.tc-cta-card {
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  background: var(--al-navy);
  color: #fff;
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.tc-cta-card::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -60px;
  width: 170px;
  height: 110px;
  border: 2px solid rgba(224, 144, 48, 0.34);
  border-radius: 50%;
  transform: rotate(-16deg);
  pointer-events: none;
}
.tc-cta-card h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  margin: 0 0 8px;
  position: relative;
}
.tc-cta-card p {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  color: #bcd6e7;
  margin: 0 0 16px;
  position: relative;
}
.tc-cta-card .al-btn {
  width: 100%;
  justify-content: center;
  position: relative;
}
/* =========================================================================
   ARTICLE TYPOGRAPHY
   ========================================================================= */
.tc-article .tc-lead {
  font-family: var(--font-sans);
  font-size: 23px;
  line-height: 1.6;
  color: var(--fg-1);
  font-weight: 500;
  margin: 0 0 32px;
  max-width: 780px;
}
.tc-article p {
  font-family: var(--font-sans);
  font-size: 19.5px;
  line-height: 1.72;
  color: var(--fg-2);
  margin: 0 0 14px;
  max-width: 780px;
}
.tc-article h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.25;
  color: var(--al-navy);
  margin: 54px 0 18px;
  padding-top: 28px;
  border-top: 1px solid var(--border-1);
  scroll-margin-top: 30px;
  max-width: none;
}
.tc-article h2#s1 {
  border-top: none;
  padding-top: 0;
  margin-top: 6px;
}
.tc-article strong {
  color: var(--al-navy);
  font-weight: 700;
}
.tc-article a {
  color: var(--al-orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tc-article a:hover {
  color: var(--al-orange-700);
}
/* H3 within article */
.tc-h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--al-navy);
  margin: 30px 0 12px;
  scroll-margin-top: 30px;
}
/* Meta line */
.tc-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 24px;
}
.tc-meta__badge {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--al-orange-700);
  background: #fff6ec;
  border: 1px solid rgba(224, 144, 48, 0.4);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}
.tc-meta__date {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--fg-3);
}
/* =========================================================================
   CLAUSE GRID — numbered clause with left column
   ========================================================================= */
.tc-clause {
  display: grid;
  grid-template-columns: 54px 1fr;
  -moz-column-gap: 18px;
       column-gap: 18px;
  margin: 0 0 16px;
  max-width: 780px;
  align-items: baseline;
}
.tc-clause__no {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--al-orange-700);
  font-variant-numeric: tabular-nums;
  line-height: 1.72;
}
.tc-clause__body p {
  margin: 0 0 11px;
  font-size: 19.5px;
}
.tc-clause__body p:last-child {
  margin-bottom: 0;
}
.tc-clause__body .tc-sub {
  padding-left: 22px;
}
.tc-clause__body .tc-sub2 {
  padding-left: 46px;
}
/* Defined terms */
.tc-def {
  padding-left: 18px;
  border-left: 2px solid var(--al-orange);
  max-width: 780px;
}
.tc-article .tc-def {
  color: var(--fg-1);
}
/* Alphabetical counter list */
ol.tc-alpha {
  max-width: 780px;
  margin: 8px 0 18px;
  padding: 0;
  list-style: none;
  counter-reset: alpha;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
ol.tc-alpha li {
  position: relative;
  padding-left: 44px;
  font-family: var(--font-sans);
  font-size: 19.5px;
  line-height: 1.68;
  color: var(--fg-2);
}
ol.tc-alpha li::before {
  counter-increment: alpha;
  content: "(" counter(alpha, lower-alpha) ")";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--al-orange-700);
}
/* =========================================================================
   SIGNATURE BLOCK
   ========================================================================= */
.tc-sign {
  max-width: 780px;
  margin: 56px 0 8px;
  padding: 30px 32px 34px;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}
.tc-sign::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -70px;
  width: 190px;
  height: 120px;
  border: 2px solid rgba(224, 144, 48, 0.28);
  border-radius: 50%;
  transform: rotate(-16deg);
  pointer-events: none;
}
.tc-sign__intro {
  margin: 0 0 26px !important;
  font-weight: 500;
  color: var(--fg-1) !important;
  font-size: 16.5px;
  position: relative;
}
.tc-sign__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  position: relative;
}
.tc-sign__party {
  display: flex;
  flex-direction: column;
}
.tc-sign__role {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: var(--al-navy);
}
.tc-sign__org {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--fg-3);
  margin: 5px 0 8px;
}
.tc-sign__line {
  margin-top: 26px;
  border-top: 1px solid var(--al-navy-100);
  padding-top: 7px;
}
.tc-sign__line span {
  font-family: var(--font-sans);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-3);
}
/* =========================================================================
   INFO CARD
   ========================================================================= */
.tc-card {
  max-width: 780px;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  padding: 24px 26px;
  margin: 14px 0 18px;
}
/* =========================================================================
   CUSTOM LIST — orange left-accent bullets
   ========================================================================= */
.tc-list {
  list-style: none;
  margin: 8px 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  max-width: 780px;
}
.tc-list > li {
  position: relative;
  padding-left: 34px;
  font-family: var(--font-sans);
  font-size: 19.5px;
  line-height: 1.6;
  color: var(--fg-2);
}
.tc-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 22px;
  height: 22px;
  background: rgba(224, 144, 48, 0.14);
  border-radius: 6px;
}
.tc-list > li::after {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 8px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--al-orange-700);
  line-height: 1;
}
/* =========================================================================
   CLOSING LINE
   ========================================================================= */
.tc-end {
  max-width: 780px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--border-1);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--al-gray-400);
}
/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 980px) {
  .tc-grid-main {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .tc-side {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .tc-cta-card {
    flex: 1;
    min-width: 260px;
  }
}
@media (max-width: 560px) {
  .tc-clause {
    grid-template-columns: 1fr;
    row-gap: 2px;
  }
  .tc-clause__no {
    line-height: 1.2;
  }
  .tc-sign__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
@media (max-width: 680px) {
  .tc-card {
    padding: 20px;
  }
}
/* =========================================================================
   DARK MODE
   ========================================================================= */
body.dark .tc-body {
  background: var(--al-navy);
}
body.dark .tc-article p,
body.dark .tc-clause__body p,
body.dark ol.tc-alpha li {
  color: rgba(255, 255, 255, 0.8);
}
body.dark .tc-article h2 {
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}
body.dark .tc-article strong {
  color: #fff;
}
body.dark .tc-article a {
  color: var(--al-orange-300);
}
body.dark .tc-article a:hover {
  color: var(--al-orange);
}
body.dark .tc-h3 {
  color: #fff;
}
body.dark .tc-clause__no,
body.dark ol.tc-alpha li::before {
  color: var(--al-orange-300);
}
body.dark .tc-article .tc-def {
  color: rgba(255, 255, 255, 0.8);
}
body.dark .tc-toc-card {
  background: var(--al-navy-800);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}
body.dark .tc-toc-card__h {
  color: rgba(255, 255, 255, 0.55);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}
body.dark .tc-toc a {
  color: rgba(255, 255, 255, 0.72);
}
body.dark .tc-toc a:hover {
  background: var(--al-navy-700);
  color: #fff;
}
body.dark .tc-toc a.is-active {
  color: var(--al-orange-300);
  background: rgba(224, 144, 48, 0.14);
  border-left-color: var(--al-orange);
}
body.dark .tc-cta-card {
  background: var(--al-navy-800);
  border-color: rgba(255, 255, 255, 0.1);
}
body.dark .tc-card {
  background: var(--al-navy-800);
  border-color: rgba(255, 255, 255, 0.1);
}
body.dark .tc-list > li {
  color: rgba(255, 255, 255, 0.78);
}
body.dark .tc-list > li::before {
  background: rgba(224, 144, 48, 0.18);
}
body.dark .tc-list > li::after {
  color: var(--al-orange-300);
}
body.dark .tc-end {
  color: rgba(255, 255, 255, 0.45);
  border-top-color: rgba(255, 255, 255, 0.1);
}
body.dark .tc-sign {
  background: var(--al-navy-800);
  border-color: rgba(255, 255, 255, 0.1);
}
body.dark .tc-sign__role {
  color: #fff;
}
body.dark .tc-sign__intro {
  color: #fff !important;
}
body.dark .tc-sign__line {
  border-color: rgba(255, 255, 255, 0.2);
}
body.dark .tc-meta__badge {
  background: rgba(224, 144, 48, 0.14);
  color: var(--al-orange-300);
  border-color: rgba(224, 144, 48, 0.3);
}
body.dark .tc-meta__date {
  color: rgba(255, 255, 255, 0.55);
}
