/* Terms page additions (extends style.css) */

.sec-terms {
  padding: clamp(40px, 6vw, 80px) 0;
  background: var(--color-bg);
}

.terms-header {
  max-width: 920px;
  margin: 0 auto 24px;
  padding: 0 16px;
  text-align: center;
}

.terms-header .label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.terms-header h1 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 130%;
  margin-bottom: 12px;
}

.terms-header p {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-muted);
  line-height: 180%;
}

.terms-card {
  max-width: 920px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 64px -12px rgb(0 0 0 / 10%);
  padding: clamp(20px, 4vw, 48px);
  overflow-wrap: break-word;
  word-break: normal;
}

.terms-card .post-28 p {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  line-height: 190%;
  margin-bottom: 14px;
}

.terms-part {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px dashed var(--color-border);
}

.terms-part:first-of-type {
  margin-top: 18px;
  padding-top: 0;
  border-top: none;
}

.terms-part__heading {
  font-size: 18px;
  font-weight: 900;
  line-height: 150%;
  margin-bottom: 10px;
  color: var(--color-darker);
}

.terms-list {
  padding-left: 22px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.terms-list > li {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 185%;
}

.terms-list ol,
.terms-list ul {
  margin-top: 10px;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.terms-list ol li,
.terms-list ul li {
  line-height: 180%;
}

.terms-part ul {
  list-style: disc;
  padding-left: 22px;
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.terms-part ul li {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  line-height: 180%;
}

.terms-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--color-border);
}

.terms-table th,
.terms-table td {
  padding: 14px 14px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  text-align: left;
  font-size: 13px;
  line-height: 180%;
}

.terms-table tr:last-child th,
.terms-table tr:last-child td {
  border-bottom: none;
}

.terms-table th {
  width: 220px;
  background: var(--color-gray-100);
  font-weight: 900;
  color: var(--color-darker);
}

.terms-table td {
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-weight: 500;
}

@media (max-width: 768px) {
  .terms-table,
  .terms-table tbody,
  .terms-table tr,
  .terms-table th,
  .terms-table td {
    display: block;
    width: 100%;
  }

  .terms-table tr {
    border-bottom: 1px solid var(--color-border);
  }

  .terms-table tr:last-child {
    border-bottom: none;
  }

  .terms-table th {
    border-bottom: none;
    background: var(--color-gray-100);
    width: 100%;
    padding: 12px 14px 8px;
  }

  .terms-table td {
    padding: 0 14px 12px;
  }
}

.terms-date {
  margin-top: 32px;
  text-align: right;
  font-size: 12px;
  font-weight: 900;
  color: var(--color-text-light);
}
