*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --max-width: 680px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #fff;
  color: #1a1a1a;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #1a6b4f;
  text-decoration: underline;
}

a:hover {
  color: #134d39;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ── Index page ── */
.site-header {
  margin-bottom: 40px;
}

.site-header h1 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 4px;
}

.site-header p {
  font-size: 15px;
  color: #666;
}

.app-list {
  list-style: none;
}

.app-list li {
  border-bottom: 1px solid #e5e5e5;
}

.app-list li:first-child {
  border-top: 1px solid #e5e5e5;
}

.app-list a {
  display: block;
  padding: 16px 0;
  text-decoration: none;
  color: #1a1a1a;
  transition: color 0.15s;
}

.app-list a:hover {
  color: #1a6b4f;
}

.app-list .app-name {
  font-size: 16px;
  font-weight: 600;
}

.app-list .app-desc {
  font-size: 14px;
  color: #666;
  margin-top: 2px;
}

/* ── Legal document page ── */
.doc-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e5e5;
}

.doc-header h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.doc-header .doc-app {
  font-size: 15px;
  color: #666;
  margin-bottom: 8px;
}

.doc-header .doc-date {
  font-size: 13px;
  color: #999;
}

.doc-back {
  display: inline-block;
  font-size: 14px;
  color: #666;
  text-decoration: none;
  margin-bottom: 24px;
}

.doc-back:hover {
  color: #1a6b4f;
}

.doc-back::before {
  content: "\2190\00a0";
}

/* ── Legal body content ── */
.doc-body p {
  font-size: 15px;
  color: #333;
  margin-bottom: 16px;
}

.doc-body h2 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 36px;
  margin-bottom: 12px;
}

.doc-body h3 {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin-top: 20px;
  margin-bottom: 8px;
}

.doc-body ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.doc-body ul li {
  font-size: 15px;
  color: #333;
  margin-bottom: 6px;
}

.doc-body strong {
  font-weight: 600;
  color: #1a1a1a;
}

.doc-body a {
  color: #1a6b4f;
}

.doc-body hr {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 36px 0;
}

/* ── Nav links (index page of app) ── */
.doc-nav {
  list-style: none;
  margin-bottom: 40px;
  padding: 0;
}

.doc-nav li {
  border-bottom: 1px solid #e5e5e5;
}

.doc-nav li:first-child {
  border-top: 1px solid #e5e5e5;
}

.doc-nav a {
  display: block;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 500;
  color: #1a1a1a;
  text-decoration: none;
}

.doc-nav a:hover {
  color: #1a6b4f;
}

.doc-nav .nav-desc {
  font-weight: 400;
  color: #999;
  margin-left: 8px;
  font-size: 13px;
}

/* ── Footer ── */
.doc-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #e5e5e5;
  font-size: 13px;
  color: #999;
}

.doc-footer a {
  color: #999;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .container {
    padding: 32px 20px 60px;
  }

  .doc-header h1 {
    font-size: 21px;
  }

  .doc-body h2 {
    font-size: 17px;
  }
}
