/* Public legal pages of Gacha Focus (privacy, terms, security). */
:root {
  --bg: #0b1020;
  --surface: #121a2e;
  --border: rgba(160, 180, 220, 0.14);
  --text: #eef2fb;
  --muted: #a3afc8;
  --accent: #8b99ff;
  --warn: #f5b84b;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f7fb;
    --surface: #ffffff;
    --border: rgba(20, 30, 60, 0.12);
    --text: #141a2c;
    --muted: #4f5a73;
    --accent: #4453d6;
    --warn: #9a6200;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 32px 16px 64px; }

header.site {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.brand { font-weight: 800; font-size: 18px; color: var(--text); text-decoration: none; }

nav.legal { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }
nav.legal a { color: var(--muted); text-decoration: none; }
nav.legal a[aria-current="page"] { color: var(--accent); font-weight: 700; }
nav.legal a:hover { color: var(--text); }
nav.legal .lang { color: var(--muted); padding-left: 12px; border-left: 1px solid var(--border); }
nav.legal .lang b { color: var(--text); }

h1 { font-size: 30px; line-height: 1.2; margin: 32px 0 4px; }
h2 { font-size: 20px; margin: 36px 0 8px; }
h3 { font-size: 16px; margin: 20px 0 4px; }
.updated { color: var(--muted); font-size: 14px; margin: 0 0 24px; }

a { color: var(--accent); }
code { font-size: 0.9em; padding: 1px 5px; border-radius: 6px; background: var(--surface); border: 1px solid var(--border); overflow-wrap: anywhere; }

.card {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  margin: 16px 0;
}
.card.note { border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.card p:first-child { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 12px 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }

dl.faq dt { font-weight: 700; margin-top: 22px; }
dl.faq dd { margin: 4px 0 0; }

footer.site { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
