:root { color-scheme: light; --ink: #333; --muted: #666; --line: #dedfe0; --paper: #fbfbfb; }
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; scrollbar-color: #999 var(--paper); }
body { min-height: 100vh; min-height: 100svh; margin: 0; display: flex; flex-direction: column; color: var(--ink); background: var(--paper); font: 17px/1.75 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
::selection { background: #444; color: white; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; overflow-wrap: anywhere; }
a:hover { color: #111; }
a:focus-visible { outline: 2px solid #555; outline-offset: 5px; border-radius: 2px; }
.skip-link { position: absolute; top: 12px; left: 12px; transform: translateY(-200%); background: white; padding: 8px 16px; z-index: 2; }
.skip-link:focus { transform: none; }
.legal-header { width: min(100% - 72px, 1500px); margin-inline: auto; min-height: 99px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); padding-block: 12px; }
.legal-header img { display: block; width: 185px; height: 74px; object-fit: contain; }
.back-link { font-size: 14px; text-align: right; }
main { width: 100%; max-width: 860px; flex: 1 0 auto; margin: 64px auto 0; padding-inline: 24px; }
h1 { font-size: clamp(32px, 4.8vw, 48px); line-height: 1.12; letter-spacing: -.035em; margin: 0 0 22px; font-weight: 750; text-wrap: balance; overflow-wrap: break-word; }
.lead { font-size: 20px; line-height: 1.6; color: var(--muted); margin: 0 0 20px; }
.version { font-size: 13px; color: var(--muted); }
.draft-note { margin-block: 32px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 12px; font-size: 15px; background: #f2f2f2; }
.draft-note p { margin: 6px 0 0; }
.contents { padding-block: 8px 28px; border-bottom: 1px solid var(--line); }
.contents h2 { font-size: 20px; margin: 0 0 16px; }
.contents ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.contents a { font-size: 15px; }
section { margin-top: 44px; }
h2 { font-size: clamp(23px, 3vw, 29px); line-height: 1.3; letter-spacing: -.02em; margin: 0 0 20px; font-weight: 700; text-wrap: balance; }
h3 { font-size: 19px; line-height: 1.4; margin: 28px 0 12px; }
p { margin: 0 0 18px; }
section.operator-details { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
li { padding-left: 3px; margin-bottom: 6px; }
ul { padding-left: 24px; }
dl { margin: 24px 0; padding-block: 22px; border-block: 1px solid var(--line); }
dt { font-size: 13px; color: var(--muted); margin-top: 18px; }
dt:first-child { margin-top: 0; }
dd { margin: 3px 0 0; overflow-wrap: anywhere; }
mark { color: var(--ink); background: #e7e7e7; padding: 2px 5px; font-weight: 650; }
.legal-footer { width: min(calc(100% - 72px), 1500px); border-top: 1px solid var(--line); margin: auto; padding: 28px 0 36px; display: flex; justify-content: center; flex-wrap: wrap; gap: 16px 32px; text-align: center; font-size: 13px; color: var(--muted); }
.legal-footer span { flex-basis: 100%; font-size: 11px; letter-spacing: .12em; }
@media (max-width: 560px) {
 body { font-size: 16px; line-height: 1.7; }
 .legal-header { width: calc(100% - 32px); min-height: 80px; gap: 18px; }
 .legal-header img { width: 132px; height: 53px; }
 .back-link { font-size: 13px; }
 main { margin: 40px auto 0; padding-inline: 20px; }
 .lead { font-size: 18px; }
 .draft-note { padding: 18px; }
 section { margin-top: 36px; }
 .legal-footer { width: calc(100% - 40px); margin-inline: auto; flex-direction: column; gap: 18px; }
}
@media print {
 body { background: white; font-size: 11pt; }
 .legal-header, .contents, .legal-footer, .skip-link { display: none; }
 main { margin: 0; padding: 0; max-width: none; }
 h1 { font-size: 25pt; }
 h2 { font-size: 16pt; break-after: avoid; }
 h3 { break-after: avoid; }
 section { margin-top: 24pt; }
 a { text-decoration: none; }
}

@media screen {
  html[data-theme="dark"] {
    color-scheme:dark;
    --ink:#e6e9eb; --muted:#b9c1c6; --line:#393d40; --paper:#191b1d;
  }
  html[data-theme="dark"] .legal-header img {filter:brightness(0) invert(.92)}
  html[data-theme="dark"] a:hover {color:#fff}
  html[data-theme="dark"] a:focus-visible {outline-color:#a8c9dd}
  html[data-theme="dark"] :is(.draft-note,.skip-link,mark) {background:#2a2d30}
}
@media print {
  html[data-theme] {--ink:#333;--muted:#666;--line:#dedfe0;--paper:white;color-scheme:light}
  html[data-theme] body.legal-page {background:white;color:#333}
}
