:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #FCFAF7;
  color: #1A1410;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
}

body.page-index {
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

body.page-doc {
  line-height: 1.8;
}

.container {
  margin: 0 auto;
}

.page-index .container {
  max-width: 480px;
  padding: 40px 20px;
  width: 100%;
}

.page-doc .container {
  max-width: 720px;
  padding: 32px 20px 80px;
}

/* — index — */

.badge {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #FBE6D8;
  color: #D3611F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 20px;
}

.page-index h1 {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 6px;
  letter-spacing: -0.3px;
}

.sub {
  text-align: center;
  font-size: 14px;
  color: #7A6F64;
  margin: 0 0 32px;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

a.card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  border: 0.5px solid #E8E2DA;
  border-radius: 16px;
  padding: 18px 20px;
  text-decoration: none;
  color: #1A1410;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.15s ease;
}

a.card:hover {
  background: #F4EFE8;
}

a.card span.arrow {
  color: #8A7F72;
  font-weight: 400;
}

.page-index footer {
  margin-top: 40px;
  text-align: center;
  font-size: 12px;
  color: #8A7F72;
}

/* — doc pages (terms / privacy) — */

.page-doc header {
  margin-bottom: 32px;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: #D3611F;
  text-decoration: none;
  font-size: 14px;
}

.back-link:hover {
  text-decoration: underline;
}

.page-doc h1 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.3px;
}

.meta {
  font-size: 13px;
  color: #7A6F64;
  margin: 0;
}

.page-doc h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 36px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #E8E2DA;
  letter-spacing: -0.2px;
}

.page-doc h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 20px 0 8px;
}

.page-doc p {
  margin: 0 0 14px;
}

.page-doc ul,
.page-doc ol {
  margin: 0 0 14px;
  padding-left: 1.4em;
}

.page-doc li {
  margin-bottom: 6px;
}

.page-doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 16px;
  font-size: 14px;
}

.page-doc th,
.page-doc td {
  text-align: left;
  padding: 10px 12px;
  border: 0.5px solid #E8E2DA;
  vertical-align: top;
}

.page-doc th {
  background: #F4EFE8;
  font-weight: 700;
  white-space: nowrap;
}

.highlight {
  background: #FBE6D8;
  border-left: 3px solid #D3611F;
  padding: 14px 16px;
  border-radius: 8px;
  margin: 0 0 14px;
}

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

.placeholder {
  color: #D14545;
  font-weight: 600;
}

.page-doc footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid #E8E2DA;
  font-size: 13px;
  color: #7A6F64;
}

.page-doc a {
  color: #D3611F;
}
