/* ============================================
   LegalAI Terms & Conditions - terms-condition.css
   Color Palette: #93D095 | #A2D99F | #94A8BB
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --green-dark:   #2374E7;
  --green-light:  #011F53;
  --steel-blue:   #94A8BB;
  --ink:          #1a2230;
  --ink-soft:     #2d3d50;
  --mist:         #f4f7f5;
  --white:        #ffffff;
  --border:       rgba(35,116,231,0.25);
  --glow-green:   rgba(147, 208, 149, 0.18);
  --glow-blue:    rgba(148, 168, 187, 0.15);
  --transition:   cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--ink);
  overflow-x: hidden;
}

/* ─── HERO ─────────────────────────────────── */
.tc-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: #011F53;
  overflow: hidden;
  padding: 120px 40px 80px;
}

/* animated mesh background */
.tc-hero__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 15% 30%, rgba(147,208,149,0.14) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 85% 70%, rgba(148,168,187,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 10%, rgba(162,217,159,0.08) 0%, transparent 55%);
  animation: meshPulse 8s ease-in-out infinite alternate;
}

@keyframes meshPulse {
  0%   { opacity: 0.7; transform: scale(1); }
  100% { opacity: 1;   transform: scale(1.04); }
}

/* floating orbs */
.tc-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  animation: orbFloat linear infinite;
}
.tc-hero__orb--1 {
  width: 320px; height: 320px;
  background: rgba(35,116,231,0.12);
  top: -80px; left: -60px;
  animation-duration: 18s;
}
.tc-hero__orb--2 {
  width: 260px; height: 260px;
  background: rgba(35,116,231,0.12);
  bottom: -60px; right: 5%;
  animation-duration: 22s;
  animation-direction: reverse;
}
.tc-hero__orb--3 {
  width: 180px; height: 180px;
  background: rgba(35,116,231,0.12);
  top: 40%; right: 25%;
  animation-duration: 14s;
}
@keyframes orbFloat {
  0%,100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(30px, -25px) scale(1.05); }
  66%      { transform: translate(-20px, 20px) scale(0.97); }
}

/* grid lines overlay */
.tc-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148,168,187,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,168,187,0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.tc-hero__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.tc-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F6F9FE;
  border-radius: 100px;
  padding: 6px 18px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s var(--transition) 0.2s forwards;
}
.tc-hero__badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--green-dark);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green-dark);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.4); }
}

.tc-hero__title {
  font-size: clamp(3rem, 7vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s var(--transition) 0.4s forwards;
}
.tc-hero__title em {
  font-style: italic;
  background: var(--green-dark);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tc-hero__sub {
  font-size: 1.15rem;
  font-weight: 300;
  color: #fff;
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.75;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s var(--transition) 0.6s forwards;
}

.tc-hero__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s var(--transition) 0.8s forwards;
}
.tc-hero__meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #fff;
  font-weight: 400;
}
.tc-hero__meta-item i {
  color: #fff;
  font-size: 0.9rem;
}

.tc-hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 3;
  opacity: 0;
  animation: fadeIn 1s ease 1.4s forwards;
}
.tc-hero__scroll span {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}
.tc-hero__scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(147,208,149,0.6), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* floating stats strip */
.tc-hero__stats {
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  justify-content: center;
  gap: 0;
  z-index: 3;
  opacity: 0;
  animation: fadeIn 0.8s ease 1.1s forwards;
}
.tc-hero__stat {
  padding: 18px 40px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.tc-hero__stat:last-child { border-right: none; }
.tc-hero__stat-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-dark);
}
.tc-hero__stat-lbl {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2px;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  to { opacity: 1; }
}

/* ─── CONTENT WRAPPER ───────────────────────── */
.tc-body {
  margin: 0 auto;
  padding: 100px 15px 120px;
  align-items: start;
}

/* ─── SIDEBAR / TABLE OF CONTENTS ──────────── */
.tc-sidebar {
  position: sticky;
  top: 100px;
  background: var(--white);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 4px 32px rgba(30,50,70,0.07);
  border: 1px solid var(--border);
}

.tc-sidebar__title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--steel-blue);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.tc-toc {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tc-toc a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 0.85rem;
  color: var(--ink-soft);
  padding: 9px 12px;
  border-radius: 10px;
  transition: all 0.25s var(--transition);
  border: 1px solid transparent;
  font-weight: 400;
}
.tc-toc a:hover,
.tc-toc a.active {
  background: var(--glow-green);
  border-color: rgba(147,208,149,0.3);
  color: var(--ink);
  font-weight: 500;
}
.tc-toc a .toc-num {
  width: 22px; height: 22px;
  background: var(--mist);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--steel-blue);
  flex-shrink: 0;
  transition: all 0.25s;
}
.tc-toc a:hover .toc-num,
.tc-toc a.active .toc-num {
  background: var(--green-dark);
  color: white;
}

.tc-sidebar__updated {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 0.76rem;
  color: var(--steel-blue);
}
.tc-sidebar__updated strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }

