/* ============================================================
   TERMS & CONDITIONS PAGE
   ============================================================ */

/* ----- Hero ----- */
.tos-hero {
  padding: clamp(80px, 12vw, 140px) 0 clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.tos-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(240, 122, 26, 0.07) 0%, transparent 60%);
  pointer-events: none;
}

.tos-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 28px;
  transition: color var(--dur-fast) var(--ease-out);
}
.tos-back:hover { color: var(--accent-orange); }

.tos-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.tos-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-orange);
  background: var(--accent-orange-soft);
  border: 1px solid var(--accent-orange-ring);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
}

.tos-doc-ver {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.tos-title {
  font-size: clamp(22px, 3.2vw, 38px);
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 0 0 24px;
  max-width: 780px;
}

.tos-meta-row {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.tos-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.tos-meta-label {
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 10px;
}

.tos-meta-value {
  color: var(--text);
  font-weight: 500;
  font-size: 13px;
}

/* ----- Intro block ----- */
.tos-intro-wrap {
  padding: clamp(24px, 3vw, 40px) 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.tos-intro-text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  max-width: 820px;
  margin-bottom: 16px;
}

.tos-warning-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-strong);
  font-family: var(--font-mono);
  background: var(--surface-2);
  border-left: 3px solid var(--accent-orange);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  max-width: 820px;
}

/* ----- TOC ----- */
.tos-toc {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.toc-details { max-width: 820px; }

.toc-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 11px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  list-style: none;
  user-select: none;
  padding: 2px 0;
}
.toc-summary::-webkit-details-marker { display: none; }
.toc-summary:hover { color: var(--text); }

.toc-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 4px 24px;
  counter-reset: toc;
}

.toc-list li {
  counter-increment: toc;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.toc-list li::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-orange);
  flex-shrink: 0;
}

.toc-list a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
  line-height: 1.5;
  padding: 3px 0;
  display: block;
}
.toc-list a:hover { color: var(--accent-orange); }

/* ----- Content sections ----- */
.tos-content {
  padding: clamp(40px, 6vw, 72px) 0 clamp(60px, 8vw, 100px);
}

.tos-section {
  max-width: 820px;
  margin-bottom: clamp(36px, 5vw, 56px);
  padding-bottom: clamp(36px, 5vw, 56px);
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 80px;
}
.tos-section:last-of-type { border-bottom: none; }

.tos-section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
}

.tos-num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--accent-orange);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.tos-section-head h2 {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.tos-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tos-body > p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
}

/* ----- Lists ----- */
.tos-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tos-list li {
  display: flex;
  gap: 10px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
}

.tos-list li::before {
  content: '—';
  color: var(--accent-orange);
  font-family: var(--font-mono);
  flex-shrink: 0;
  font-size: 13px;
  margin-top: 2px;
}

.tos-list-prohibited li::before {
  content: '✕';
  color: var(--error);
  font-size: 11px;
  margin-top: 3px;
}

.tos-list-label {
  font-size: 15px;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: -4px;
}

/* ----- Callouts ----- */
.tos-callout {
  background: rgba(15, 160, 163, 0.06);
  border-left: 3px solid var(--accent-teal);
  padding: 14px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}

.tos-callout strong { color: var(--text-strong); }

.tos-callout-warn {
  background: rgba(245, 158, 11, 0.07);
  border-left-color: var(--warn);
}

.tos-note {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* ----- Subsections (3.1, 3.2, 3.3) ----- */
.tos-subsections {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tos-subsection {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tos-sub-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-teal);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  margin: 0;
}

/* ----- Links ----- */
.tos-link {
  color: var(--accent-teal);
  text-decoration: underline;
  text-decoration-color: rgba(15, 160, 163, 0.35);
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease-out),
              text-decoration-color var(--dur-fast) var(--ease-out);
}
.tos-link:hover {
  color: var(--accent-orange);
  text-decoration-color: rgba(240, 122, 26, 0.35);
}

.tos-privacy-line {
  font-size: 15px;
  color: var(--text);
  line-height: 1.65;
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
}

/* ----- End marker ----- */
.tos-end {
  max-width: 820px;
  margin-top: 48px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
  .toc-list {
    grid-template-columns: 1fr;
  }

  .tos-meta-row { gap: 12px; }

  .tos-subsection { padding: 14px 16px; }
}
