/* ============================================================
   VARIABLE ALIASES
   Maps homepage long-form names → shorthand names used below.
   Delete this block if your homepage already defines them.
   ============================================================ */
:root {
  --deep: var(--deep-blue);
  --lg:   var(--light-grey);
  --soft: var(--soft-blue);
  --r-sm: var(--radius-sm);
  --r-md: var(--radius-md);
  --r-lg: var(--radius-lg);
  --tr:   var(--transition);
  --ff-d: var(--font-display);
  --ff-h: var(--font-heading);
  --ff-b: var(--font-body);
}

/* ============================================================
   UTILITY CLASSES
   Delete if already provided by your homepage stylesheet.
   ============================================================ */
.wrap {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}


/* ============================================================
   TERMS & CONDITIONS — Inner Sections Stylesheet
   Sections: Hero · TOC Sidebar + Content (14 sections)
   ============================================================ */


/* ============================================================
   HERO
   ============================================================ */
#tc-hero {
  background: linear-gradient(135deg, #0a1632 0%, var(--deep) 100%);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}
#tc-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}
#tc-hero::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 90% 50%, rgba(210,37,46,.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 10% 30%, rgba(63,111,198,.2) 0%, transparent 70%);
  pointer-events: none;
}

.tc-hero-inner {
  position: relative;
  z-index: 2;
  animation: tcFadeIn .9s .1s both;
}
@keyframes tcFadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: rgba(255,255,255,.09);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 100px;
  padding: .36rem 1rem;
  margin-bottom: 1.2rem;
}
.tc-eyebrow span {
  font-family: var(--ff-h);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.88);
}

.tc-h1 {
  font-family: var(--ff-d);
  font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: .95;
  color: white;
  margin-bottom: 1rem;
  letter-spacing: -.005em;
}
.tc-h1 em {
  font-style: normal;
  color: var(--red);
}

.tc-sub {
  font-size: .97rem;
  line-height: 1.72;
  color: rgba(255,255,255,.65);
  max-width: 540px;
  margin-bottom: 2rem;
}

.tc-meta {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.tc-meta-item {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--ff-h);
  font-size: .75rem;
  color: rgba(255,255,255,.5);
}
.tc-meta-item span {
  font-weight: 600;
  color: rgba(255,255,255,.8);
}


/* ============================================================
   BODY — Two-column layout
   ============================================================ */
#tc-body {
  background: var(--lg);
  padding: 0 0 6rem;
}

.tc-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
  padding-top: 4rem;
}


/* ============================================================
   SIDEBAR TOC
   ============================================================ */
.tc-toc {
  position: sticky;
  top: 5.5rem;
}

.tc-toc-label {
  font-family: var(--ff-h);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 1rem;
}

.tc-toc-list {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.tc-toc-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .55rem .9rem;
  border-radius: var(--r-sm);
  font-family: var(--ff-b);
  font-size: .83rem;
  color: var(--mid);
  cursor: pointer;
  transition: all var(--tr);
  text-decoration: none;
  border: none;
  background: none;
  text-align: left;
  width: 100%;
}
.tc-toc-item:hover {
  background: white;
  color: var(--deep);
  box-shadow: var(--shadow-sm);
}
.tc-toc-item.active {
  background: white;
  color: var(--red);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.tc-toc-num {
  font-family: var(--ff-h);
  font-size: .65rem;
  font-weight: 700;
  color: var(--red);
  min-width: 20px;
  text-align: right;
  flex-shrink: 0;
  opacity: .7;
  transition: opacity var(--tr);
}
.tc-toc-item.active .tc-toc-num,
.tc-toc-item:hover .tc-toc-num { opacity: 1; }

.tc-toc-divider {
  height: 1px;
  background: var(--border);
  margin: 1rem 0;
}

.tc-contact-box {
  background: var(--deep);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.6rem;
  color: white;
}
.tc-contact-box h5 {
  font-family: var(--ff-h);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: .85rem;
}
.tc-contact-box p {
  font-family: var(--ff-b);
  font-size: .82rem;
  line-height: 1.7;
  color: rgba(255,255,255,.68);
}
.tc-contact-box a {
  color: rgba(255,255,255,.88);
  font-weight: 600;
  text-decoration: none;
  transition: color .2s;
}
.tc-contact-box a:hover { color: white; }


/* ============================================================
   MAIN CONTENT
   ============================================================ */
.tc-content { min-width: 0; }

.tc-last-updated {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(5,150,105,.08);
  border: 1px solid rgba(5,150,105,.25);
  border-radius: 100px;
  padding: .38rem 1rem;
  font-family: var(--ff-h);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #065f46;
  margin-bottom: 2.5rem;
}

/* Section cards */
.tc-section {
  background: white;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 2.5rem 2.8rem;
  margin-bottom: 1.5rem;
  scroll-margin-top: 7rem;
  transition: box-shadow var(--tr);
}
.tc-section:hover { box-shadow: var(--shadow-md); }

/* Section header */
.tc-section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.6rem;
  padding-bottom: 1.2rem;
  border-bottom: 2px solid var(--lg);
}
.tc-section-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(15,46,99,.08);
  border: 1.5px solid rgba(15,46,99,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-h);
  font-size: .72rem;
  font-weight: 900;
  color: var(--deep);
  flex-shrink: 0;
}
.tc-section-title {
  font-family: var(--ff-d);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--deep);
  line-height: 1.15;
}

