/* SERE — shared site styles (index, privacy, support, terms) */
:root {
  --bg: #0D1311;
  --bg-2: #101815;
  --surface: #16201C;
  --card: #1C2823;
  --line: #2B3A33;
  --text: #E8EEE9;
  --muted: #93A39A;
  --accent: #A6C26B;
  --accent-deep: #769242;
  --amber: #E5A92E;
  --danger: #E0594E;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 5rem; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: "Barlow Condensed", "Inter", system-ui, sans-serif; line-height: 1.08; letter-spacing: .3px; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: min(1100px, 92vw); margin: 0 auto; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--accent); color: #14200A;
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.1rem; letter-spacing: .8px; text-transform: uppercase;
  padding: .75rem 1.5rem; border-radius: 12px;
  text-decoration: none; border: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(166, 194, 107, .25); }
.btn--ghost { background: transparent; color: var(--text); border: 2px solid var(--line); }
.btn--ghost:hover { border-color: var(--accent); box-shadow: none; }

/* ---------- header + nav ---------- */
header.site {
  position: sticky; top: 0; z-index: 30;
  background: rgba(13, 19, 17, .9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.brand {
  display: flex; align-items: center; gap: .6rem;
  font-family: "Barlow Condensed"; font-weight: 700; color: #fff;
  font-size: 1.5rem; letter-spacing: 4px; text-decoration: none; flex: none;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-btn {
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px; flex: none;
  background: rgba(255,255,255,.06); border: 1px solid var(--line);
  border-radius: 10px; cursor: pointer; color: #fff;
}
.nav-btn svg { width: 24px; height: 24px; fill: currentColor; display: block; }

nav.menu { display: flex; align-items: center; gap: 1.6rem; margin-left: auto; }
nav.menu a {
  color: #C5D0C9; text-decoration: none; font-weight: 600; font-size: .92rem;
  padding: .3rem 0; border-bottom: 2px solid transparent; transition: color .15s ease;
}
nav.menu a:hover, nav.menu a[aria-current="page"] { color: var(--accent); }
nav.menu .btn { color: #14200A; border: 0; font-size: 1rem; padding: .55rem 1.1rem; }
nav.menu .btn:hover { color: #14200A; }

@media (max-width: 820px) {
  .nav-btn { display: inline-flex; }
  nav.menu {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  nav.menu a { padding: .95rem 1.2rem; border-bottom: 1px solid rgba(255, 255, 255, .05); }
  nav.menu .btn { margin: .8rem 1.2rem; text-align: center; justify-content: center; }
  .nav-toggle:checked ~ nav.menu { max-height: 460px; }
}

/* ---------- footer ---------- */
footer.site { background: var(--bg-2); border-top: 1px solid var(--line); color: #B5C0B9; padding: 3.5rem 0 2rem; font-size: .93rem; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
footer.site .brand { font-size: 1.3rem; margin-bottom: .6rem; }
footer.site .tag { color: var(--muted); max-width: 32ch; }
footer.site h4 { color: #fff; font-size: .95rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: .9rem; font-weight: 700; }
footer.site ul { list-style: none; }
footer.site li { margin-bottom: .55rem; }
footer.site a { text-decoration: none; color: #B5C0B9; }
footer.site a:hover { color: var(--accent); }
footer.site .fineprint { margin-top: 2.4rem; padding-top: 1.4rem; color: #78867E; font-size: .8rem; border-top: 1px solid var(--line); }
@media (max-width: 700px) {
  footer.site .cols { grid-template-columns: 1fr 1fr; }
  footer.site .cols > div:first-child { grid-column: 1 / -1; }
}

/* ---------- doc pages (privacy / terms / support) ---------- */
.doc { padding: clamp(2.5rem, 7vw, 4.5rem) 0 clamp(3rem, 8vw, 5rem); }
.doc .wrap { width: min(760px, 92vw); }
.doc h1 { font-size: clamp(2.4rem, 7vw, 3.4rem); font-weight: 700; }
.doc .updated { color: var(--muted); margin-top: .5rem; font-size: .95rem; }
.doc h2 { font-size: 1.6rem; font-weight: 700; margin: 2.4rem 0 .8rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.doc h3 { font-size: 1.2rem; font-weight: 700; margin: 1.4rem 0 .5rem; color: #fff; }
.doc p, .doc li { color: #CBD5CE; }
.doc p { margin: .7rem 0; }
.doc ul, .doc ol { margin: .6rem 0 .6rem 1.3rem; }
.doc li { margin: .35rem 0; }
.doc a { color: var(--accent); font-weight: 600; }
.doc .lead { font-size: 1.1rem; color: #DCE4DE; }
.doc .callout {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 12px; padding: 1rem 1.2rem; margin: 1.4rem 0; color: #DCE4DE;
}
.doc .callout.warn { border-left-color: var(--amber); }
.doc table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .95rem; }
.doc th, .doc td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; color: #CBD5CE; }
.doc th { font-family: "Barlow Condensed"; font-size: 1.05rem; color: #fff; letter-spacing: .5px; }

/* FAQ accordion */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.3rem; margin-bottom: .7rem; }
.faq summary {
  font-family: "Barlow Condensed"; font-weight: 700; font-size: 1.2rem; letter-spacing: .3px; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; color: #fff;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details > p, .faq details > ul { margin-top: .7rem; color: #CBD5CE; }
.faq h2 { margin-top: 2.6rem; }
