/* ============================================================
   TERMS OF SERVICE PAGE
   ============================================================ */
.terms-page {
  padding: calc(80px + 48px) 0 100px;
}

/* Hero */
.terms-hero {
  padding: 0 0 40px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
}

.terms-hero__title {
  font-family: 'Cormorant', serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 300;
  color: var(--ink);
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.terms-hero__meta {
  font-size: 13px;
  color: var(--muted);
}

/* TOC */
.terms-toc__script {
  font-family: 'English111VivaceBT', cursive;
  font-size: clamp(22px, 3vw, 30px);
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.terms-toc {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px 28px;
  background: var(--cream-2);
  border-radius: var(--r-lg);
  margin-bottom: 64px;
}

.terms-toc__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.terms-toc__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px 20px;
  padding: 0;
  counter-reset: none;
}

.terms-toc__list li {
  font-size: 13px;
}

.terms-toc__list a {
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.terms-toc__list a:hover {
  color: var(--accent);
}

.terms-toc__num {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.05em;
  flex-shrink: 0;
  width: 20px;
}

/* Sections */
.terms-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.terms-section {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0 40px;
  padding: 48px 0;
  scroll-margin-top: calc(80px + 24px);
  border-bottom: 1px solid var(--line);
}

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

.terms-section__num {
  font-family: 'Cormorant', serif;
  font-size: 36px;
  font-weight: 300;
  color: var(--line-2);
  letter-spacing: 0.02em;
  line-height: 1;
  padding-top: 4px;
  user-select: none;
}

.terms-section__title {
  font-family: 'Cormorant', serif;
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.02em;
  margin-bottom: 18px;
  line-height: 1.25;
}

.terms-section__content p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-2);
  margin-bottom: 12px;
}

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

.terms-link {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.terms-link:hover { color: var(--accent); }

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

.terms-list li {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-2);
  padding-left: 20px;
  position: relative;
}

.terms-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 1px;
  background: var(--accent);
}

/* Callout */
.terms-callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
  padding: 16px 20px;
  background: var(--accent-soft);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

.terms-callout svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent);
}

.terms-callout p {
  font-size: 13px !important;
  line-height: 1.6 !important;
  color: var(--ink-2) !important;
  margin-bottom: 0 !important;
}

/* Legal note */
.terms-legal-note {
  margin-top: 16px !important;
  font-size: 12px !important;
  color: var(--muted) !important;
  line-height: 1.6 !important;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}


/* ============================================================
   RESPONSIVE — terms sections (≤860)
   ============================================================ */
@media (max-width: 860px) {
  .terms-section {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .terms-section__num {
    font-size: 22px;
    padding-top: 0;
    color: var(--muted-2);
  }

  .terms-section {
    padding: 32px 0;
  }

  .terms-toc {
    flex-direction: column;
    gap: 12px;
    padding: 16px 20px;
  }

  .terms-toc__list {
    gap: 6px 16px;
  }

  .terms-hero {
    padding: 0 0 28px;
    margin-bottom: 28px;
  }

  .terms-hero__title {
    font-size: clamp(26px, 7vw, 38px);
  }

  .terms-toc__script {
    font-size: clamp(18px, 5vw, 24px);
    margin-bottom: 8px;
  }

  .terms-body {
    gap: 0;
  }
}

@media (max-width: 768px) {
  .terms-page { padding-top: 100px; }
}

@media (max-width: 600px) {
  .terms-page {
    padding: 100px 0 64px;
  }

  .terms-hero {
    padding: 0 0 24px;
    margin-bottom: 24px;
  }

  .terms-hero__title {
    font-size: 26px;
    line-height: 1.2;
  }

  .terms-hero__meta {
    font-size: 12px;
    margin-top: 8px;
  }

  .terms-toc {
    padding: 14px 16px;
    margin-bottom: 8px;
  }

  .terms-toc__label {
    font-size: 10px;
  }

  .terms-toc__list {
    flex-direction: column;
    gap: 6px;
  }

  .terms-toc__list li {
    font-size: 13px;
  }

  .terms-section {
    padding: 24px 0;
    gap: 6px;
  }

  .terms-section__num {
    font-size: 18px;
  }

  .terms-section__title {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .terms-section__content p,
  .terms-list li {
    font-size: 13px;
  }

  .terms-callout {
    padding: 12px 14px;
    gap: 10px;
  }

  .terms-callout p {
    font-size: 12px !important;
  }

  .terms-contacts {
    gap: 8px;
  }

  .terms-contact-item {
    font-size: 13px;
  }
}
