.agreement-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #fdf2f8 0%, #fce7f3 50%, #fbcfe8 100%);
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.agreement-header {
  max-width: 720px;
  margin: 0 auto 2rem;
}

.agreement-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.agreement-page .lang-wrap {
  position: relative;
}

.agreement-page .lang-current {
  padding: 0.4rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #831843;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(236, 72, 153, 0.3);
  border-radius: 0.5rem;
  cursor: pointer;
  font-family: inherit;
}

.agreement-page .lang-list {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.25rem;
  padding: 0.25rem 0;
  list-style: none;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(236, 72, 153, 0.2);
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 10rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.agreement-page .lang-wrap.open .lang-list {
  opacity: 1;
  visibility: visible;
}

.agreement-page .lang-list button {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: #1f2937;
}

.agreement-page .lang-list button:hover {
  background: rgba(236, 72, 153, 0.1);
  color: #9d174d;
}

.back-link {
  display: inline-block;
  color: #db2777;
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 1rem;
}

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

.agreement-header h1 {
  font-size: 1.75rem;
  color: #831843;
  margin-bottom: 0.5rem;
}

.update-time {
  font-size: 0.875rem;
  color: #6b7280;
}

.agreement-content {
  max-width: 720px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid rgba(236, 72, 153, 0.15);
  line-height: 1.7;
  color: #1f2937;
}

.agreement-content h2 {
  font-size: 1.125rem;
  color: #9d174d;
  margin: 1.5rem 0 0.5rem;
}

.agreement-content h2:first-of-type {
  margin-top: 0;
}

.agreement-content p {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.permission-list {
  margin: 0.75rem 0 1rem 1.25rem;
  padding: 0;
  list-style: none;
}

.permission-list li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #1f2937;
}

.permission-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #be185d;
  font-weight: 700;
}

.agreement-footer {
  max-width: 720px;
  margin: 2rem auto 0;
  text-align: center;
}

.agreement-footer a {
  color: #db2777;
  text-decoration: none;
  font-weight: 500;
}

.agreement-footer a:hover {
  text-decoration: underline;
}
