/* ==========================================================================
   Policy pages (Site Policy / Privacy Policy)
   - Long-form legal/medical pages.
   - Reuses existing design tokens (colors, typography, spacing).
   - Designed for easy reading on long pages: max content width ~960px,
     generous line-height, consistent vertical rhythm between sections.
   ========================================================================== */

.policy-section {
  /* Slightly tighter top padding because the page-hero already provides
     vertical separation. Bottom padding kept consistent with .section. */
  padding-top: clamp(48px, 7vw, 88px);
}

/* Lead paragraph block above the article */
.policy-intro {
  font-size: 15px;
  line-height: 2.1;
  color: var(--c-text-soft);
  margin-bottom: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(28px, 4vw, 40px);
  border-bottom: 1px solid var(--c-line-soft);
}
.policy-intro p + p { margin-top: 1.4em; }

/* Article container — readable max-width within .l-narrow (960px) */
.policy {
  font-size: 15px;
  line-height: 2.1;
  color: var(--c-text-soft);
}

/* Each numbered policy item gets generous vertical space */
.policy__item {
  margin-bottom: clamp(40px, 5vw, 64px);
}
.policy__item:last-of-type {
  margin-bottom: clamp(28px, 4vw, 40px);
}

/* H2 headings — match section-head__title visual weight but smaller,
   as these are within-page subheadings, not page titles. */
.policy__title {
  font-family: var(--font-jp-serif);
  font-weight: 500;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--c-text);
  margin-bottom: 20px;
  padding-bottom: 14px;
  position: relative;
  border-bottom: 1px solid var(--c-line-soft);
}
.policy__title::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 48px;
  height: 1px;
  background: var(--c-accent);
}

/* H3 subheadings inside an item (e.g. categories of use within
   "Purpose of Use" in the Privacy Policy) */
.policy__subtitle {
  font-family: var(--font-jp-serif);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--c-accent);
  margin-top: 28px;
  margin-bottom: 12px;
  padding-left: 14px;
  border-left: 2px solid var(--c-accent);
  line-height: 1.7;
}

/* Body paragraphs */
.policy p {
  font-size: 15px;
  line-height: 2.1;
  color: var(--c-text-soft);
}
.policy p + p { margin-top: 1.2em; }
.policy p + ul,
.policy ul + p {
  margin-top: 1.2em;
}

/* Bullet lists in policy text */
.policy__list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.policy__list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 2;
  color: var(--c-text-soft);
}
.policy__list li + li {
  margin-top: 6px;
}
.policy__list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: calc(1em - 3px);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  opacity: 0.7;
}

/* Contact info-table inside a policy item */
.policy__contact {
  margin-top: 20px;
}

/* "制定日" line at the very bottom of the article */
.policy__updated {
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: 24px;
  border-top: 1px solid var(--c-line-soft);
  font-size: 13px;
  color: var(--c-text-mute);
  text-align: right;
  letter-spacing: 0.06em;
}

/* ==========================================================================
   Footer legal links (added to footer bar across the site)
   ========================================================================== */
.l-footer__legal {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  padding: 0;
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.06em;
}
.l-footer__legal li {
  position: relative;
  padding: 0;
}
.l-footer__legal li + li::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 10px;
  background: var(--c-line);
  margin-right: 18px;
  vertical-align: middle;
  position: absolute;
  left: -11px;
  top: 50%;
  transform: translateY(-50%);
}
.l-footer__legal a {
  color: var(--c-text-mute);
  transition: color 0.2s;
}
.l-footer__legal a:hover {
  color: var(--c-accent);
}
.l-footer__legal a[aria-current="page"] {
  color: var(--c-accent);
}

/* ==========================================================================
   Responsive (mobile)
   ========================================================================== */
@media (max-width: 768px) {
  .policy-intro {
    font-size: 14px;
    line-height: 2;
  }
  .policy p,
  .policy__list li {
    font-size: 14px;
    line-height: 2;
  }
  .policy__title {
    font-size: 17px;
    margin-bottom: 16px;
    padding-bottom: 12px;
  }
  .policy__subtitle {
    font-size: 14px;
    margin-top: 22px;
  }
  .policy__list li {
    padding-left: 18px;
  }
  .policy__list li::before {
    left: 2px;
    width: 5px;
    height: 5px;
  }
  /* Footer legal links: stack neatly, remove vertical separator on wrap */
  .l-footer__legal {
    gap: 6px 14px;
  }
  .l-footer__legal li + li::before {
    margin-right: 14px;
    left: -14px;
  }
}

/* Respect the existing large-font-size mode (文字サイズ "大") */
html.is-fontsize-large .policy p,
html.is-fontsize-large .policy__list li,
html.is-fontsize-large .policy-intro,
html.is-fontsize-large .policy-intro p {
  font-size: 17px;
  line-height: 2.2;
}
html.is-fontsize-large .policy__title {
  font-size: clamp(20px, 2.4vw, 24px);
}
html.is-fontsize-large .policy__subtitle {
  font-size: 16px;
}
