.terms_page .site_header { position: relative; background: var(--white); border-bottom: 1px solid var(--border); }
.terms_main { max-width: 884px; padding-block: 28px 72px; }
.terms_breadcrumb { font-size: .875rem; margin-bottom: 28px; color: var(--muted); }
.terms_breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
.terms_intro h1 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); line-height: 1.5; letter-spacing: .035em; }
.terms_title_break { display: none; }
.terms_draft_notice { margin-block: 24px 16px; padding: 20px 24px; border: 1px solid var(--border); border-left: 4px solid var(--action); border-radius: 8px; background: var(--pale); }
.terms_draft_notice h2 { font-size: 1.125rem; margin-bottom: 10px; text-wrap: wrap; }
.terms_draft_notice p { font-size: .9375rem; }
.terms_contents { margin-block: 32px; padding: 24px; border: 1px solid var(--border); border-radius: 8px; }
.terms_contents h2 { font-size: 1.25rem; }
.terms_contents ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; padding: 0; margin: 12px 0 0; gap: 4px 24px; }
.terms_contents a { display: flex; align-items: center; min-height: 44px; font-size: .9375rem; }
.terms_body { line-height: 1.95; }
.terms_body section { padding-block: 28px; border-top: 1px solid var(--border); scroll-margin-top: 24px; }
.terms_body h2 { font-size: 1.375rem; text-wrap: wrap; letter-spacing: .02em; margin-bottom: 16px; }
.terms_body ol, .terms_body ul { padding-left: 1.65em; margin: 0; }
.terms_body li { padding-left: .25em; margin-top: 12px; }
.terms_body li:first-child { margin-top: 0; }
.terms_body li > ul { margin-block: 12px; }
.terms_body code { font-size: .9375em; }
@media (max-width: 767px) {
  .terms_main { padding-block: 16px 40px; }
  .terms_breadcrumb { margin-bottom: 16px; }
  .terms_title_break { display: initial; }
  .terms_draft_notice { padding: 16px; }
  .terms_draft_notice h2 { font-size: 1rem; }
  .terms_contents { padding: 16px; margin-block: 24px; }
  .terms_contents ol { grid-template-columns: 1fr; gap: 2px; }
  .terms_body section { padding-block: 24px; }
  .terms_body h2 { font-size: 1.25rem; }
}

/* Shared editorial hierarchy; legal paragraphs remain unchanged. */
.terms_page { background: var(--surface); }
.terms_main { max-width: 920px; padding-block: 32px 64px; }
.terms_intro h1 { font-family: var(--font); letter-spacing: .015em; }
.terms_intro > p { margin-top: 12px; color: var(--muted); line-height: 1.9; max-width: 760px; }
.terms_body { font-size: 1rem; line-height: 2; }
.terms_body section { padding-block: 32px; }
.terms_body p + p { margin-top: 16px; }
.terms_body a { overflow-wrap: anywhere; }
.terms_contents { background: var(--white); box-shadow: var(--shadow); }
.terms_contents a { text-decoration: none; padding-block: 8px; }
.terms_contents a:hover { text-decoration: underline; }
.terms_draft_notice { background: var(--pale); line-height: 1.9; }
.terms_page .footer_bottom { padding-top: 0; border-top: 0; }
@media (max-width:767px) {
  .terms_main { padding-block: 20px 40px; }
  .terms_body section { padding-block: 24px; }
  .terms_body h2 { font-size: 1.125rem; line-height: 1.8; }
}

@media(max-width:767px) { .terms_intro h1 { font-size: clamp(1.5rem,5vw,2rem); text-wrap: pretty; } }

/* Preserve legal copy and its original type scale; avoid short trailing lines. */
.terms_body p, .terms_body li { text-wrap: pretty; }

.terms_contents a, .terms_draft_notice p { text-wrap: balance; }
@media(max-width:767px) {
  .terms_body ol, .terms_body ul { padding-left: 1em; }
  .terms_body li { padding-left: 0; }
}
