/* Design tokens and page shape follow the other legal/support pages on app.kei.kyoto so the
   two apps read as one site. No webfonts: Unica77 there is licensed per-domain and the Noto
   Sans JP files are ~5.5 MB each, which a policy page does not need. */
:root {
  --bg: #f2f2f2;
  --ink: #141414;
  --muted: #5c5f66;
  --link: #0b5c7a;
  --line: #dcdcdc;
  --card: #ffffff;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}
a { color: var(--link); }

header.top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.25rem;
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 1rem;
  border-bottom: 1px solid var(--line);
}
header.top .brand { font-weight: 600; text-decoration: none; color: var(--ink); }
header.top .nav { margin-right: auto; }
header.top .nav a { margin-right: 1rem; text-decoration: none; }
header.top .nav a:hover { text-decoration: underline; }
header.top .lang { font-size: 0.85rem; letter-spacing: 0.04em; }
header.top .lang a { text-decoration: none; }
header.top .lang a.current { color: var(--ink); font-weight: 600; }
header.top .lang span { color: var(--muted); margin: 0 0.4rem; }

main { max-width: 44rem; margin: 0 auto; padding: 2rem 1.25rem 3rem; counter-reset: entry; }
main h1 { font-size: 1.7rem; line-height: 1.35; margin: 0 0 0.5rem; }
/* The policy's "Last updated" line, which the source files put directly after the title. */
main h1 + p { color: var(--muted); font-size: 0.92rem; margin-top: 0; }
main h2 {
  counter-increment: entry;
  font-size: 1.1rem;
  margin: 2.25rem 0 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
main h2::before {
  content: counter(entry);
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
}
main h3 { font-size: 1rem; margin: 1.5rem 0 0.25rem; }
main ul { padding-left: 1.25rem; }
main li { margin: 0.25rem 0; }
main p, main li { overflow-wrap: anywhere; }
main code {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  font-size: 0.9em;
}
main hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

footer.foot {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}
