/* ============================================================
   JOBSNIPS — Terms & Conditions Page
   ============================================================ */

/* ── Override nav logo to white on dark hero ── */
#nav .nav-logo-icon .logo-w-stroke { stroke: #ffffff; }
#nav .nav-logo-icon .logo-w-fill   { fill:   #ffffff; }


/* ══════════════════════════════════════
   SCROLL PROGRESS BAR
══════════════════════════════════════ */
#tc-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), #60c8f0);
  z-index: 10000;
  box-shadow: 0 0 10px rgba(41,171,226,0.7);
  transition: width 0.08s linear;
  pointer-events: none;
}


/* ══════════════════════════════════════
   HERO (dark)
══════════════════════════════════════ */
#tc-hero {
  position: relative;
  background: var(--bg);
  padding: 160px 0 110px;
  overflow: hidden;
}

/* Grid overlay */
.tc-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(41,171,226,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41,171,226,0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

/* Canvas particles */
#tc-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.4;
}

/* Horizontal scan line sweep */
.tc-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1.5px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(41,171,226,0.15) 20%,
    rgba(41,171,226,0.7) 50%,
    rgba(41,171,226,0.15) 80%,
    transparent 100%
  );
  box-shadow:
    0 0 12px rgba(41,171,226,0.5),
    0 0 28px rgba(41,171,226,0.2);
  animation: tc-scan-sweep 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes tc-scan-sweep {
  0%   { top: 0%;   opacity: 0; }
  4%   { opacity: 1; }
  88%  { opacity: 0.8; }
  100% { top: 100%; opacity: 0; }
}

/* Radial glow bottom-left */
.tc-hero-glow {
  position: absolute;
  bottom: -120px;
  left: -80px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41,171,226,0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Hero inner ── */
.tc-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.tc-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--cyan);
  background: rgba(41,171,226,0.1);
  border: 1px solid rgba(41,171,226,0.22);
  padding: 6px 14px;
  border-radius: 20px;
  opacity: 0;
  animation: tc-fade-up 0.6s var(--ease) 0.2s forwards;
}

/* ── Title word-by-word reveal ── */
.tc-hero-title {
  margin: 22px 0 0;
  font-size: clamp(50px, 7.5vw, 96px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -2.5px;
  color: #fff;
}

.tc-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(44px);
  will-change: transform, opacity;
}
.tc-word:nth-child(1) { animation: tc-word-in 0.75s cubic-bezier(0.22,1,0.36,1) 0.45s forwards; }
.tc-word:nth-child(2) { animation: tc-word-in 0.75s cubic-bezier(0.22,1,0.36,1) 0.62s forwards; }
.tc-word:nth-child(3) { animation: tc-word-in 0.75s cubic-bezier(0.22,1,0.36,1) 0.79s forwards; }
.tc-word + .tc-word   { margin-left: 0.22em; }

@keyframes tc-word-in {
  to { opacity: 1; transform: translateY(0); }
}

.tc-word--accent { color: var(--cyan); }

/* ── Subtitle ── */
.tc-hero-sub {
  margin-top: 26px;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.68;
  color: rgba(255,255,255,0.52);
  max-width: 580px;
  opacity: 0;
  animation: tc-fade-up 0.7s var(--ease) 1.0s forwards;
}

/* ── Meta badges ── */
.tc-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 38px;
  opacity: 0;
  animation: tc-fade-up 0.7s var(--ease) 1.2s forwards;
}

.tc-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 7px 13px;
  letter-spacing: 0.01em;
}

/* Shared fade-up keyframe */
@keyframes tc-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ══════════════════════════════════════
   CONTENT SECTION (cream)
══════════════════════════════════════ */
#tc-content {
  background: #F6F4EE;
  padding: 80px 0 120px;
}

/* 2-col layout */
.tc-layout {
  display: grid;
  grid-template-columns: 268px 1fr;
  gap: 56px;
  align-items: start;
}


/* ══════════════════════════════════════
   STICKY SIDEBAR TOC
══════════════════════════════════════ */
.tc-sidebar {
  position: sticky;
  top: 96px;
}

.tc-toc {
  background: #fff;
  border: 1px solid rgba(11,19,32,0.08);
  border-radius: 18px;
  padding: 22px 20px;
  box-shadow: 0 4px 28px rgba(0,0,0,0.06);
}

.tc-toc-title {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: rgba(11,19,32,0.3);
  padding-bottom: 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(11,19,32,0.07);
}

.tc-toc-nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.tc-toc-link {
  position: relative;
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: rgba(11,19,32,0.4);
  text-decoration: none;
  padding: 8px 10px 8px 22px;
  border-radius: 9px;
  transition: color 0.2s, background 0.2s;
  line-height: 1.3;
}
.tc-toc-link::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--cyan);
  border-radius: 2px;
  transition: height 0.25s var(--ease);
}
.tc-toc-link:hover {
  color: var(--bg);
  background: rgba(41,171,226,0.06);
}
.tc-toc-link.tc-active {
  color: var(--bg);
  font-weight: 700;
  background: rgba(41,171,226,0.09);
}
.tc-toc-link.tc-active::before {
  height: 18px;
}


