.tw-terms {
  max-width: 1100px;
  margin: 0 auto;
  color: #303030;
  font-size: 16px;
  line-height: 1.7;
}

.tw-terms *,
.tw-terms *::before,
.tw-terms *::after {
  box-sizing: border-box;
}

.tw-terms h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
}

.tw-terms-version {
  display: inline-block;
  margin: 0 0 1.5rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #f0f3ed;
  color: #5b5b5b;
  font-size: 0.92rem;
}

.tw-terms-toc {
  margin: 0 0 1.5rem;
  padding: 1.5rem;
  border: 1px solid #dfe6d8;
  border-left: 4px solid #69a82f;
  border-radius: 8px;
  background: #f7f9f4;
}

.tw-terms-toc::before {
  content: "Contents";
  display: block;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #242424;
}

.tw-terms-toc ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tw-terms-toc li {
  margin: 0;
}

.tw-terms-toc a {
  display: block;
  padding: 0.18rem 0;
  color: #355f1c;
  text-decoration: none;
}

.tw-terms-toc a:hover,
.tw-terms-toc a:focus {
  text-decoration: underline;
}

.tw-terms-company {
  margin: 0 0 2rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  background: #fafafa;
}

.tw-terms section {
  scroll-margin-top: 120px;
  margin: 0 0 1.5rem;
  padding: 1.75rem;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.04);
}

.tw-terms section h2 {
  margin: 0 0 1.15rem;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid #edf2e8;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: 1.25;
}

.tw-terms section h3 {
  margin: 1.6rem 0 0.55rem;
  color: #3f6525;
  font-size: 1.08rem;
  line-height: 1.35;
}

.tw-terms p {
  margin: 0 0 1rem;
}

.tw-terms p:last-child {
  margin-bottom: 0;
}

.tw-terms ul {
  margin: 1rem 0;
  padding: 1rem 1rem 1rem 2.4rem;
  border-left: 3px solid #dce7d2;
  border-radius: 0 6px 6px 0;
  background: #fafbf9;
}

.tw-terms li + li {
  margin-top: 0.55rem;
}

.tw-terms strong {
  color: #242424;
}

.tw-terms a {
  color: #4f851f;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.tw-terms section > p:has(> strong:first-child) {
  padding: 0.85rem 1rem;
  border-left: 3px solid #69a82f;
  border-radius: 0 6px 6px 0;
  background: #f7f9f4;
}

@media (max-width: 760px) {
  .tw-terms {
    font-size: 15px;
  }

  .tw-terms-toc ul {
    grid-template-columns: 1fr;
  }

  .tw-terms-toc,
  .tw-terms-company,
  .tw-terms section {
    padding: 1.15rem;
  }
}

@media print {
  .tw-terms {
    max-width: none;
    color: #000;
    font-size: 11pt;
  }

  .tw-terms-toc,
  .tw-terms-company,
  .tw-terms section {
    box-shadow: none;
    border-color: #bbb;
    background: #fff;
  }

  .tw-terms section {
    break-inside: avoid-page;
  }

  .tw-terms a {
    color: #000;
    text-decoration: none;
  }
}
