/* Legal pages and account notices only. No public/catalog or auth flow override. */
.store-legal-page { padding: 20px 0 32px; color: #193b31; }
.store-legal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.store-legal-head h1 { margin: 0 0 6px; font-size: clamp(21px, 3vw, 27px); font-weight: 650; line-height: 1.3; }
.store-legal-head p { max-width: 760px; margin: 0; color: #526b61; font-size: 13px; line-height: 1.6; }
.store-legal-version { flex-shrink: 0; padding: 5px 8px; border: 1px solid #b8cbc3; border-radius: 6px; background: #f7faf9; color: #526b61; font-size: 11px; }
.store-legal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.store-legal-tabs a { display: inline-flex; align-items: center; min-height: 36px; padding: 7px 12px; border: 1px solid #b8cbc3; border-radius: 8px; background: #fff; color: #0d6549; font-size: 13px; line-height: 1.3; }
.store-legal-tabs a[aria-current="page"] { background: #e4f2eb; border-color: #689b84; font-weight: 600; }
.store-legal-layout { display: grid; grid-template-columns: 275px minmax(0, 1fr); gap: 16px; align-items: start; }
.store-legal-contact, .store-legal-article { min-width: 0; border: 1px solid #b8cbc3; border-radius: 12px; background: #fff; padding: 18px; }
.store-legal-contact { background: #f7faf9; }
.store-legal-contact h2 { margin: 0 0 12px; font-size: 14px; font-weight: 650; }
.store-legal-contact p { margin: 0 0 12px; font-size: 12px; line-height: 1.65; }
.store-legal-page a { overflow-wrap: anywhere; }
.store-legal-contact > a { display: block; margin-bottom: 10px; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.store-legal-index { margin-top: 16px; padding-top: 12px; border-top: 1px solid #d6e3de; font-size: 12px; }
.store-legal-index summary { cursor: pointer; font-weight: 600; }
.store-legal-index ol { padding-left: 18px; line-height: 1.65; }
.store-legal-index li + li { margin-top: 7px; }
.store-legal-article section { scroll-margin-top: 180px; }
.store-legal-article section + section { margin-top: 22px; padding-top: 18px; border-top: 1px solid #d6e3de; }
.store-legal-article h2 { margin: 0 0 9px; font-size: 16px; line-height: 1.45; font-weight: 650; }
.store-legal-article p { margin: 0 0 10px; font-size: 14px; line-height: 1.8; }
.store-legal-article .store-legal-summary { padding: 12px; margin-bottom: 22px; border: 1px solid #9dbbad; border-radius: 8px; background: #edf4f1; color: #295e49; font-size: 13px; line-height: 1.6; }
.store-legal-related { display: flex; flex-wrap: wrap; gap: 10px 16px; padding-top: 18px; margin-top: 22px; border-top: 1px solid #d6e3de; font-size: 12px; }
.store-legal-related a { color: #0d6549; text-decoration: underline; text-underline-offset: 3px; }
.store-legal-page a:focus-visible, .store-legal-index summary:focus-visible, .auth-legal-links a:focus-visible, .auth-legal-notice a:focus-visible, .register-check a:focus-visible { outline: 2px solid #0f7c59; outline-offset: 3px; border-radius: 3px; }
.auth-legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 12px; padding-top: 12px; margin-top: 16px; border-top: 1px solid #b8cbc3; font-size: 12px; }
.auth-legal-links a, .auth-legal-notice a, .register-check a { color: #0d6549; text-decoration: underline; text-underline-offset: 3px; }
.auth-legal-notice { margin: 12px 0 0; padding: 10px 12px; border: 1px solid #b8cbc3; border-radius: 8px; background: #f7faf9; color: #526b61; font-size: 12px; line-height: 1.6; }
.auth-legal-hint { color: #526b61; font-size: 11px; line-height: 1.5; }
.store-legal-pending { color: #9c3d17; }
@media (max-width: 800px) {
  .store-legal-layout { grid-template-columns: minmax(0, 1fr); }
  .store-legal-head { flex-direction: column; gap: 10px; }
  .store-legal-contact, .store-legal-article { padding: 14px; }
  .store-legal-shell { width: calc(100% - 24px); }
  .store-legal-article section { scroll-margin-top: 24px; }
}
@media print {
  .store-legal-tabs, .store-legal-index, .store-legal-page ~ * { display: none; }
  .store-legal-layout { display: block; }
  .store-legal-contact { margin-bottom: 16px; }
  .store-legal-contact, .store-legal-article { border: 0; padding: 0; }
  .store-legal-article h2 { break-after: avoid; }
}
