/* Shared styles for legal/help pages — privacy.html, terms.html, license.html, help.html, cookies.html */
:root {
  --bg: #f3f1fa;
  --paper: #fff;
  --ink: #1a1730;
  --muted: #6b6585;
  --accent: #7c5cfc;
  --line: #e5e0f3;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 760px; margin: 0 auto; padding: 40px 24px 80px; }
.header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.header img { width: 48px; height: 48px; border-radius: 12px; }
.header h1 {
  font-family: "Instrument Serif", serif;
  font-size: 32px;
  margin: 0;
  font-weight: 400;
}
.header p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.back-link:hover { text-decoration: underline; }
.lang-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding: 4px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  width: fit-content;
}
.lang-tab {
  padding: 6px 14px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  font-family: inherit;
}
.lang-tab.active { background: var(--accent); color: #fff; }
.content section { display: none; }
.content section.active { display: block; }
h2 {
  font-family: "Instrument Serif", serif;
  font-size: 26px;
  margin: 36px 0 12px;
  font-weight: 400;
}
h3 { font-size: 17px; margin: 24px 0 8px; font-weight: 600; }
p, ul, ol { font-size: 15px; color: #2a2545; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }
a { color: var(--accent); }
.badge {
  display: inline-block;
  padding: 4px 10px;
  background: linear-gradient(135deg, rgba(124, 92, 252, 0.12), rgba(124, 92, 252, 0.04));
  border: 1px solid rgba(124, 92, 252, 0.3);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
}
.highlight {
  background: linear-gradient(135deg, rgba(124, 92, 252, 0.08), rgba(124, 92, 252, 0.02));
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  border-radius: 8px;
  margin: 18px 0;
  font-size: 15px;
}
.highlight strong { color: var(--accent); }
.footer-note {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
details {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 10px 0;
  background: var(--paper);
}
details[open] { background: color-mix(in srgb, var(--accent) 5%, var(--paper)); }
summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
summary::after {
  content: "+";
  font-size: 20px;
  color: var(--accent);
  font-weight: 400;
}
details[open] summary::after { content: "−"; }
pre {
  background: #f7f5fd;
  border: 1px solid var(--line);
  padding: 14px 18px;
  border-radius: 8px;
  overflow-x: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  line-height: 1.5;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0d1d;
    --paper: #1a1730;
    --ink: #e8e4f5;
    --muted: #9a92b5;
    --line: #2a2545;
  }
  p, ul, ol { color: var(--ink); }
  pre { background: #221f3a; }
}