/* ══════════════════════════════════════
   MAIN CONTENT — SECTION CARDS
══════════════════════════════════════ */
.tc-main {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Base card */
.tc-section {
  position: relative;
  background: #fff;
  border-radius: 22px;
  padding: 48px 48px 44px;
  border: 1px solid rgba(11,19,32,0.07);
  box-shadow:
    0 1px 3px rgba(0,0,0,0.04),
    0 6px 24px rgba(0,0,0,0.05);
  overflow: hidden;
}

/* Large background section number */
.tc-sec-num {
  position: absolute;
  top: 14px;
  right: 22px;
  font-size: 88px;
  font-weight: 900;
  color: rgba(11,19,32,0.035);
  line-height: 1;
  user-select: none;
  pointer-events: none;
  letter-spacing: -3px;
}

/* Section label (pill above heading) */
.tc-sec-label {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  background: rgba(41,171,226,0.09);
  border: 1px solid rgba(41,171,226,0.18);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}

/* Section heading */
.tc-section h2 {
  font-size: clamp(20px, 2.2vw, 27px);
  font-weight: 800;
  color: var(--bg);
  margin: 0 0 20px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

/* Subsection heading */
.tc-section h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--bg);
  margin: 30px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(11,19,32,0.07);
  display: flex;
  align-items: center;
  gap: 8px;
}
.tc-section h3::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 14px;
  background: var(--cyan);
  border-radius: 2px;
  flex-shrink: 0;
}

/* Body text */
.tc-section p {
  font-size: 14.5px;
  line-height: 1.78;
  color: rgba(11,19,32,0.62);
  margin: 0 0 14px;
}
.tc-section p:last-child { margin-bottom: 0; }

/* Bullet list */
.tc-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tc-list li {
  display: flex;
  gap: 11px;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(11,19,32,0.62);
}
.tc-list li::before {
  content: '';
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  margin-top: 8px;
}

/* Callout box — info */
.tc-callout {
  background: rgba(41,171,226,0.07);
  border-left: 3px solid var(--cyan);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.65;
  color: #0B1320;
}

/* Callout — warning/important */
.tc-callout--warn {
  background: rgba(245,158,11,0.08);
  border-left-color: #F59E0B;
  color: #78350F;
}

/* Callout — highlight/final */
.tc-callout--highlight {
  background: rgba(11,19,32,0.04);
  border-left-color: #0B1320;
  color: #0B1320;
  font-style: italic;
}

/* Badge (inline) — e.g. "30 days" */
.tc-badge {
  display: inline-flex;
  align-items: center;
  background: var(--cyan);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 5px;
  margin: 0 2px;
  vertical-align: middle;
  letter-spacing: 0.02em;
}
.tc-badge--dark {
  background: var(--bg);
}

/* Info chip row */
.tc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}
.tc-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--bg);
  background: rgba(11,19,32,0.05);
  border: 1px solid rgba(11,19,32,0.09);
  border-radius: 8px;
  padding: 7px 12px;
}

/* Divider */
.tc-divider {
  height: 1px;
  background: rgba(11,19,32,0.07);
  margin: 28px 0;
}

/* Final quote card (dark) */
.tc-final {
  background: linear-gradient(135deg, var(--bg) 0%, #112240 100%);
  border-radius: 18px;
  padding: 36px 40px;
  text-align: center;
  margin-top: 40px;
  border: 1px solid rgba(41,171,226,0.15);
}
.tc-final p {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(14px, 1.5vw, 17px);
  color: rgba(255,255,255,0.78);
  margin: 0 0 16px;
  line-height: 1.7;
}
.tc-final p strong {
  color: var(--cyan);
  font-style: normal;
}
.tc-final-seal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
}

/* Section top accent line */
.tc-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s;
}
.tc-section:hover::before {
  opacity: 1;
}


/* ══════════════════════════════════════
   SCROLL REVEAL
══════════════════════════════════════ */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal-up.revealed {
  opacity: 1;
  transform: translateY(0);
}


/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1100px) {
  .tc-layout {
    grid-template-columns: 230px 1fr;
    gap: 36px;
  }
}

@media (max-width: 860px) {
  .tc-layout {
    grid-template-columns: 1fr;
  }
  .tc-sidebar {
    position: static;
  }
  .tc-toc {
    padding: 16px;
  }
  .tc-toc-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }
  .tc-toc-link {
    padding: 5px 10px;
    font-size: 11px;
    border: 1px solid rgba(11,19,32,0.1);
    border-radius: 20px;
  }
  .tc-toc-link::before { display: none; }
  .tc-toc-link.tc-active {
    background: var(--cyan);
    color: #fff;
    border-color: var(--cyan);
  }
  .tc-section {
    padding: 32px 26px 28px;
  }
  .tc-sec-num { font-size: 64px; }
}

@media (max-width: 640px) {
  #tc-hero { padding: 140px 0 72px; }
  .tc-hero-title { letter-spacing: -1.5px; }
  .tc-section { padding: 28px 20px 24px; }
  .tc-final { padding: 28px 24px; }
}


/* ═══════════════════════ FAQ Accordion ════════════════════════ */
.tc-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.09);
  background: #fff;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}

.tc-faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.07);
  transition: background 0.18s;
}
.tc-faq-item:last-child { border-bottom: none; }
.tc-faq-item.tc-faq-open { background: rgba(41,171,226,0.06); }

.tc-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: #1a2940;
  font-family: inherit;
  line-height: 1.4;
  transition: color 0.18s;
}
.tc-faq-q:hover { color: var(--cyan); }
.tc-faq-open .tc-faq-q { color: var(--cyan); }

.tc-faq-arrow {
  flex-shrink: 0;
  color: rgba(0,0,0,0.28);
  transition: transform 0.25s, color 0.18s;
}
.tc-faq-open .tc-faq-arrow {
  transform: rotate(180deg);
  color: var(--cyan);
}

.tc-faq-a {
  padding: 0 20px 18px 20px;
  display: block;
}
.tc-faq-a[hidden] { display: none; }
.tc-faq-a p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(0,0,0,0.58);
  margin: 0;
}
