/* Shared styles for the secondary pages (privacy, terms, contact).
   Values mirror the landing page in Main.dc.html. */
:root {
  --bg: #0a0f1c;
  --surface: #0f1626;
  --border: #1a2438;
  --border-strong: #2a3753;
  --text: #eef1f7;
  --text-soft: #c3cbdb;
  --muted: #a3aec4;
  --faint: #8592ab;
  --brand: #4c63d2;
  --accent: #e0a526;
  --todo-bg: #2a2110;
  --todo-text: #f3c969;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: #c9d2e3; }
a:hover { color: #ffffff; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: 1240px; margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 40; background: rgba(10, 15, 28, 0.9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border); padding: 0 24px;
}
.site-header .wrap {
  min-height: 76px; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 16px 32px; padding: 12px 0;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand-mark {
  width: 36px; height: 36px; border-radius: 9px; background: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.brand-name { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 15px; }
.site-nav > a:not(.cta) { text-decoration: none; padding: 12px 0; }
.nav-home { display: inline-flex; align-items: center; gap: 6px; color: var(--text) !important; font-weight: 500; }
.cta {
  text-decoration: none; background: var(--accent); color: #1a1204; font-weight: 600;
  font-size: 15px; padding: 10px 18px; border-radius: 8px; min-height: 44px;
  display: inline-flex; align-items: center;
}
.cta:hover { color: #1a1204; filter: brightness(1.08); }

main { padding: 64px 24px 88px; }
.doc { max-width: 760px; margin: 0 auto; }
.eyebrow {
  margin: 0 0 14px; font-family: var(--mono); font-size: 13px;
  letter-spacing: 0.08em; color: var(--faint); text-transform: uppercase;
}
h1 {
  margin: 0 0 16px; font-size: clamp(32px, 4vw, 48px); line-height: 1.1;
  letter-spacing: -0.02em; font-weight: 700; text-wrap: balance;
}
.lead { margin: 0 0 12px; font-size: 18px; color: var(--muted); text-wrap: pretty; }
.updated { margin: 0 0 40px; font-family: var(--mono); font-size: 12px; color: var(--faint); }
h2 { margin: 40px 0 12px; font-size: 22px; font-weight: 600; line-height: 1.3; }
p, li { font-size: 16px; color: var(--text-soft); }
ul { padding-left: 22px; }
li + li { margin-top: 6px; }

/* Placeholder for content still to be written/approved. Grep for "A DEFINIR". */
.todo {
  font-family: var(--mono); font-size: 0.85em; color: var(--todo-text);
  background: var(--todo-bg); border-radius: 4px; padding: 1px 6px;
}
.draft-note {
  margin: 0 0 32px; padding: 12px 16px; border: 1px solid #5a4416; border-radius: 8px;
  background: var(--todo-bg); color: var(--todo-text); font-size: 14px;
}

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; margin-top: 32px; }
.card {
  display: flex; flex-direction: column; gap: 8px; padding: 24px;
  background: var(--surface); border: 1px solid #1e2940; border-radius: 12px;
}
.card h2 { margin: 0; font-size: 18px; }
.card p { margin: 0; font-size: 15px; color: var(--muted); }
.card a.big { font-size: 17px; font-weight: 600; color: var(--text); }

.site-footer { padding: 36px 24px; border-top: 1px solid var(--border); }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px;
}
.site-footer .copy { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--faint); }
.site-footer .copy .brand-mark { width: 28px; height: 28px; border-radius: 7px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; }
.site-footer nav a { text-decoration: none; padding: 12px 0; }
.site-footer nav a[aria-current="page"] { color: var(--text); }

@media (max-width: 760px) {
  .site-nav .nav-item, .site-nav .cta { display: none; }
  main { padding: 48px 16px 64px; }
  .site-header, .site-footer { padding-left: 16px; padding-right: 16px; }
}

/* Contact page */
.contact {
  max-width: 1120px; margin: 0 auto; display: grid; gap: 40px 64px; align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
}
.contact-side { display: grid; gap: 16px; margin-top: 32px; }
.form {
  display: flex; flex-direction: column; gap: 18px; padding: 32px;
  background: var(--surface); border: 1px solid #1e2940; border-radius: 14px;
}
.form h2 { margin: 0 0 4px; font-size: 22px; }
.form-row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; color: #dbe1ec; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; font-size: 15px; color: var(--text);
  background: var(--bg); border: 1px solid var(--border-strong); border-radius: 8px;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field select { 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='12' viewBox='0 0 24 24' fill='none' stroke='%23a3aec4' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.field ::placeholder { color: #5f6b85; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #5b8def; box-shadow: 0 0 0 3px rgba(91, 141, 239, 0.25); }
.field [aria-invalid="true"] { border-color: #f2453a; }
.field-error { margin: 0; font-size: 13px; color: #ff8a65; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; color: var(--text-soft) !important; cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; }
.submit {
  min-height: 50px; font: inherit; font-size: 16px; font-weight: 600; color: #1a1204;
  background: var(--accent); border: 0; border-radius: 8px; cursor: pointer;
}
.submit:hover { filter: brightness(1.08); }
.form-status { margin: 0; padding: 12px 14px; border-radius: 8px; font-size: 14px; background: #12243f; border: 1px solid #24407a; color: #c9d8ff; }
.form-note { margin: 0; font-size: 13px; color: var(--faint); }
