/* Shared styling for the static legal pages (/privacy, /terms). Kept separate from
   the app bundle so these pages render without JavaScript and stay indexable. */
:root {
  --bg: #ece7df;
  --panel: #ffffff;
  --panel-2: #f3efe7;
  --text: #1b1a17;
  --muted: #6f6a62;
  --ink: #17161a;
  --ink-soft: rgba(23, 22, 26, 0.18);
  --accent: #f2b233;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC',
    'Microsoft YaHei', sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font);
}
.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 1.5rem 1.2rem 4rem;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.brand {
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}
.lang-switch {
  display: flex;
  gap: 0.4rem;
}
.lang-switch a {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
}
.lang-switch a:hover {
  background: var(--accent);
}
article {
  background: var(--panel);
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 6px 6px 0 var(--ink);
  padding: 1.6rem 1.8rem;
  margin-bottom: 2.2rem;
}
article + article {
  margin-top: 2.5rem;
}
h1 {
  font-size: 1.9rem;
  line-height: 1.2;
  margin: 0 0 0.3rem;
}
h2 {
  font-size: 1.2rem;
  margin: 1.8rem 0 0.5rem;
  padding-top: 1rem;
  border-top: 2px solid var(--ink-soft);
}
h3 {
  font-size: 1rem;
  margin: 1.1rem 0 0.3rem;
}
p,
li {
  margin: 0.45rem 0;
}
ul {
  padding-left: 1.3rem;
}
.meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}
.note {
  background: var(--panel-2);
  border: 2px solid var(--ink-soft);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  margin: 1rem 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.8rem 0;
  font-size: 0.95rem;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.5rem 0.6rem;
  border: 2px solid var(--ink-soft);
}
th {
  background: var(--panel-2);
}
a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
code {
  font-size: 0.9em;
  background: var(--panel-2);
  padding: 0.05rem 0.35rem;
  border-radius: 6px;
}
footer {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}
footer a {
  color: var(--muted);
}
@media (max-width: 600px) {
  article {
    padding: 1.2rem 1rem;
    box-shadow: 4px 4px 0 var(--ink);
  }
  h1 {
    font-size: 1.5rem;
  }
}
