/* ========================================
   POLYCOPYBOT -- Terms of Service Styles
======================================== */

/* -- HERO -------------------------------------------------------------- */
.tos-hero {
  position: relative;
  padding: 100px 0 60px;
  overflow: hidden;
}
.tos-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 0%, rgba(0,255,136,.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(0,212,255,.05) 0%, transparent 70%);
  pointer-events: none;
}
.tos-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.tos-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,255,136,.08);
  border: 1px solid rgba(0,255,136,.2);
  border-radius: 100px;
  padding: 5px 16px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: 20px;
}
.tos-hero-badge i { font-size: .75rem; }
.tos-hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.4px;
  margin-bottom: 16px;
  color: #fff;
}
.tos-hero-sub {
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 580px;
}
.tos-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.tos-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: .78rem;
  color: var(--muted);
  font-weight: 500;
}
.tos-meta-pill i { color: var(--neon); font-size: .82rem; }
.tos-meta-pill strong { color: var(--text); font-weight: 600; }
.tos-effective-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(0,255,136,.1);
  border: 1px solid rgba(0,255,136,.3);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: .78rem;
  color: var(--neon);
  font-weight: 600;
}

/* -- LAYOUT ------------------------------------------------------------ */
.tos-layout {
  padding: 20px 0 80px;
}
.tos-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

/* -- SIDEBAR / TABLE OF CONTENTS --------------------------------------- */
.tos-sidebar {
  position: sticky;
  top: 90px;
}
.tos-toc-card {
  background: rgba(16,16,44,.85);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px 18px;
  backdrop-filter: blur(12px);
}
.tos-toc-heading {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.tos-toc-heading i { font-size: .8rem; }
.tos-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tos-toc-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  text-decoration: none;
  font-size: .78rem;
  color: var(--muted);
  font-weight: 500;
  transition: all .2s ease;
  line-height: 1.35;
  border: 1px solid transparent;
}
.tos-toc-list li a:hover {
  color: var(--text);
  background: rgba(255,255,255,.04);
  border-color: var(--border);
}
.tos-toc-list li a.active {
  color: var(--neon);
  background: rgba(0,255,136,.07);
  border-color: rgba(0,255,136,.2);
}
.tos-toc-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: rgba(0,255,136,.1);
  color: var(--neon);
  font-size: .65rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: all .2s ease;
}
.tos-toc-list li a.active .tos-toc-num {
  background: var(--neon);
  color: #000;
}
.tos-toc-back {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.tos-toc-back a {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .75rem;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 7px;
  transition: all .2s ease;
}
.tos-toc-back a:hover { color: var(--neon); background: rgba(0,255,136,.06); }

/* -- CONTENT SECTIONS -------------------------------------------------- */
.tos-sections {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tos-section {
  background: rgba(16,16,44,.82);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.tos-section:hover {
  border-color: rgba(0,255,136,.18);
  box-shadow: 0 0 30px rgba(0,255,136,.04);
}
.tos-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 26px 18px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.tos-sec-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0,255,136,.1);
  border: 1px solid rgba(0,255,136,.2);
  color: var(--neon);
  font-size: .78rem;
  font-weight: 800;
  flex-shrink: 0;
  letter-spacing: -.5px;
}
.tos-sec-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0,212,255,.08);
  border: 1px solid rgba(0,212,255,.15);
  color: var(--blue);
  font-size: .95rem;
  flex-shrink: 0;
}
.tos-sec-title-wrap {
  flex: 1;
}
.tos-sec-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.25;
}
.tos-sec-tag {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}
.tos-section-body {
  padding: 20px 26px 24px;
}
.tos-section-body p {
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.8;
  margin-bottom: 12px;
}
.tos-section-body p:last-child { margin-bottom: 0; }
.tos-section-body strong { color: var(--text); font-weight: 600; }
.tos-section-body a { color: var(--neon); text-decoration: none; }
.tos-section-body a:hover { text-decoration: underline; }

/* Bullet lists inside sections */
.tos-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tos-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.7;
}
.tos-list li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon);
  flex-shrink: 0;
  margin-top: 8px;
  box-shadow: 0 0 6px rgba(0,255,136,.5);
}
.tos-list li strong { color: var(--text); }

/* Numbered sub-lists */
.tos-numlist {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  counter-reset: tos-counter;
}
.tos-numlist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.7;
  counter-increment: tos-counter;
}
.tos-numlist li::before {
  content: counter(tos-counter);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: rgba(0,255,136,.08);
  color: var(--neon);
  font-size: .65rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 4px;
}

/* Inline highlight box */
.tos-callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(0,255,136,.05);
  border: 1px solid rgba(0,255,136,.15);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 14px 0;
}
.tos-callout i {
  color: var(--neon);
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}
.tos-callout-text {
  font-size: .83rem;
  color: var(--text);
  line-height: 1.7;
}

.tos-callout-warn {
  background: rgba(255,71,87,.05);
  border-color: rgba(255,71,87,.18);
}
.tos-callout-warn i { color: var(--red); }

.tos-callout-blue {
  background: rgba(0,212,255,.05);
  border-color: rgba(0,212,255,.15);
}
.tos-callout-blue i { color: var(--blue); }

/* Plans grid inside section 5 */
.tos-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 14px 0;
}
.tos-plan-card {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 14px;
  text-align: center;
  transition: border-color .2s ease;
}
.tos-plan-card:hover { border-color: rgba(0,255,136,.2); }
.tos-plan-card.featured {
  background: rgba(0,255,136,.06);
  border-color: rgba(0,255,136,.25);
}
.tos-plan-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.tos-plan-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}
.tos-plan-price span {
  font-size: .75rem;
  font-weight: 500;
  color: var(--muted);
}
.tos-plan-card.featured .tos-plan-price { color: var(--neon); }
.tos-plan-period {
  font-size: .7rem;
  color: var(--muted);
  margin-top: 4px;
}

/* Contact info inside section 13 */
.tos-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0;
}
.tos-contact-item {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.tos-contact-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(0,255,136,.08);
  color: var(--neon);
  font-size: .9rem;
  flex-shrink: 0;
}
.tos-contact-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}
.tos-contact-val {
  font-size: .82rem;
  color: var(--text);
  font-weight: 500;
}
.tos-contact-val a { color: var(--neon); text-decoration: none; }
.tos-contact-val a:hover { text-decoration: underline; }

/* -- SCROLL PROGRESS BAR ------------------------------------------------ */
.tos-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--grad);
  z-index: 9999;
  width: 0%;
  transition: width .1s linear;
  box-shadow: 0 0 10px rgba(0,255,136,.5);
}

/* -- RESPONSIVE --------------------------------------------------------- */
@media (max-width: 991px) {
  .tos-grid {
    grid-template-columns: 1fr;
  }
  .tos-sidebar {
    position: static;
    order: -1;
  }
  .tos-toc-card {
    padding: 16px 14px;
  }
  .tos-toc-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }
  .tos-plans-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .tos-contact-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 575px) {
  .tos-hero { padding: 80px 0 40px; }
  .tos-section-header { padding: 16px 18px 14px; gap: 10px; }
  .tos-section-body { padding: 16px 18px 20px; }
  .tos-toc-list { grid-template-columns: 1fr; }
  .tos-plans-grid { grid-template-columns: 1fr; }
  .tos-meta-strip { gap: 8px; }
}
