/* Shared style for the legal pages: plain document text, every language. */
:root {
  color-scheme: light dark;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --rule: #e5e5ea;
  --link: #0066cc;
  --bg: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --rule: #38383a;
    --link: #4da3ff;
    --bg: #000000;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

body:lang(zh) {
  font-family: -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

body:lang(ja) {
  font-family: -apple-system, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', Meiryo, sans-serif;
}

body:lang(ko) {
  font-family: -apple-system, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
}

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}

h1 {
  margin: 0 0 4px;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
}

.meta {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 14px;
}

h2 {
  margin: 32px 0 8px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
}

p,
ul,
ol {
  margin: 0 0 12px;
}

ul,
ol {
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

strong {
  font-weight: 600;
}

.table {
  margin: 0 0 16px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}

th,
td {
  padding: 8px 12px 8px 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

th {
  font-weight: 600;
}
