/* Legal pages — Wow Image to Motion (dark theme, standalone from Bool) */
:root {
  color-scheme: dark;
  --bg: #0f0f0f;
  --card: #1a1a1a;
  --card-border: #333;
  --text: #f5f5f5;
  --muted: #a3a3a3;
  --hint: #737373;
  --line: #333;
  --gold: #d4a012;
  --gold-hover: #e6b422;
}

* { box-sizing: border-box; }

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  line-height: 1.6;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding:
    max(32px, env(safe-area-inset-top))
    max(20px, env(safe-area-inset-right))
    max(64px, env(safe-area-inset-bottom))
    max(20px, env(safe-area-inset-left));
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  font-size: 14px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.nav a:hover {
  color: var(--text);
  text-decoration: underline;
}

.nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.nav .brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.card {
  background: var(--card);
  border-radius: 20px;
  padding: 28px 24px 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  border: 1px solid var(--card-border);
}

h1 {
  font-size: clamp(28px, 5vw, 36px);
  line-height: 1.15;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.updated {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 28px;
}

h2 {
  font-size: 18px;
  margin: 28px 0 10px;
  line-height: 1.3;
  color: var(--text);
}

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

p,
li {
  font-size: 15px;
  color: var(--muted);
}

p {
  margin: 0 0 14px;
}

ul,
ol {
  margin: 0 0 14px;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 6px;
}

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

a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--gold-hover);
}

footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--hint);
  text-align: center;
  line-height: 1.6;
}

footer a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: underline;
}

footer a:hover {
  color: var(--text);
}

/* macOS app WebView (?app=1) */
body.embed .nav {
  display: none;
}

body.embed .wrap {
  padding-top: max(16px, env(safe-area-inset-top));
}
