* { box-sizing: border-box; }

html { background: #f6f1e8; }

body {
  margin: 0;
  min-height: 100%;
  background: #f6f1e8;
  color: #241c17;
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
}

button, a { font-family: inherit; }

a { color: #7a3330; text-decoration: none; }
a:visited { color: #7a3330; }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 32px 24px 28px;
}

.word, .read h1.word, .operator h2, .doc-title, .state p, #legal h1, #legal h2, #legal h3 {
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-weight: 600;
}

.word {
  margin: 0;
  font-size: 28px;
  line-height: 1.3;
  color: #241c17;
}

.tagline {
  margin: 8px 0 0;
  color: #6b5e53;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
}

.prose { margin-top: 28px; }

.prose p, .operator p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.75;
  color: #241c17;
  font-weight: 400;
  overflow-wrap: break-word;
}

.prose p:last-child { margin-bottom: 0; }

.operator {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #ddd2c3;
}

.operator h2 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.4;
  color: #241c17;
}

.operator p { margin-bottom: 8px; line-height: 1.7; }
.operator p:last-child { margin-bottom: 0; }

.legal-nav {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #ddd2c3;
}

.mail, .legal-nav a, .back a {
  border-bottom: 1px solid rgba(122, 51, 48, .35);
  padding-bottom: 2px;
}

.legal-nav a, .back a {
  display: inline-block;
  margin: 0 28px 8px 0;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 400;
}

.back a { margin-bottom: 0; }

a:focus-visible, button:focus-visible {
  outline: 1px solid #7a3330;
  outline-offset: 3px;
}

.icp {
  margin-top: auto;
  padding-top: 24px;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
}

.icp a, .icp a:visited {
  color: #6b5e53;
  border-bottom: 0;
  padding-bottom: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.page.read { padding-top: 28px; padding-bottom: 8px; }

#legal {
  margin-top: 0;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  color: #241c17;
}

#legal h1 {
  margin: 20px 0 12px;
  font-size: 16px;
  line-height: 1.4;
  color: #241c17;
}

#legal > p:nth-of-type(1),
#legal > p:nth-of-type(2) {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.6;
  color: #6b5e53;
}

#legal p, #legal li {
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  overflow-wrap: break-word;
}

#legal p { margin: 0 0 14px; }

#legal h2 {
  margin: 18px 0 8px;
  font-size: 18px;
  line-height: 1.4;
  color: #241c17;
}

#legal h3 {
  margin: 16px 0 8px;
  font-size: 16px;
  line-height: 1.4;
  color: #241c17;
}

#legal ul { margin: 0 0 14px; padding-left: 1.25em; }
#legal li { margin: 0 0 6px; }
#legal a { color: #7a3330; }

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

#legal table {
  border-collapse: collapse;
  min-width: 36em;
  font-size: 16px;
  line-height: 1.75;
}

#legal th, #legal td {
  border: 1px solid #ddd2c3;
  padding: 8px 10px;
  vertical-align: top;
  text-align: left;
  font-weight: 400;
  color: #241c17;
}

#legal th { font-weight: 600; }

.back {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #ddd2c3;
}

.state {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 24px 32px;
  min-height: 100vh;
}

.state p {
  margin: 0 0 28px;
  text-align: center;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  color: #241c17;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 0;
  border-radius: 24px;
  background: #7a3330;
  color: #f7f1e8;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 400;
  text-decoration: none;
  -webkit-appearance: none;
  appearance: none;
}

a.btn, a.btn:visited { color: #f7f1e8; }

body.state-only {
  min-height: 100vh;
  display: flex;
}

@media (min-width: 561px) {
  .page, .page.read {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 56px 0 64px;
  }
}