/* Body text */
.tc-text {
  font-family: var(--ff-b);
  font-size: .93rem;
  color: var(--mid);
  line-height: 1.85;
  margin-bottom: 1rem;
}
.tc-text:last-child { margin-bottom: 0; }
.tc-text strong { color: var(--dark); font-weight: 700; }

/* Inline link */
.tc-inline-link {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(21,73,155,.3);
  transition: color .2s, border-color .2s;
}
.tc-inline-link:hover {
  color: var(--deep);
  border-color: var(--deep);
}

/* Bullet list */
.tc-list {
  list-style: none;
  padding: 0; margin: .8rem 0 1rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.tc-list li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  font-family: var(--ff-b);
  font-size: .91rem;
  color: var(--mid);
  line-height: 1.7;
}
.tc-list li::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--deep);
  flex-shrink: 0;
  margin-top: .52rem;
}
.tc-list li strong { color: var(--dark); font-weight: 700; }

/* Highlight / callout box */
.tc-highlight {
  background: rgba(15,46,99,.05);
  border: 1px solid rgba(15,46,99,.12);
  border-left: 3px solid var(--deep);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 1.2rem 1.5rem;
  margin: 1.3rem 0;
  font-family: var(--ff-b);
  font-size: .9rem;
  color: var(--mid);
  line-height: 1.75;
}
.tc-highlight strong { color: var(--deep); font-weight: 700; }
.tc-highlight a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}
.tc-highlight a:hover { text-decoration: underline; }

/* Contact highlight variant */
.tc-highlight--contact {
  background: rgba(15,46,99,.04);
  border-color: rgba(15,46,99,.2);
  border-left-color: var(--red);
}

/* Table */
.tc-table-wrap {
  overflow-x: auto;
  margin: 1.2rem 0;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}
.tc-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--ff-b);
  font-size: .86rem;
  min-width: 420px;
}
.tc-table thead {
  background: var(--deep);
  color: white;
}
.tc-table thead th {
  padding: .85rem 1.2rem;
  text-align: left;
  font-family: var(--ff-h);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tc-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--tr);
}
.tc-table tbody tr:last-child { border-bottom: none; }
.tc-table tbody tr:hover { background: var(--lg); }
.tc-table tbody td {
  padding: .9rem 1.2rem;
  vertical-align: top;
  color: var(--mid);
  line-height: 1.6;
}
.tc-table tbody td:first-child {
  font-family: var(--ff-h);
  font-weight: 700;
  color: var(--dark);
  white-space: nowrap;
  width: 140px;
}


/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* ≤ 1100px */
@media (max-width: 1100px) {
  .tc-layout { grid-template-columns: 240px 1fr; gap: 2.5rem; }
}

/* ≤ 900px */
@media (max-width: 900px) {
  .tc-layout       { grid-template-columns: 1fr; gap: 0; }
  .tc-toc          { position: static; margin-bottom: 2rem; }
  .tc-toc-list     { flex-direction: row; flex-wrap: wrap; gap: .4rem; }
  .tc-toc-item     { padding: .4rem .8rem; font-size: .75rem; }
  .tc-toc-num      { display: none; }
  .tc-contact-box  { display: none; }
  .tc-toc-divider  { display: none; }
}

/* ≤ 768px */
@media (max-width: 768px) {
  #tc-hero         { padding: 4rem 0 3.5rem; }
  .tc-h1           { font-size: 2.5rem; line-height: 1; }
  .tc-meta         { gap: 1rem; }
  .tc-section      { padding: 1.8rem 1.6rem; }
  .tc-section-title{ font-size: 1.1rem; }
}

/* ≤ 480px */
@media (max-width: 480px) {
  #tc-hero         { padding: 3.5rem 0 3rem; }
  #tc-body         { padding-bottom: 4rem; }
  .tc-layout       { padding-top: 2.5rem; }
  .tc-section      { padding: 1.4rem 1.2rem; margin-bottom: 1rem; }
  .tc-toc-item     { font-size: .7rem; padding: .35rem .65rem; }
  .tc-meta         { flex-direction: column; gap: .6rem; align-items: flex-start; }
  .tc-table-wrap   { margin: 1rem -1.2rem; border-radius: 0; }
}
