/* Shared styles for the legal pages (de/fr/it × privacy/terms).
   Brand palette matches the marketing page: felt green + cream. */

:root {
  --bg: #0c1f16;
  --fg: #f3e9cf;
  --muted: #9db3a4;
  --accent: #d9b45c;
  --border: rgba(243, 233, 207, 0.14);
  --card: rgba(255, 255, 255, 0.04);
  --todo-bg: #3a2f10;
  --todo-fg: #f0d998;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.sitebar { max-width: 780px; margin: 0 auto; padding: 44px 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sitebar-brand { display: inline-block; }
.sitebar-brand img { height: 36px; width: auto; display: block; }

/* Support link + language switcher, grouped so they read as one nav cluster. */
.sitebar-right { display: flex; align-items: center; gap: 14px; }
.sitebar-support {
  font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; white-space: nowrap;
}
.sitebar-support:hover { color: var(--fg); }
.sitebar-support[aria-current="true"] { color: var(--accent); }
.sitebar-sep { width: 1px; height: 12px; background: var(--muted); opacity: 0.4; }

/* language switcher */
.langs { display: flex; gap: 14px; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; }
.langs a { color: var(--muted); text-decoration: none; }
.langs a:hover { color: var(--fg); }
.langs a[aria-current="true"] { color: var(--accent); }

.wrap { max-width: 780px; margin: 0 auto; padding: 24px 20px 80px; }

h1 { font-size: 2rem; margin: 24px 0 4px; line-height: 1.2; }
h2 { font-size: 1.25rem; margin: 40px 0 10px; padding-top: 10px; border-top: 1px solid var(--border); }
h3 { font-size: 1.02rem; margin: 22px 0 6px; }

p, li { color: var(--fg); }
a { color: var(--accent); }
.muted { color: var(--muted); }
.lede { font-size: 1.05rem; color: var(--muted); }

ul { padding-left: 22px; }

table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 0.95rem; }
th, td { border: 1px solid var(--border); padding: 9px 11px; text-align: left; vertical-align: top; }
th { background: var(--card); }

code { background: var(--card); padding: 1px 5px; border-radius: 4px; font-size: 0.9em; }

/* Values the owner still has to supply. Remove the span once filled in. */
.todo { background: var(--todo-bg); color: var(--todo-fg); padding: 0 5px; border-radius: 4px; font-weight: 600; }

/* ---- support form ------------------------------------------------------- */
/* Posted to Netlify Forms. No JS: the browser does the POST and Netlify
   redirects to the thank-you page named in the form's `action`. */

.field { margin: 18px 0; }
.field label { display: block; margin-bottom: 6px; font-size: 0.92rem; letter-spacing: 0.02em; }
.field .hint { display: block; margin-top: 5px; font-size: 0.83rem; color: var(--muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 12px;
  background: var(--card);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 7px;
  font: inherit;
  font-size: 0.97rem;
}
.field textarea { min-height: 170px; resize: vertical; }

/* Native select chrome is unstyleable and light-themed, so we draw our own
   caret. Inline SVG (not a file) keeps the page free of extra requests. */
.field select {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%239db3a4' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 12px 8px;
}
/* The native picker list is drawn by the OS and does not inherit the page
   colours, so dark-on-dark would be unreadable there. */
.field select option { background: #14291e; color: var(--fg); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}

.req { color: var(--accent); }

/* Honeypot: hidden from people, visible to bots that fill every input. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

button[type="submit"] {
  margin-top: 8px;
  padding: 12px 26px;
  background: var(--accent);
  color: #1a1408;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
}
button[type="submit"]:hover { filter: brightness(1.08); }
button[type="submit"]:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }

.callout {
  margin: 26px 0;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

footer { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 0.9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--fg); }

@media (max-width: 560px) {
  h1 { font-size: 1.6rem; }
  .sitebar { flex-wrap: wrap; }
}
