/* Charm Box — shared styles for in-app legal pages (privacy / terms) */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", "PingFang SC", sans-serif;
  padding: 20px;
  line-height: 1.65;
  color: #333;
  font-size: 15px;
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
}
.brand-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 0 1rem 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #fffdf5 0%, #fff7e8 55%, #ffefe3 100%);
  border: 1px solid #f4dfc8;
  box-shadow: 0 6px 18px rgba(180, 120, 60, 0.14);
}
.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.25);
  user-select: none;
}
.brand-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem;
}
.brand-name {
  font-size: 1.02rem;
  font-weight: 700;
  color: #312e81;
  line-height: 1.2;
}
.brand-subtitle {
  font-size: 0.78rem;
  color: #5b5fc7;
  line-height: 1.2;
}
h1 {
  font-size: 1.35rem;
  color: #1d1d1f;
  margin: 0 0 0.5rem 0;
}
h2 {
  font-size: 1.1rem;
  margin-top: 1.75rem;
  color: #4338ca;
  font-weight: 600;
  border-left: 4px solid #6366f1;
  padding-left: 0.75rem;
}
h3 {
  font-size: 0.95rem;
  margin-top: 1rem;
  color: #4f46e5;
  font-weight: 600;
}
p {
  margin: 0.5rem 0;
}
ul {
  margin: 0.35rem 0 0.75rem 0;
  padding-left: 1.25rem;
}
li {
  margin-bottom: 0.35rem;
}
p.indent {
  padding-left: 1.25rem;
  color: #555;
}
p.note {
  padding: 0.75rem 1rem;
  background: rgba(99, 102, 241, 0.08);
  border-left: 3px solid #6366f1;
  border-radius: 6px;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #4f46e5;
}
.brand {
  font-style: italic;
  font-weight: 600;
  color: #4338ca;
}
.highlight {
  font-weight: 600;
  color: #b45309;
}
.bold {
  font-weight: 600;
  color: #1e1b4b;
}
.update {
  text-align: right;
  font-size: 0.85rem;
  color: #86868b;
  font-style: italic;
  margin-bottom: 1.5rem;
}
.agreement-close {
  text-align: center;
  margin-top: 2rem;
  padding: 1.25rem;
  background: rgba(99, 102, 241, 0.06);
  border-radius: 12px;
  font-style: italic;
  color: #4f46e5;
}
a.legal-link {
  color: #6366f1;
  text-decoration: none;
}
a.legal-link:hover {
  text-decoration: underline;
}
.block {
  margin-bottom: 1.5rem;
}
.sub {
  margin: 0.5rem 0 0.75rem 0.5rem;
}
.legal-lang {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-bottom: 1rem;
  padding: 0.6rem 1rem;
  background: rgba(99, 102, 241, 0.08);
  border-radius: 10px;
  font-size: 0.9rem;
}
.legal-lang a {
  color: #4338ca;
  text-decoration: none;
  font-weight: 500;
}
.legal-lang a.is-active {
  color: #312e81;
  font-weight: 700;
  pointer-events: none;
}
.legal-lang .sep {
  color: #999;
  user-select: none;
}
