#footer .terms_link { margin-top: 6px; }
#footer .terms_link button { padding: 0; border: 0; background: transparent; color: inherit; font-family: inherit; font-size: 20px; line-height: 1.5; cursor: pointer; text-decoration: none; }
.service_terms { width: min(720px, calc(100% - 32px)); max-height: 85vh; max-height: 85dvh; padding: 0; border: 0; border-radius: 12px; color: #222; background: #fff; box-sizing: border-box; }
.service_terms[open] { display: flex; flex-direction: column; position: fixed; inset: 0; margin: auto; }
.service_terms::backdrop { background: rgba(0, 0, 0, .6); }
.service_terms_header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid #ddd; flex-shrink: 0; }
.service_terms_header h2 { margin: 0; font-size: 22px; }
.service_terms_header button { border: 1px solid #ccc; border-radius: 4px; padding: 6px 12px; background: #fff; color: #333; font: inherit; cursor: pointer; }
.service_terms_body { padding: 24px; overflow-y: auto; overscroll-behavior: contain; font-size: 16px; line-height: 1.7; text-align: left; overflow-wrap: anywhere; }
.service_terms_body h3 { margin: 28px 0 12px; font-size: 19px; font-weight: 700; }
.service_terms_body h3:first-child { margin-top: 0; }
.service_terms_body h4 { margin: 18px 0 4px; font-size: 16px; font-weight: 700; }
.service_terms_body p { margin: 0 0 12px; }
.service_terms .terms_choices { display: flex; flex-wrap: wrap; gap: 10px 20px; min-width: 0; margin: 16px 0; padding: 14px; border: 1px solid #ddd; border-radius: 6px; }
.service_terms .terms_choices legend { padding: 0 6px; font-weight: 600; }
.service_terms .terms_choices label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.service_terms .terms_choices input { appearance: auto; position: static; opacity: 1; width: 18px; height: 18px; margin: 0; flex-shrink: 0; accent-color: #0f6adc; }
@media screen and (max-width: 720px) {
    #footer .terms_link button { font-size: 14px; }
    .service_terms_header, .service_terms_body { padding: 16px; }
    .service_terms_header h2 { font-size: 20px; }
}
