:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #1e2930;
  background: #f4f5f4;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #f4f5f4; }
a { color: #275e69; }
a:focus-visible, summary:focus-visible { outline: 2px solid #276e78; outline-offset: 3px; }

.legal-shell { width: min(100%, 1040px); margin: auto; padding: 28px 22px 56px; }
.site-head, footer, .modal-head { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.site-head { margin-bottom: 34px; }
.brand { color: #1e2930; font-size: 1.1rem; font-weight: 750; text-decoration: none; }
.back { display: inline-block; margin-bottom: 18px; font-size: .86rem; text-decoration: none; }

details { position: relative; flex: none; font-size: .82rem; }
summary { cursor: pointer; border: 1px solid #cfd6d7; border-radius: 8px; padding: 9px 12px; background: #fff; }
details nav { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 3; width: min(310px, 85vw); max-height: 260px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; overflow: auto; border: 1px solid #cfd6d7; border-radius: 10px; padding: 10px; background: #fff; box-shadow: 0 12px 28px #1e29301a; }
details a { border-radius: 6px; padding: 7px; text-align: center; text-decoration: none; }
details a:hover, details a[aria-current] { background: #e7eff0; }

article { border: 1px solid #dce1e1; border-radius: 12px; padding: clamp(24px, 4vw, 52px); background: #fff; }
article header > span { color: #66737b; font-size: .7rem; font-weight: 750; letter-spacing: .13em; }
h1 { margin: 10px 0 25px; font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.2; }
dl { display: flex; flex-wrap: wrap; gap: 12px 36px; margin: 0 0 34px; border-bottom: 1px solid #e3e7e7; padding: 0 0 22px; font-size: .84rem; }
dl div { display: flex; gap: 8px; }
dt { color: #69757c; }
dd { margin: 0; font-weight: 650; }
.notice { border-inline-start: 3px solid #7b999d; border-radius: 3px; padding: 12px 16px; background: #f1f5f5; }
.legal-content { overflow-wrap: anywhere; line-height: 1.72; }
.legal-content h1, .legal-content h2, .legal-content h3 { line-height: 1.3; }
.legal-content h2, .legal-content h3 { margin-top: 1.8em; }
.legal-content p, .legal-content ul, .legal-content ol, .legal-content blockquote { margin: 0 0 1.15em; }
.legal-content li + li { margin-top: .4em; }
.legal-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.legal-content td, .legal-content th { border: 1px solid #d7dede; padding: 9px; }

footer { flex-wrap: wrap; margin-top: 26px; font-size: .82rem; }
footer nav, .document-tabs { display: flex; flex-wrap: wrap; gap: 7px 16px; }
footer a, .document-tabs a { text-decoration: none; }
footer a:hover, .document-tabs a:hover { text-decoration: underline; }

body.legal-embedded { min-height: 0; background: #fff; }
.legal-shell-embedded { width: 100%; padding: 18px clamp(16px, 3vw, 34px) 34px; }
.modal-head { align-items: flex-start; margin-bottom: 10px; border-bottom: 1px solid #e3e7e7; padding-bottom: 16px; }
.document-tabs { align-items: center; min-height: 38px; font-size: .82rem; }
.document-tabs a { border-radius: 6px; padding: 8px 9px; color: #52626a; }
.document-tabs a:hover, .document-tabs a[aria-current] { color: #1e2930; background: #edf1f1; text-decoration: none; }
.legal-embedded article { border: 0; border-radius: 0; padding: 22px 0 0; }

@media (max-width: 620px) {
  .legal-shell { padding-inline: 16px; }
  .site-head, footer, .modal-head { align-items: flex-start; flex-direction: column; }
  .modal-head { gap: 12px; }
  .legal-embedded article { padding-top: 15px; }
  dl { display: grid; gap: 8px; }
}
