/* /ketentuan-layanan — white service agreement */

.tm {
  --tm-ink: #171717;
  --tm-muted: #737373;
  --tm-line: #e5e5e5;
  --tm-soft: #fafafa;
  background: #fff;
  color: var(--tm-ink);
}

/* hero centered */
.tm-hero {
  border-bottom: 1px solid var(--tm-line);
  padding: 3.25rem 1.25rem 2.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .tm-hero {
    padding: 4.5rem 2rem 3.5rem;
  }
}

.tm-hero__inner {
  max-width: 44rem;
  margin: 0 auto;
}

.tm-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tm-muted);
}

.tm-hero h1 {
  margin: 0 0 0.9rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.tm-hero__lead {
  margin: 0 auto 0.9rem;
  max-width: 38rem;
  font-size: 1.06rem;
  line-height: 1.72;
  color: var(--tm-muted);
  font-weight: 500;
}

.tm-hero__meta {
  margin: 0 auto;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--tm-muted);
}

/* summary — centered */
.tm-summary {
  border-bottom: 1px solid var(--tm-line);
  background: var(--tm-soft);
  padding: 1rem 1.25rem;
  text-align: center;
}

@media (min-width: 768px) {
  .tm-summary {
    padding: 1.25rem 2rem;
  }
}

.tm-summary__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: center;
}

.tm-summary__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--tm-ink);
  line-height: 1.5;
}

.tm-summary__dot {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--tm-ink);
  flex-shrink: 0;
}

/* body 2-col sticky TOC */
.tm-body {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .tm-body {
    padding: 2.5rem 2rem 5rem;
  }
}

@media (min-width: 1000px) {
  .tm-body {
    flex-direction: row;
    gap: 3rem;
    align-items: flex-start;
  }
}

.tm-toc {
  flex-shrink: 0;
}

@media (max-width: 999px) {
  .tm-toc {
    position: sticky;
    top: var(--header-h, 4rem);
    z-index: 15;
    margin: 0 -1.25rem;
    padding: 0.65rem 1.25rem 0.75rem;
    background: rgb(255 255 255 / 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--tm-line);
  }
}

@media (min-width: 1000px) {
  .tm-toc {
    position: sticky;
    top: 100px;
    width: 16rem;
  }
}

.tm-toc__label {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tm-muted);
}

@media (min-width: 768px) and (max-width: 999px) {
  .tm-toc {
    margin: 0 -2rem;
    padding: 0.65rem 2rem 0.75rem;
  }
}

@media (max-width: 999px) {
  .tm-toc__label {
    display: none;
  }
}

.tm-toc__list {
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
}

.tm-toc__list::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--tm-line);
}

@media (min-width: 1000px) {
  .tm-toc__list {
    display: block;
  }
}

.tm-toc__list li {
  position: relative;
}

.tm-toc__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: transparent;
  transition: background 0.18s;
}

.tm-toc__list li.is-active::before {
  background: var(--tm-ink);
}

.tm-toc__list a {
  display: block;
  padding: 0.6rem 0 0.6rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--tm-muted);
  text-decoration: none;
  transition: color 0.18s;
}

.tm-toc__list a:hover {
  color: var(--tm-ink);
}

.tm-toc__list li.is-active a {
  color: var(--tm-ink);
  font-weight: 700;
}

.tm-toc__chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
}

.tm-toc__chips::-webkit-scrollbar {
  display: none;
}

@media (min-width: 1000px) {
  .tm-toc__chips {
    display: none;
  }
}

.tm-toc__chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--tm-line);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--tm-ink);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
}

.tm-toc__chip:hover {
  border-color: #a3a3a3;
}

.tm-toc__chip.is-active {
  border-color: var(--tm-ink);
  background: var(--tm-ink);
  color: #fff;
}

/* article */
.tm-article {
  max-width: 44rem;
  min-width: 0;
}

.tm-article section {
  margin: 0 0 2.5rem;
  padding-top: 0.5rem;
  scroll-margin-top: 5rem;
}

.tm-article section:last-of-type {
  margin-bottom: 0;
}

.tm-article h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.tm-article p {
  margin: 0 0 0.9rem;
  font-size: 1.06rem;
  line-height: 1.75;
  color: #262626;
  font-weight: 450;
}

.tm-article ul {
  margin: 0.75rem 0 1rem;
  padding: 0 0 0 1.15rem;
  list-style: disc;
}

.tm-article ul li {
  margin: 0 0 0.55rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: #262626;
}

.tm-article ul li:last-child {
  margin-bottom: 0;
}

/* box */
.tm-box {
  border: 1px solid var(--tm-line);
  border-radius: 0.65rem;
  padding: 1.35rem 1.25rem 1.25rem;
  background: var(--tm-soft);
}

@media (min-width: 640px) {
  .tm-box {
    padding: 1.5rem 1.5rem 1.35rem;
  }
}

.tm-box h2 {
  margin: 0 0 0.65rem;
}

.tm-box__list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0.5rem 0 0.9rem !important;
}

.tm-box__list li {
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
}

.tm-box__list a {
  color: var(--tm-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tm-box__cta {
  margin: 0.75rem 0 0 !important;
}

.tm-box__cta a {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--tm-ink);
  text-decoration: none;
  border: 1px solid var(--tm-line);
  background: #fff;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  display: inline-flex;
}

.tm-box__cta a:hover {
  border-color: #a3a3a3;
}

.tm-footnote {
  margin: 2.5rem 0 0 !important;
  font-size: 0.82rem !important;
  line-height: 1.6 !important;
  color: var(--tm-muted) !important;
}