/* reading progress bar */
.tc-progress {
  height: 3px;
  background: var(--border);
  border-radius: 3px;
  margin-top: 20px;
  overflow: hidden;
}
.tc-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-dark), var(--green-light));
  border-radius: 3px;
  width: 0%;
  transition: width 0.2s ease;
}

/* ─── MAIN CONTENT ──────────────────────────── */
.tc-main {}

.tc-intro-card {
  background: #F6F9FE;
  border-radius: 24px;
  padding: 44px 48px;
  margin-bottom: 56px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s var(--transition);
}
.tc-intro-card.visible { opacity: 1; transform: none; }
.tc-intro-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(147,208,149,0.12), transparent 70%);
  border-radius: 50%;
}
.tc-intro-card__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 12px;
}
.tc-intro-card__text {
  font-size: 1.22rem;
  font-style: italic;
  color: var(--green-light);
  line-height: 1.75;
  position: relative;
}
.tc-intro-card__text::before {
  content: '"';
  font-size: 6rem;
  color: rgba(147,208,149,0.12);
  position: absolute;
  top: -28px; left: -20px;
  line-height: 1;
  pointer-events: none;
}

/* individual section */
.tc-section {
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.6s var(--transition);
}
.tc-section.visible { opacity: 1; transform: none; }

.tc-section__header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 22px;
}

.tc-section__num {
  width: 48px; height: 48px;
  flex-shrink: 0;
  background: var(--green-dark);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(147,208,149,0.3);
}

.tc-section__title-wrap { flex: 1; }

.tc-section__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-light);
  line-height: 1.3;
  margin-bottom: 4px;
}

.tc-section__title-line {
  height: 2px;
  width: 40px;
  background: linear-gradient(90deg, var(--green-dark), transparent);
  border-radius: 2px;
}

.tc-section__body {
  background: #F6F9FE;
  border-radius: 18px;
  padding: 32px 36px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(30,50,70,0.04);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.tc-section__body:hover {
  box-shadow: 0 8px 40px rgba(147,208,149,0.12);
  border-color: rgba(147,208,149,0.35);
}
.tc-section__body::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--green-dark), var(--steel-blue));
  border-radius: 3px 0 0 3px;
  opacity: 0;
  transition: opacity 0.3s;
}
.tc-section__body:hover::after { opacity: 1; }

.tc-section__body p {
  font-size: 0.96rem;
  line-height: 1.85;
  color: #375281;
  font-weight: 400;
}

/* prohibited list */
.tc-prohibited {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.tc-prohibited li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.93rem;
  color: #3d5066;
  line-height: 1.65;
}
.tc-prohibited li::before {
  content: '✕';
  width: 24px; height: 24px;
  background: rgba(148,168,187,0.12);
  border: 1px solid rgba(148,168,187,0.3);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--steel-blue);
  flex-shrink: 0;
  margin-top: 2px;
}

/* highlight box */
.tc-highlight {
  background: white;
  border: 1px solid rgba(35,116,231,0.2);
  border-radius: 14px;
  padding: 20px 24px;
  margin-top: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.tc-highlight i {
  color: var(--green-dark);
  font-size: 1rem;
  margin-top: 3px;
  flex-shrink: 0;
}
.tc-highlight p {
  font-size: 0.88rem !important;
  color: var(--green-dark) !important;
  font-weight: 500 !important;
  line-height: 1.6 !important;
}

/* contact CTA */
.tc-contact-cta {
  background: #F6F9FE;
  border-radius: 24px;
  padding: 52px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 64px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s var(--transition);
}
.tc-contact-cta.visible { opacity: 1; transform: none; }
.tc-contact-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 60% at 50% 0%,
    rgba(35,116,231,0.12),
    transparent 70%
  );  
  pointer-events: none;
}
.tc-contact-cta h3 {
  font-size: 2rem;
  color: var(--green-dark);
  margin-bottom: 12px;
}
.tc-contact-cta p {
  color: var(--green-light);
  font-size: 0.96rem;
  margin-bottom: 32px;
}
.btn-cta-green {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green-dark);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 14px 32px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s var(--transition);
  box-shadow: 0 4px 24px rgba(35,116,231,0.35);
  position: relative;
  cursor: none;
}
.btn-cta-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(35,116,231,0.45);
  background: var(--green-light);
  color: var(--white);
  text-decoration: none;
}

/* ─── READING PROGRESS TOP BAR ──────────────── */
.tc-topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 9999;
  background: transparent;
}
.tc-topbar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-dark), var(--green-light), var(--steel-blue));
  width: 0%;
  transition: width 0.15s ease;
}

/* ─── RESPONSIVE ────────────────────────────── */
@media (max-width: 960px) {
  .tc-sidebar {
    position: static;
    display: none;
  }
}
@media (max-width: 640px) {
  .tc-hero { padding: 100px 20px 70px; }
  .tc-hero__stats { display: none; }
  .tc-intro-card { padding: 28px 24px; }
  .tc-section__body { padding: 24px 20px; }
  .tc-contact-cta { padding: 36px 24px; }
  .tc-body { padding: 60px 16px 80px; }
}