.page-disclaimer {
  --terms-bg: #F5F7FA;
  --terms-card: #FFFFFF;
  --terms-ink: #0A1F44;
  --terms-red: #E5484D;
  --terms-line: rgba(10, 31, 68, 0.12);
  --terms-grid-line: rgba(10, 31, 68, 0.045);

  background-color: var(--terms-bg);
  background-image:
    linear-gradient(var(--terms-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--terms-grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  padding: calc(var(--header-h) + 36px) 20px 72px;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--terms-ink);
}

.terms-breadcrumb {
  max-width: var(--content-max);
  margin: 0 auto 18px;
  font-size: 13px;
  color: var(--neutral-gray);
  letter-spacing: 0.02em;
}
.terms-breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.terms-breadcrumb a:hover,
.terms-breadcrumb a:focus-visible {
  border-color: var(--accent-deep);
}
.terms-breadcrumb__sep {
  margin: 0 8px;
  color: var(--silver);
}

.terms-hero {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  gap: 30px;
}
.terms-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.terms-eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--accent-deep);
  text-transform: uppercase;
  margin: 0 0 14px;
}
.terms-hero h1 {
  position: relative;
  font-family: var(--font-head);
  font-size: clamp(42px, 8vw, 66px);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 18px;
  padding-bottom: 10px;
  color: var(--terms-ink);
}
.terms-hero h1::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 5px;
  background: var(--accent);
}
.terms-hero__lead {
  font-size: 17px;
  line-height: 1.75;
  color: var(--neutral-gray);
  max-width: 52ch;
  margin: 12px 0 0;
}
.terms-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.terms-hero__visual {
  position: relative;
}
.terms-hero__visual::before {
  content: '';
  position: absolute;
  inset: 18px -18px -18px 18px;
  background: var(--primary);
  clip-path: var(--clip-diagonal);
  z-index: 0;
}
.terms-hero__img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  clip-path: var(--clip-diagonal);
  border: 1px solid rgba(57, 255, 20, 0.45);
}

.terms-toc {
  max-width: var(--content-max);
  margin: 48px auto 0;
  background: var(--terms-card);
  border: 1px solid var(--terms-line);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(10, 31, 68, 0.04);
}
.terms-toc__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid var(--terms-line);
  transition: background 0.2s ease, padding-left 0.2s ease;
}
.terms-toc__item:last-child {
  border-bottom: 0;
}
.terms-toc__item:hover,
.terms-toc__item:focus-visible {
  background: rgba(57, 255, 20, 0.08);
  padding-left: 24px;
}
.terms-toc__no {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-deep);
}
.terms-toc__label {
  font-size: 15px;
  font-weight: 600;
}

.terms-section {
  max-width: var(--content-max);
  margin: 22px auto 0;
  background: var(--terms-card);
  border: 1px solid var(--terms-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(10, 31, 68, 0.04);
}
.terms-section__head {
  background: var(--primary);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
}
.terms-section__no {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(57, 255, 20, 0.12);
  border: 1px solid rgba(57, 255, 20, 0.4);
  min-width: 44px;
  height: 44px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  transition: background 0.2s ease, transform 0.2s ease;
}
.terms-section__head:hover .terms-section__no,
.terms-section__no:focus-visible {
  background: rgba(57, 255, 20, 0.22);
  transform: translateY(-2px);
}
.terms-section__title h2 {
  font-family: var(--font-head);
  font-size: 24px;
  line-height: 1.15;
  margin: 0;
  letter-spacing: 0.01em;
  color: var(--white);
}
.terms-section__subtitle {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.62);
  text-transform: uppercase;
  margin-top: 3px;
}
.terms-section__body {
  padding: 22px 18px 26px;
  font-size: 15px;
  line-height: 1.7;
}
.terms-section__body > p {
  margin: 0 0 12px;
}
.terms-section__body > p:last-child {
  margin-bottom: 0;
}
.terms-section__lead {
  font-size: 16px;
  font-weight: 500;
  color: var(--terms-ink);
}

