/* somecue — Legal Pages
 * Migrated from Simple Custom CSS and JS and adapted to the refactored page.php.
 */
body:has(.sc-legal) { background:#fff; }

/* Works with the refactored classic-theme page markup. */
.sc-page-article:has(.sc-legal) {
  width:min(960px, calc(100% - 40px));
  margin:0 auto;
}
.sc-page-article:has(.sc-legal) .sc-page-header { margin-bottom:42px; }
.sc-page-article:has(.sc-legal) .sc-page-header h1 {
  margin:0;
  font-size:clamp(36px,5vw,58px);
  line-height:1.2;
  letter-spacing:-.04em;
  font-weight:700;
}
.sc-page-article:has(.sc-legal) .sc-page-content { width:100%; }

/* Backward-compatible selectors for content previously rendered by block templates. */
body:has(.sc-legal) .wp-block-post-title,
body:has(.sc-legal) .wp-block-post-content {
  width:min(960px, calc(100% - 40px)) !important;
  margin-left:auto !important;
  margin-right:auto !important;
}
body:has(.sc-legal) .wp-block-post-title {
  margin-top:0 !important;
  margin-bottom:42px !important;
  font-size:clamp(36px,5vw,58px) !important;
  line-height:1.2 !important;
  letter-spacing:-.04em !important;
  font-weight:700 !important;
}
body:has(.sc-legal) .wp-block-post-content { max-width:none !important; margin-bottom:0 !important; }
body:has(.sc-legal) .wp-block-post-content > * { max-width:none !important; }

.sc-legal {
  width:100%;
  max-width:960px;
  margin:0 auto;
  padding:0;
  color:#111;
  font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue","Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic","Meiryo",sans-serif;
}
.sc-legal-intro { margin:0 0 44px; color:#555; font-size:15px; line-height:1.9; }
.sc-legal-content { font-size:15px; line-height:1.9; color:#444; }
.sc-legal-content h2 {
  margin:48px 0 16px;
  padding-top:22px;
  border-top:1px solid #e7e7e7;
  color:#111;
  font-size:22px;
  line-height:1.5;
  font-weight:700;
  letter-spacing:-.02em;
}
.sc-legal-content h2:first-child { margin-top:0; }
.sc-legal-content p { margin:0 0 18px; }
.sc-legal-content ul,
.sc-legal-content ol { margin:0 0 24px; padding-left:1.4em; }
.sc-legal-content li { margin:8px 0; }

.sc-legal-table { margin:0; border-top:1px solid #e7e7e7; }
.sc-legal-table > div { display:grid; grid-template-columns:220px 1fr; border-bottom:1px solid #e7e7e7; }
.sc-legal-table dt,
.sc-legal-table dd { margin:0; padding:20px 0; font-size:14px; line-height:1.9; }
.sc-legal-table dt { padding-right:30px; color:#111; font-weight:700; }
.sc-legal-table dd { color:#555; }

.sc-legal-footer { margin-top:64px; padding-top:24px; border-top:1px solid #e7e7e7; text-align:center; }
.sc-legal-footer a { display:inline-block; margin:6px 12px; color:#555; font-size:12px; text-decoration:none; }
.sc-legal-footer a:hover { color:#006b3c; }
.sc-legal-footer p { margin:18px 0 0; color:#999; font-size:11px; }

@media (max-width:700px) {
  .sc-page-article:has(.sc-legal) { width:min(100% - 32px, 960px); }
  .sc-page-article:has(.sc-legal) .sc-page-header { margin-bottom:30px; }
  .sc-page-article:has(.sc-legal) .sc-page-header h1 { font-size:34px; line-height:1.3; }
  body:has(.sc-legal) .wp-block-post-title,
  body:has(.sc-legal) .wp-block-post-content { width:min(100% - 32px, 960px) !important; }
  body:has(.sc-legal) .wp-block-post-title { margin-bottom:30px !important; font-size:34px !important; }
  .sc-legal-intro { margin-bottom:32px; font-size:14px; }
  .sc-legal-content { font-size:14px; }
  .sc-legal-content h2 { margin-top:38px; font-size:20px; }
  .sc-legal-table > div { grid-template-columns:1fr; }
  .sc-legal-table dt { padding-bottom:4px; }
  .sc-legal-table dd { padding-top:4px; }
}
