/* Shared styling for the public legal/contact pages (mentions-legales.html,
   cgv.html, contact.html) — bespoke CSS only, no Tailwind utilities needed
   here (see templates/pages/index.html for the same pattern). */

.legal-page {
  background: var(--cream);
  min-height: 100vh;
}

.legal-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.legal-title {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.15;
  color: var(--charcoal);
  margin: 0 0 8px;
}

.legal-updated {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--warm-gray);
  margin: 0 0 32px;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0 0 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-warm);
}

.legal-nav a {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--warm-gray);
  text-decoration: none;
}

.legal-nav a:hover { color: var(--emerald); }
.legal-nav a[aria-current="page"] { color: var(--emerald); font-weight: 600; }

.legal-section { margin: 0 0 32px; }

.legal-section h2 {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--charcoal);
  margin: 0 0 12px;
}

.legal-section h3 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--charcoal);
  margin: 20px 0 8px;
}

.legal-section p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--charcoal-mid);
  margin: 0 0 12px;
}

.legal-section ul,
.legal-section ol {
  margin: 0 0 12px;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--charcoal-mid);
}

.legal-section li { margin: 0 0 6px; }

.legal-section a {
  color: var(--emerald);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-section a:hover { color: var(--emerald-dark); }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 16px;
  font-size: 14px;
}

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-warm);
  vertical-align: top;
}

.legal-table th {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--warm-gray);
  white-space: nowrap;
}

.legal-footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 24px 56px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--warm-gray);
}

/* ── Contact form ─────────────────────────────────────────────────────── */

.contact-form {
  display: grid;
  gap: 16px;
  max-width: 520px;
  margin: 0 0 12px;
}

.contact-field { display: grid; gap: 6px; }

.contact-field label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--warm-gray);
}

.contact-field input,
.contact-field textarea {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--charcoal);
  background: var(--cream-surf);
  border: 1px solid var(--border-warm);
  border-radius: 4px;
  padding: 10px 12px;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--emerald);
}

.contact-field textarea { resize: vertical; min-height: 140px; }

/* Hidden from sighted users and screen readers; real visitors never see or
   fill this field, so any submitted value marks a bot. */
.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-submit {
  justify-self: start;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--cream);
  background: var(--emerald);
  border: none;
  border-radius: 4px;
  padding: 12px 26px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.contact-submit:hover:not(:disabled) { background: var(--emerald-dark); }
.contact-submit:disabled { opacity: 0.6; cursor: default; }

.contact-status {
  font-size: 14px;
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: 4px;
  margin: 0 0 16px;
  max-width: 520px;
}

.contact-status[hidden] { display: none; }

.contact-status--ok {
  background: rgba(43, 106, 100, 0.08);
  color: var(--emerald-dark);
  border: 1px solid rgba(43, 106, 100, 0.24);
}

.contact-status--error {
  background: rgba(180, 60, 40, 0.08);
  color: #9a3412;
  border: 1px solid rgba(180, 60, 40, 0.24);
}

.contact-direct {
  font-size: 14px;
  color: var(--warm-gray);
  margin: 32px 0 0;
}

.contact-direct a { color: var(--emerald); }

/* ── FAQ accordion ────────────────────────────────────────────────────── */

.faq-item {
  border-bottom: 1px solid var(--border-warm);
  padding: 14px 0;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 18px;
  color: var(--emerald);
  transition: transform 0.15s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item summary:hover { color: var(--emerald); }

.faq-item p {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--charcoal-mid);
}

/* ── 404 ──────────────────────────────────────────────────────────────── */

.not-found-main { text-align: center; padding-top: 72px; }

.not-found-code {
  font-family: var(--serif);
  font-size: 96px;
  font-weight: 700;
  line-height: 1;
  color: var(--emerald);
  margin: 0 0 12px;
}

.not-found-actions { margin: 8px 0 28px; }
.not-found-actions .contact-submit { display: inline-block; text-decoration: none; }

.not-found-main .legal-title,
.not-found-main .legal-updated { text-align: center; }

@media (max-width: 640px) {
  .legal-title { font-size: 28px; }
  .legal-main { padding: 32px 18px 72px; }
  .not-found-code { font-size: 72px; }
}
