/* ============================================
   IWAPOKE — 法務ページ共通スタイル
   privacy / terms / community-guidelines
   ============================================ */

:root {
  --iw-primary: #CA95FF;
  --iw-primary-container: #EDD9FF;
  --iw-primary-dark: #9B6FD4;
  --iw-on-primary: #3D1F66;
  --iw-bg: #FFFFFF;
  --iw-surface: #F7F5F8;
  --iw-warm: #F0EFE9;
  --iw-text: #1d1d1f;
  --iw-text-sub: #6e6e73;
  --iw-text-faint: #86868b;
  --iw-border: #d2d2d7;
  --iw-border-faint: #ededf0;
  --iw-grey-100: #f5f5f7;
  --iw-primary-deep: #6B3FB0;
  --iw-font-jp: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", system-ui, sans-serif;
  --iw-font-num: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--iw-font-jp);
  color: var(--iw-text);
  background: #fff;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "palt" 1;
}
img { max-width: 100%; display: block; }
a { color: var(--iw-primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
.num { font-family: var(--iw-font-num); font-feature-settings: "tnum" 1; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* ===== Header (LPと同じ) ===== */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 52px;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--iw-font-num); font-weight: 700;
  font-size: 17px; letter-spacing: -0.02em; color: var(--iw-text);
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 26px; height: 26px;
  background-image: url("app-icon.png");
  background-size: cover; background-position: center;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><path fill='black' d='M0 88.6c0-31 0-46.6 6-58.5C11.4 19.4 19.4 11.4 30.1 6 42 0 57.5 0 88.6 0h22.8c31 0 46.6 0 58.5 6 10.7 5.4 18.7 13.4 24.1 24.1 6 12 6 27.5 6 58.5v22.8c0 31 0 46.6-6 58.5-5.4 10.7-13.4 18.7-24.1 24.1-12 6-27.5 6-58.5 6H88.6c-31 0-46.6 0-58.5-6-10.7-5.4-18.7-13.4-24.1-24.1-6-12-6-27.5-6-58.5V88.6z'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><path fill='black' d='M0 88.6c0-31 0-46.6 6-58.5C11.4 19.4 19.4 11.4 30.1 6 42 0 57.5 0 88.6 0h22.8c31 0 46.6 0 58.5 6 10.7 5.4 18.7 13.4 24.1 24.1 6 12 6 27.5 6 58.5v22.8c0 31 0 46.6-6 58.5-5.4 10.7-13.4 18.7-24.1 24.1-12 6-27.5 6-58.5 6H88.6c-31 0-46.6 0-58.5-6-10.7-5.4-18.7-13.4-24.1-24.1-6-12-6-27.5-6-58.5V88.6z'/></svg>");
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  filter: drop-shadow(0 2px 6px rgba(155,111,212,0.35));
}
.header-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--iw-text-sub);
  padding: 6px 10px; border-radius: 999px;
}
.header-back:hover { color: var(--iw-primary-dark); background: var(--iw-surface); text-decoration: none; }
.header-back svg { width: 16px; height: 16px; }

/* ===== Page hero (タイトル + 改定日) ===== */
.page-hero {
  background: linear-gradient(180deg, var(--iw-primary-container) 0%, rgba(237,217,255,0) 100%);
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--iw-border-faint);
}
.page-hero .breadcrumb {
  font-size: 12px; color: var(--iw-text-sub);
  margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 6px;
}
.page-hero .breadcrumb a { color: var(--iw-text-sub); }
.page-hero .breadcrumb a:hover { color: var(--iw-primary-dark); }
.page-hero .breadcrumb .sep { color: var(--iw-text-faint); }
.page-hero h1 {
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 700; line-height: 1.18; letter-spacing: -0.022em;
  margin: 0 0 16px;
  color: var(--iw-text);
}
.page-hero .meta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500;
  color: var(--iw-text-sub);
  background: rgba(255,255,255,0.85);
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(155,111,212,0.18);
  letter-spacing: 0.01em;
}
.page-hero .meta .iw-num { font-weight: 700; color: var(--iw-on-primary); }