.terms-list {
  list-style: none;
  margin: 14px 0 18px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.terms-list__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
}
.terms-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}
.terms-mark--allow {
  background: var(--accent);
  color: var(--primary);
}
.terms-mark--forbid {
  background: var(--terms-red);
  color: #ffffff;
}

.terms-note-list {
  list-style: none;
  margin: 14px 0 18px;
  padding: 0 0 0 16px;
  border-left: 2px solid var(--silver);
  display: grid;
  gap: 8px;
}
.terms-note-list li {
  line-height: 1.65;
  padding-left: 12px;
  position: relative;
}
.terms-note-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--accent-deep);
}

.terms-body__h3 {
  font-family: var(--font-head);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 22px 0 6px;
  padding-left: 10px;
  border-left: 3px solid var(--accent-deep);
  color: var(--terms-ink);
}

.terms-details {
  margin: 16px 0 0;
  border: 1px dashed var(--terms-line);
  border-radius: var(--radius);
  padding: 10px 14px;
  background: var(--neutral-light);
}
.terms-details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: var(--primary);
}
.terms-details p {
  font-size: 14px;
  color: var(--neutral-gray);
  margin: 8px 0 0;
}

.terms-flow {
  margin: 20px 0 0;
  padding: 18px 16px 12px;
  border: 1px solid var(--terms-line);
  background: var(--neutral-light);
  border-radius: var(--radius);
}
.terms-flow svg {
  display: block;
  width: 100%;
  height: auto;
}
.terms-flow figcaption {
  margin-top: 10px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--neutral-gray);
}

.terms-contact {
  max-width: var(--content-max);
  margin: 40px auto 0;
  background: var(--primary);
  border-radius: var(--radius);
  padding: 30px 22px 28px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.terms-contact::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 160px;
  height: 160px;
  background: rgba(57, 255, 20, 0.08);
  clip-path: var(--clip-diagonal);
}
.terms-contact__inner {
  position: relative;
  z-index: 1;
}
.terms-contact__inner h2 {
  font-family: var(--font-head);
  font-size: 30px;
  margin: 0 0 10px;
  color: var(--white);
}
.terms-contact__inner p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 18px;
  max-width: 56ch;
}
.terms-contact__inner p.terms-contact__note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 20px;
}
.terms-contact__methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--silver);
  margin-bottom: 12px;
}
.terms-contact__methods span::before {
  content: '●';
  color: var(--accent);
  margin-right: 6px;
  font-size: 9px;
  vertical-align: middle;
}
.terms-contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.terms-contact__link {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  border: 1px solid rgba(57, 255, 20, 0.5);
  border-radius: var(--radius);
  padding: 10px 18px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.terms-contact__link:hover,
.terms-contact__link:focus-visible {
  background: rgba(57, 255, 20, 0.12);
  border-color: var(--accent);
}

@media (min-width: 640px) {
  .terms-hero {
    grid-template-columns: 1fr 0.85fr;
    gap: 28px;
    align-items: center;
  }
  .terms-section__body {
    padding: 26px 28px 30px;
  }
  .terms-contact {
    padding: 36px 34px 32px;
  }
}

@media (min-width: 860px) {
  .terms-toc {
    grid-template-columns: repeat(5, 1fr);
  }
  .terms-toc__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 20px 16px;
    border-bottom: 0;
    border-right: 1px solid var(--terms-line);
  }
  .terms-toc__item:last-child {
    border-right: 0;
  }
  .terms-toc__item:hover,
  .terms-toc__item:focus-visible {
    padding-left: 16px;
  }
  .terms-toc__no {
    font-size: 22px;
  }

  .terms-section {
    display: grid;
    grid-template-columns: 96px 1fr;
  }
  .terms-section__head {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 12px;
    padding: 28px 12px;
  }
  .terms-section__no {
    font-size: 26px;
    min-width: 52px;
    height: 52px;
  }
  .terms-section__subtitle {
    writing-mode: vertical-rl;
    letter-spacing: 0.2em;
    align-self: center;
    margin-top: 8px;
  }
  .terms-section__body {
    padding: 32px 36px 36px;
  }
}
