/* Onsei App Store legal / marketing pages — no external dependencies */

:root {
  --bg: #0c0e12;
  --bg-elevated: #141820;
  --panel: #1a1f2a;
  --border: rgba(255, 255, 255, 0.08);
  --text: #eef1f6;
  --text-secondary: #a8b0c0;
  --text-muted: #7a8496;
  --accent: #6ea8ff;
  --accent-soft: rgba(110, 168, 255, 0.12);
  --warn: #f0c674;
  --danger-soft: rgba(240, 120, 100, 0.12);
  --radius: 12px;
  --max: 720px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header / nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(12, 14, 18, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand:hover {
  text-decoration: none;
  color: var(--accent);
}

.brand span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  font-size: 0.9rem;
}

.nav a {
  color: var(--text-secondary);
}

.nav a[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
}

/* Main */

main {
  padding: 2rem 0 3.5rem;
}

.hero {
  margin-bottom: 2.25rem;
  padding: 1.75rem 1.35rem;
  background: linear-gradient(145deg, var(--panel), var(--bg-elevated));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
}

.hero h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.65rem, 4.5vw, 2.1rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.hero .lead {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.02rem;
}

.meta {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.page-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  line-height: 1.3;
}

.page-sub {
  margin: 0 0 1.75rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Sections */

section {
  margin-bottom: 2rem;
}

h2 {
  margin: 0 0 0.75rem;
  padding-bottom: 0.4rem;
  font-size: 1.15rem;
  border-bottom: 1px solid var(--border);
}

h3 {
  margin: 1.25rem 0 0.45rem;
  font-size: 1rem;
  color: var(--text);
}

p,
ul,
ol {
  margin: 0 0 0.9rem;
  color: var(--text-secondary);
}

ul,
ol {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.35rem;
}

li::marker {
  color: var(--text-muted);
}

strong {
  color: var(--text);
  font-weight: 600;
}

/* Cards / panels */

.grid {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 560px) {
  .grid.cols-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  padding: 1.1rem 1.15rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 0.98rem;
}

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

.note {
  padding: 0.95rem 1.1rem;
  background: var(--accent-soft);
  border: 1px solid rgba(110, 168, 255, 0.22);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.note.warn {
  background: var(--danger-soft);
  border-color: rgba(240, 120, 100, 0.28);
}

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

/* FAQ */

details.faq {
  margin-bottom: 0.55rem;
  padding: 0.85rem 1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

details.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style-position: outside;
}

details.faq[open] summary {
  margin-bottom: 0.55rem;
}

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

/* Buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #0a0c10;
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--panel);
  color: var(--accent);
}

/* Legal article numbering */

.legal article {
  margin-bottom: 1.5rem;
}

.legal h2 {
  font-size: 1.05rem;
}

.legal p,
.legal li {
  font-size: 0.95rem;
}

.toc {
  margin-bottom: 1.75rem;
  padding: 1rem 1.15rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.toc h2 {
  margin: 0 0 0.55rem;
  padding: 0;
  border: 0;
  font-size: 0.95rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.9rem;
}

.toc a {
  color: var(--text-secondary);
}

.toc a:hover {
  color: var(--accent);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2.25rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.site-footer .inner {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.site-footer a {
  color: var(--text-secondary);
}

.disclaimer-foot {
  margin-top: 0.25rem;
  line-height: 1.55;
}

/* Utilities */

.muted {
  color: var(--text-muted);
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

table.simple {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

table.simple th,
table.simple td {
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

table.simple th {
  background: var(--panel);
  color: var(--text);
  font-weight: 600;
  width: 32%;
}

table.simple td {
  color: var(--text-secondary);
}

@media (max-width: 480px) {
  table.simple th {
    width: 38%;
  }
}
