/* The public Privacy Policy and Terms of Use pages (/privacy, /terms): plain HTML, no script, readable without signing in. */
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --border: #dde1e8;
  --text: #19202d;
  --text-2: #4a5568;
  --accent: #3643d1;
  --accent-text: #2a35ad;
  --accent-soft: #eaecfd;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1320;
    --surface: #161c2c;
    --surface-2: #1d2436;
    --border: #2c3550;
    --text: #e8ecf5;
    --text-2: #b4bdd0;
    --accent: #7c88ff;
    --accent-text: #a9b2ff;
    --accent-soft: #232b55;
  }
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
a {
  color: var(--accent-text);
}
a:hover {
  text-decoration-thickness: 2px;
}

.top {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.top-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.brand img {
  width: 34px;
  height: 34px;
}
.brand small {
  display: block;
  font-weight: 400;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.2;
}
.top nav {
  margin-left: auto;
  display: flex;
  gap: 16px;
  font-size: 14px;
}
.top nav a[aria-current='page'] {
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
}

main {
  max-width: 820px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}
h1 {
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.updated {
  color: var(--text-2);
  margin: 0 0 24px;
  font-size: 14px;
}
.lead {
  font-size: 17px;
}
h2 {
  font-size: 21px;
  line-height: 1.3;
  margin: 40px 0 10px;
  padding-top: 8px;
  scroll-margin-top: 16px;
}
h3 {
  font-size: 17px;
  margin: 24px 0 6px;
}
p,
ul,
ol {
  margin: 0 0 14px;
}
li {
  margin-bottom: 6px;
}

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 24px 0 8px;
}
.toc strong {
  display: block;
  margin-bottom: 6px;
}
.toc ol {
  margin: 0;
  padding-left: 22px;
  columns: 2 260px;
  column-gap: 32px;
}
.toc li {
  margin-bottom: 4px;
  break-inside: avoid;
}

.note {
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 16px 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
tr:last-child td {
  border-bottom: 0;
}
th {
  background: var(--surface-2);
  font-weight: 600;
}

footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.foot-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 18px 16px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-2);
}
.foot-inner span {
  margin-right: auto;
}

@media (max-width: 560px) {
  h1 {
    font-size: 26px;
  }
  .top nav {
    margin-left: 0;
    width: 100%;
  }
}
@media print {
  .top nav,
  footer,
  .toc {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
}
