/* Static / legal CMS documents — full-width editorial layout */

.static-page {
  --static-gutter: clamp(20px, 4vw, 48px);
  position: relative;
  width: 100%;
  padding: 0 0 72px;
  overflow: clip;
  background:
    radial-gradient(ellipse 70% 45% at 8% -10%, rgba(47, 158, 158, 0.12), transparent 58%),
    radial-gradient(ellipse 55% 40% at 100% 0%, rgba(216, 235, 235, 0.85), transparent 55%),
    linear-gradient(180deg, #f4f8f7 0%, var(--ppch-ivory) 28%, var(--ppch-ivory) 100%);
}

.static-page__masthead {
  position: relative;
  width: 100%;
  padding: 36px var(--static-gutter) 40px;
  border-bottom: var(--stroke-hair) solid rgba(42, 84, 89, 0.12);
  background:
    linear-gradient(135deg, rgba(42, 84, 89, 0.06), transparent 42%),
    linear-gradient(180deg, rgba(252, 253, 250, 0.4), transparent);
}

.static-page__masthead::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(47, 158, 158, 0.45) 20%,
    rgba(42, 84, 89, 0.2) 50%,
    rgba(47, 158, 158, 0.35) 80%,
    transparent
  );
}

.static-page__masthead-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
}

.static-page__crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-size: 13.5px;
  color: var(--text-tertiary);
}

.static-page__crumb a {
  color: var(--accent);
  text-decoration: none;
  font-weight: var(--fw-medium);
}

.static-page__crumb a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.static-page__crumb-sep {
  width: 18px;
  height: 1px;
  background: rgba(42, 84, 89, 0.28);
}

.static-page__eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.static-page__title {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ppch-deep);
  margin: 0;
  max-width: min(100%, 18em);
}

.static-page__shell {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 40px var(--static-gutter) 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: start;
}

.static-page--doc .static-page__shell {
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 48px;
}

.static-page__toc {
  position: sticky;
  top: calc(var(--site-header-offset) + 18px);
  max-height: calc(100vh - var(--site-header-offset) - 36px);
  overflow: auto;
  padding: 18px 16px 18px 0;
  border-right: var(--stroke-hair) solid rgba(42, 84, 89, 0.12);
  scrollbar-width: thin;
}

.static-page__toc-label {
  margin: 0 0 14px;
  padding-left: 12px;
  font-size: 11.5px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.static-page__toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.static-page__toc-list a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 8px 10px 8px 8px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ppch-grey-700);
  transition: background 0.2s ease, color 0.2s ease;
}

.static-page__toc-list a:hover {
  background: rgba(47, 158, 158, 0.1);
  color: var(--ppch-deep);
}

.static-page__toc-num {
  font-family: "Kiyosuna Sans", var(--font-heading);
  font-size: 12px;
  line-height: 1.5;
  color: var(--accent);
}

.static-page__toc-text {
  font-size: 13.5px;
  line-height: 1.4;
}

.static-page__main {
  min-width: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.72);
  border: var(--stroke-hair) solid rgba(42, 84, 89, 0.1);
  border-radius: 28px;
  box-shadow: 0 18px 48px rgba(27, 43, 45, 0.05);
  padding: clamp(28px, 3.5vw, 48px);
  backdrop-filter: blur(8px);
}

.static-page__body {
  font-size: clamp(16.5px, 1.15vw, 18.5px);
  line-height: 1.7;
  color: var(--ppch-grey-700);
  max-width: none;
}

.static-page__body > *:first-child {
  margin-top: 0;
}

.static-page__body > *:last-child {
  margin-bottom: 0;
}

.static-page__body p {
  margin: 0 0 1em;
}

.static-page__body h2 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ppch-deep);
  margin: 2.1em 0 0.8em;
  padding-top: 0.35em;
  border-top: var(--stroke-hair) solid rgba(42, 84, 89, 0.12);
  scroll-margin-top: calc(var(--site-header-offset) + 20px);
}

.static-page__body h2:first-of-type {
  margin-top: 1.4em;
}

.static-page__body .lead + .note + h2,
.static-page__body .note + h2,
.static-page__body .lead + h2 {
  border-top: 0;
  padding-top: 0;
  margin-top: 1.5em;
}

.static-page__body h3 {
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.35;
  color: var(--ppch-deep);
  margin: 1.45em 0 0.55em;
}

.static-page__body .lead {
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.5;
  color: var(--ppch-deep);
  font-weight: var(--fw-medium);
  margin-bottom: 0.55em;
}

.static-page__body .note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 1.4em;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ppch-turquoise-soft);
  color: var(--ppch-deep);
  font-size: 14px;
  font-weight: var(--fw-medium);
}

.static-page__body ul {
  margin: 0 0 1.25em;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 10px 18px;
}

.static-page__body ul li {
  position: relative;
  padding: 12px 14px 12px 34px;
  border-radius: 14px;
  background: rgba(237, 244, 244, 0.7);
  border: var(--stroke-hair) solid rgba(42, 84, 89, 0.08);
}

.static-page__body ul li::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 1.15em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}

.static-page__body a:not(.btn) {
  color: var(--accent);
  text-decoration: none;
  font-weight: var(--fw-medium);
  border-bottom: 1px solid rgba(47, 158, 158, 0.35);
}

.static-page__body a:not(.btn):hover {
  color: var(--accent-press);
  border-bottom-color: var(--accent-press);
}

.static-page__body .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.static-page__body .actions .btn {
  margin: 0;
}

.static-page__body .contact-list {
  margin: 0 0 1.25em;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--ppch-haze-soft);
  border: var(--stroke-hair) solid var(--ppch-haze);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 18px;
}

.static-page__body .contact-list li {
  padding: 0;
  background: transparent;
  border: 0;
}

.static-page__body .contact-list li::before {
  display: none;
}

.static-page__body .contact-list a {
  font-weight: var(--fw-medium);
}

@media (max-width: 1100px) {
  .static-page--doc .static-page__shell {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .static-page__toc {
    position: relative;
    top: auto;
    max-height: none;
    overflow: visible;
    padding: 0 0 8px;
    border-right: 0;
    border-bottom: var(--stroke-hair) solid rgba(42, 84, 89, 0.12);
  }

  .static-page__toc-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 4px 10px;
    padding-bottom: 16px;
  }
}

@media (max-width: 640px) {
  .static-page {
    padding-bottom: 48px;
  }

  .static-page__masthead {
    padding: 24px var(--static-gutter) 28px;
  }

  .static-page__title {
    max-width: none;
    font-size: clamp(26px, 8vw, 34px);
  }

  .static-page__shell {
    padding-top: 24px;
  }

  .static-page__main {
    border-radius: 20px;
    padding: 22px 18px 26px;
  }

  .static-page__body,
  .static-page__body .lead {
    font-size: 16px;
  }

  .static-page__body ul {
    grid-template-columns: 1fr;
  }

  .static-page__body .actions {
    flex-direction: column;
  }

  .static-page__body .actions .btn {
    width: 100%;
    justify-content: center;
  }
}
