/* Text pages (information/information.twig): About, Terms, Privacy, Legal notice. Scoped to #information-page. */

#information-page {
  padding: 24px 0 96px;
  color: var(--muted);
  font-family: var(--font);
}

#information-page *,
#information-page *::before,
#information-page *::after { box-sizing: border-box; }

/* breadcrumb */
#information-page .ip-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 40px;
  padding: 0;
  color: #777c82;
  font-size: 12px;
  list-style: none;
}
#information-page .ip-breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: #b3b7bb;
}
#information-page .ip-breadcrumb a:hover { color: var(--ink); }

#information-page .ip-title {
  max-width: 980px;
  margin: 0 0 56px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

/* layout: contents | text */
#information-page .ip-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 820px);
  gap: 80px;
  align-items: start;
}
#information-page .ip-layout--single { grid-template-columns: minmax(0, 820px); }

/* table of contents */
#information-page .ip-toc {
  position: sticky;
  top: 24px;
  padding-top: 165px;
  border-top: 1px solid var(--ink);
}
#information-page .ip-toc__title {
  margin: 0 0 12px;
  color: #777c82;
  font-size: 13px;
}
#information-page .ip-toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}
#information-page .ip-toc__list li { counter-increment: toc; }
#information-page .ip-toc__list a {
  display: flex;
  gap: 12px;
  padding: 7px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  transition: color 0.15s;
}
#information-page .ip-toc__list a::before {
  content: counter(toc, decimal-leading-zero);
  flex: 0 0 22px;
  color: #b3b7bb;
  font-size: 12px;
  line-height: 1.8;
}
#information-page .ip-toc__list a:hover,
#information-page .ip-toc__list a.is-active { color: var(--btn-bg); }
#information-page .ip-toc__list a.is-active::before { color: var(--btn-bg); }

/* text */
#information-page .ip-body {
  counter-reset: section;
  font-size: 16px;
  line-height: 1.75;
}

#information-page .ip-body > :first-child { margin-top: 0; }

#information-page .ip-body h2 {
  margin: 56px 0 16px;
  padding-top: 20px;
  border-top: 1px solid #e4e4e4;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.3;
  scroll-margin-top: 24px;
  counter-increment: section;
}
#information-page .ip-body h2::before {
  content: counter(section, decimal-leading-zero);
  margin-right: 14px;
  color: #b3b7bb;
  font-size: 14px;
  vertical-align: 2px;
}
#information-page .ip-body > h2:first-child,
#information-page .ip-body > p:first-child + h2 { margin-top: 40px; }
#information-page .ip-body > h2:first-child { margin-top: 0; }

#information-page .ip-body p { margin: 0 0 16px; }

#information-page .ip-body ul,
#information-page .ip-body ol { margin: 0 0 16px; padding: 0; list-style: none; }
#information-page .ip-body li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 22px;
}
#information-page .ip-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 10px;
  height: 1px;
  background: var(--ink);
}

#information-page .ip-body strong { color: var(--ink); font-weight: 600; }

#information-page .ip-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: #b3b7bb;
  text-underline-offset: 3px;
  transition: color 0.15s, text-decoration-color 0.15s;
}
#information-page .ip-body a:hover { color: var(--btn-bg); text-decoration-color: var(--btn-bg); }

/* legal notice table */
#information-page .legal-table {
  width: 100%;
  margin: 8px 0 0;
  border-collapse: collapse;
  border-top: 1px solid var(--ink);
}
#information-page .legal-table th,
#information-page .legal-table td {
  padding: 18px 0;
  border-bottom: 1px solid #e4e4e4;
  vertical-align: top;
  text-align: left;
}
#information-page .legal-table th {
  width: 220px;
  padding-right: 32px;
  color: #777c82;
  font-size: 14px;
  font-weight: 400;
}
#information-page .legal-table td { color: var(--ink); line-height: 1.7; }

@media (max-width: 1100px) {
  #information-page .ip-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 48px; }
}

@media (max-width: 900px) {
  #information-page .ip-title { margin-bottom: 32px; }
  #information-page .ip-layout,
  #information-page .ip-layout--single { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  #information-page .ip-toc { position: static; }
}

@media (max-width: 640px) {
  #information-page .ip-breadcrumb ol { margin-bottom: 24px; }
  #information-page .ip-body { font-size: 15px; }
  #information-page .ip-body h2 { margin-top: 40px; font-size: 19px; }
  #information-page .legal-table,
  #information-page .legal-table tbody,
  #information-page .legal-table tr,
  #information-page .legal-table th,
  #information-page .legal-table td { display: block; width: 100%; }
  #information-page .legal-table tr { padding: 16px 0; border-bottom: 1px solid #e4e4e4; }
  #information-page .legal-table th,
  #information-page .legal-table td { padding: 0; border: 0; }
  #information-page .legal-table th { margin-bottom: 4px; font-size: 13px; }
}
