/* Legal / contact pages */

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.nav-simple {
  padding: 18px max(env(safe-area-inset-right), 24px);
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-glyph {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}
.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}
.gradient-text {
  background: linear-gradient(135deg, #ff6ec4, #7873f5);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.legal-wrap {
  flex: 1;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 24px 60px;
}

.legal-tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  margin-bottom: 24px;
  overflow-x: auto;
}
.legal-tabs a {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.legal-tabs a:hover { color: var(--text) }
.legal-tabs a.active { background: var(--glass-strong); color: var(--text) }

.legal-doc h1 {
  margin: 0 0 6px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.legal-doc h2 {
  margin: 30px 0 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.legal-doc p {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-dim);
}
.legal-doc ul {
  margin: 0 0 12px;
  padding-left: 20px;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.65;
}
.legal-doc ul li { margin-bottom: 6px }
.legal-doc a {
  color: #bdc6ff;
  text-decoration: none;
  border-bottom: 1px solid rgba(189,198,255,.3);
}
.legal-doc strong { color: var(--text); font-weight: 600 }
.dim { color: var(--text-faint); font-size: 12px; font-weight: 500 }

.hidden { display: none !important }

.foot-simple {
  padding: 24px max(env(safe-area-inset-right), 24px) max(env(safe-area-inset-bottom), 24px);
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}
.foot-simple a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  display: inline-block;
}
.foot-simple a:hover { color: var(--text) }
