/* ══════════════════════════════════════════
   NEXORA TERMS OF SERVICE — terms.css
   Extends style.css — do not modify style.css
══════════════════════════════════════════ */

/* ── HERO ── */
.tm-hero {
  position: relative;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0505 55%, #0d0d0d 100%);
  padding: 120px 0 56px;
  overflow: hidden;
  text-align: center;
}
.tm-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.tm-hero-glow {
  position: absolute;
  top: -10%; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(229,57,53,0.2), transparent 70%);
}
.tm-hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 100%);
}
.tm-hero-inner { position: relative; z-index: 1; }
.tm-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(229,57,53,0.12);
  border: 1px solid rgba(229,57,53,0.3);
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.tm-hero-title {
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 14px;
}
.tm-hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  max-width: 560px;
  margin: 0 auto 22px;
  line-height: 1.65;
}
.tm-hero-updated {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 7px 16px;
  border-radius: 20px;
}
.tm-hero-updated i { color: var(--red); }

/* ── MAIN LAYOUT ── */
.tm-main { background: var(--bg); }
.tm-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 36px;
  align-items: start;
}

/* ── TABLE OF CONTENTS ── */
.tm-toc-inner {
  position: sticky;
  top: 90px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}
.tm-toc-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.tm-toc-nav { display: flex; flex-direction: column; gap: 2px; }
.tm-toc-link {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 12px;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--gray);
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  transition: all .2s;
}
.tm-toc-link span { color: var(--red); font-weight: 700; font-size: 0.76rem; flex-shrink: 0; }
.tm-toc-link:hover { background: var(--bg); color: var(--dark); }
.tm-toc-link.active {
  background: rgba(229,57,53,0.06);
  color: var(--red);
  font-weight: 600;
  border-left-color: var(--red);
}

/* ── CONTENT ── */
.tm-content { min-width: 0; }

.tm-intro-card {
  display: flex;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}
.tm-intro-card i { font-size: 1.2rem; color: var(--red); flex-shrink: 0; margin-top: 2px; }
.tm-intro-card p { font-size: 0.9rem; color: var(--gray); line-height: 1.7; }

.tm-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  scroll-margin-top: 90px;
  transition: box-shadow .25s;
}
.tm-section:hover { box-shadow: var(--shadow-md); }
.tm-section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.4px;
  margin-bottom: 16px;
}
.tm-num {
  width: 36px; height: 36px;
  background: var(--red);
  color: #fff;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tm-section p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 14px;
}
.tm-section p:last-child { margin-bottom: 0; }
.tm-section strong { color: var(--dark); font-weight: 700; }

.tm-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 14px;
}
.tm-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.65;
}
.tm-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0; top: 1px;
  color: var(--red);
  font-size: 0.72rem;
}

/* CONTACT CARD */
.tm-contact-card {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.tm-contact-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  transition: all .2s;
}
.tm-contact-item i { color: var(--red); }
.tm-contact-item:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* AGREE CARD */
.tm-agree-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #111 0%, #1a0505 100%);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-top: 8px;
}
.tm-agree-card i { font-size: 1.6rem; color: var(--success); flex-shrink: 0; }
.tm-agree-card p { font-size: 0.9rem; color: rgba(255,255,255,0.85); line-height: 1.6; font-weight: 500; }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media(max-width:900px) {
  .tm-layout { grid-template-columns: 1fr; }
  .tm-toc { display: none; }
}
@media(max-width:768px) {
  .tm-hero-title { font-size: 2.1rem; }
  .tm-hero { padding: 100px 0 48px; }
  .tm-section { padding: 24px 22px; }
  .tm-section-title { font-size: 1.15rem; }
}
@media(max-width:480px) {
  .tm-hero-title { font-size: 1.8rem; }
  .tm-section-title { font-size: 1.05rem; gap: 10px; }
  .tm-num { width: 30px; height: 30px; font-size: 0.85rem; }
  .tm-contact-item { width: 100%; }
}