/* CFO Simulator: support and privacy pages. Same colours as the game (Studio design). */
:root {
  color-scheme: light;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --page: #F7F8FA;
  --surface: #FFFFFF;
  --surface-2: #F3F5F8;
  --line: #E3E6EB;
  --line-strong: #CDD2D9;
  --text: #14171C;
  --text-2: #4B5260;
  --text-3: #5F6673;
  --accent: #1A7157;
  --accent-hover: #156049;
  --on-accent: #FFFFFF;
  --accent-soft: #E8F3EE;
  --neg: #C8302A;
  --neg-soft: #FCEDEB;
  --pos: #15803D;
  --pos-soft: #EEF7F1;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #0E1116;
    --surface: #161A21;
    --surface-2: #1C212A;
    --line: #2A303A;
    --line-strong: #3A414D;
    --text: #EDEFF3;
    --text-2: #B4BAC5;
    --text-3: #9AA1AD;
    --accent: #3DB38C;
    --accent-hover: #52C49D;
    --on-accent: #06140F;
    --accent-soft: #12302A;
    --neg: #F2766F;
    --neg-soft: #3A1B1A;
    --pos: #4ACB7E;
    --pos-soft: #12301F;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }

header.site { border-bottom: 1px solid var(--line); background: var(--surface); }
header.site .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 650; font-size: 17px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
header.site nav { margin-left: auto; display: flex; gap: 16px; font-size: 15px; }
header.site nav a { color: var(--text-2); text-decoration: none; padding: 6px 0; }
header.site nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

main { padding: 32px 0 48px; }
h1 { font-size: 30px; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 8px; }
h2 { font-size: 20px; line-height: 1.3; margin: 36px 0 10px; letter-spacing: -0.01em; }
h3 { font-size: 16px; margin: 20px 0 4px; }
p, ul { margin: 0 0 12px; }
ul { padding-left: 22px; }
li { margin-bottom: 6px; }
.lead { color: var(--text-2); font-size: 17px; margin-bottom: 20px; }
.muted { color: var(--text-3); font-size: 14px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin: 16px 0; }

/* Questions and answers */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin: 10px 0; }
summary { cursor: pointer; padding: 14px 16px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--text-3); font-weight: 400; font-size: 20px; line-height: 1; }
details[open] summary::after { content: "–"; }
details > div { padding: 0 16px 6px; color: var(--text-2); }

/* Contact form */
form label { display: block; font-weight: 600; font-size: 15px; margin: 14px 0 6px; }
form .opt { font-weight: 400; color: var(--text-3); }
input, select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 11px 12px; min-height: 46px;
}
textarea { min-height: 150px; resize: vertical; }
select {
  -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238A919C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.count { text-align: right; font-size: 13px; color: var(--text-3); margin-top: 4px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
button.primary {
  margin-top: 18px; width: 100%; min-height: 50px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 650; font-size: 17px;
}
button.primary:hover { background: var(--accent-hover); }
button.primary:disabled { opacity: .6; cursor: default; }
.status { margin-top: 12px; padding: 10px 12px; border-radius: 10px; display: none; }
.status.show { display: block; }
.status.bad { background: var(--neg-soft); color: var(--neg); }
.status.good { background: var(--pos-soft); color: var(--pos); }

footer.site { border-top: 1px solid var(--line); padding: 20px 0 32px; color: var(--text-3); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer.site a { color: var(--text-2); }

@media (max-width: 480px) {
  h1 { font-size: 26px; }
  header.site .wrap { min-height: 56px; }
}