/* ===== 本文 ===== */
.legal-content {
  padding: 56px 0 80px;
}
.legal-content > .wrap-narrow > p:first-child {
  font-size: 14.5px; color: var(--iw-text-sub);
  margin: 0 0 36px;
  padding: 18px 22px;
  background: var(--iw-surface);
  border-radius: 12px;
  border-left: 3px solid var(--iw-primary);
  line-height: 1.9;
}
.legal-content h2 {
  margin: 56px 0 20px;
  font-size: clamp(20px, 4.2vw, 23px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--iw-text);
  letter-spacing: -0.012em;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--iw-border-faint);
  text-wrap: balance;
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h2 .art {
  display: inline-block;
  font-family: var(--iw-font-num); font-weight: 800;
  color: var(--iw-primary-dark);
  margin-right: 10px;
  letter-spacing: -0.01em;
  font-size: 0.86em;
}
.legal-content h2 .art-jp {
  display: inline-block; color: var(--iw-primary-dark);
  font-weight: 800;
  margin-right: 10px;
  font-size: 0.9em;
}
.legal-content h3 {
  margin: 32px 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--iw-text);
  letter-spacing: -0.005em;
  line-height: 1.5;
}
.legal-content p {
  margin: 14px 0;
  color: var(--iw-text);
  line-height: 1.85;
  letter-spacing: 0.005em;
  text-wrap: pretty;
}
.legal-content ol,
.legal-content ul {
  margin: 14px 0;
  padding-left: 1.6em;
}
.legal-content ol > li,
.legal-content ul > li {
  margin: 10px 0;
  line-height: 1.9;
}
.legal-content ol > li::marker { color: var(--iw-primary-dark); font-weight: 700; }
.legal-content ul > li::marker { color: var(--iw-primary-dark); }

/* nested numbered list (1. → 1) → ア)) */
.legal-content ol ol {
  list-style-type: lower-roman;
  margin: 8px 0;
}
.legal-content ol ol > li::marker { color: var(--iw-text-faint); }

.legal-content a { color: var(--iw-primary-dark); border-bottom: 1px solid rgba(155,111,212,0.3); }
.legal-content a:hover { border-bottom-color: var(--iw-primary-dark); text-decoration: none; }

/* プレースホルダー記号「●」を視認性高く */
.legal-content .todo {
  display: inline-block;
  color: var(--iw-primary-dark);
  background: var(--iw-primary-container);
  padding: 0 6px; border-radius: 4px;
  font-weight: 700;
  font-size: 0.92em;
  letter-spacing: 0;
}

.legal-content .end-mark {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--iw-border-faint);
  text-align: center;
  font-size: 13px;
  color: var(--iw-text-faint);
  letter-spacing: 0.12em;
}

/* お問い合わせ末尾ブロック */
.legal-content .contact-block {
  margin-top: 24px;
  background: var(--iw-surface);
  border-radius: 12px;
  padding: 18px 22px;
}
.legal-content .contact-block ul {
  list-style: none; padding: 0; margin: 0;
}
.legal-content .contact-block ul li {
  margin: 6px 0;
  font-size: 14px;
}

/* ===== Footer (LPと同じ) ===== */
footer.site-footer {
  background: var(--iw-grey-100);
  color: var(--iw-text-sub);
  padding: 56px 0 28px;
  font-size: 12.5px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
footer.site-footer .brand { color: var(--iw-text); font-size: 16px; }
footer.site-footer .ft-grid {
  display: grid; gap: 32px;
  grid-template-columns: 1fr;
}
footer.site-footer .ft-tag { font-size: 12px; color: var(--iw-text-sub); margin-top: 10px; line-height: 1.55; }
footer.site-footer h5 {
  margin: 0 0 14px; font-size: 12px; font-weight: 600;
  color: var(--iw-text); letter-spacing: 0.02em; text-transform: none;
}
footer.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
footer.site-footer ul li a {
  color: var(--iw-text-sub);
  border-bottom: 0;
  transition: color .12s;
}
footer.site-footer ul li a:hover { color: var(--iw-text); text-decoration: underline; }
footer.site-footer .contact-link { color: var(--iw-primary-deep); font-family: var(--iw-font-num); }
footer.site-footer .contact-link:hover { color: var(--iw-primary-dark); }
footer.site-footer .operated {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--iw-text-sub);
}
footer.site-footer .operated:hover { color: var(--iw-text); }
footer.site-footer .bottom {
  margin-top: 48px; padding-top: 22px;
  border-top: 1px solid rgba(0,0,0,0.08);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: 11px; color: var(--iw-text-faint);
}

/* ===== Responsive ===== */
@media (min-width: 720px) {
  footer.site-footer .ft-grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; }
  .page-hero { padding: 72px 0 56px; }
  .legal-content { padding: 72px 0 100px; }
}
