/* 2xN reference kit 1.40: privacy, cookie and 404 pages, in the Maison Guillaume Blanc brand.
   Keep the structure; tokens come from css/styles.css. The header is the homepage nav, always solid. */

/* ---- Hero (charcoal olive band under the solid nav) ---- */
.legal-hero { background: var(--bg-dark); color: var(--text-on-dark); padding: calc(88px + var(--s-8)) 0 var(--s-6); }
.legal-hero .eyebrow { color: var(--stone); }
.legal-hero__title {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(2.5rem, 6vw, 4.25rem);
  line-height: 1.05; letter-spacing: 0.01em; color: var(--text-on-dark); margin: 18px 0 16px;
}
.legal-hero__meta { font-size: 0.875rem; color: var(--text-on-dark-muted); margin: 0; }
.legal-hero .draft-tag { vertical-align: middle; margin-left: 10px; }

/* The solid nav is opaque cream here: the see-through version turns grey over the dark hero. */
.nav.is-solid { background: var(--bg); }
.legal-hero .draft-tag, .nf .draft-tag { color: var(--stone); border-color: rgba(178, 172, 136, 0.6); background: rgba(178, 172, 136, 0.14); }

/* ---- Body ---- */
.legal { padding: var(--s-6) 0 var(--s-12); }
.legal__inner { max-width: 760px; }
.legal__intro { font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); line-height: 1.65; color: var(--ink-muted); margin: 0 0 var(--s-3); }
.legal__intro strong { color: var(--ink); }
.legal__flag { border-left: 3px solid var(--stone); background: var(--surface-2); padding: 14px 18px; margin: 0 0 var(--s-4); font-size: 0.9375rem; line-height: 1.6; border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.legal-section { padding: var(--s-4) 0; border-top: 1px solid var(--line); }
.legal-section h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 2.8vw, 2rem); letter-spacing: 0.01em; line-height: 1.2; margin: 0 0 14px; }
.legal-section h3 { font-family: var(--font); font-weight: 600; font-size: 1rem; margin: 20px 0 8px; color: var(--ink-strong); }
.legal-section p { margin: 0 0 14px; line-height: 1.7; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul { margin: 0 0 14px; padding-left: 22px; line-height: 1.7; }
.legal-section li { margin: 0 0 6px; }
.legal-section strong { color: var(--ink-strong); }
.legal-section a { overflow-wrap: anywhere; }
.legal-section .btn { margin-top: 6px; }

/* ---- Cookie table ---- */
.legal-table-wrap { overflow-x: auto; margin: 6px 0 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; min-width: 560px; }
.legal-table th { text-align: left; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); background: var(--surface-2); padding: 10px 14px; }
.legal-table td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.legal-table code { font-family: var(--mono, ui-monospace, monospace); font-size: 0.875em; color: var(--accent); }

/* ---- 404: full-height photograph with the charcoal olive scrim ---- */
.nf { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; color: var(--text-on-dark); padding: calc(88px + var(--s-6)) 0 var(--s-8); isolation: isolate; overflow: hidden; background: var(--bg-dark); }
.nf__img { position: absolute; inset: 0; z-index: -1; }
.nf__img img { width: 100%; height: 100%; object-fit: cover; }
.nf__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(46, 44, 36, 0.88) 0%, rgba(46, 44, 36, 0.66) 55%, rgba(46, 44, 36, 0.3) 100%); }
.nf .eyebrow { color: var(--stone); }
.nf__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.75rem, 7vw, 5rem); line-height: 1.02; letter-spacing: 0.01em; color: var(--text-on-dark); margin: 18px 0 18px; max-width: 14ch; }
.nf .lead { color: var(--text-on-dark-muted); max-width: 46ch; margin: 0 0 var(--s-4); }
.nf__actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 640px) {
  .legal-hero { padding-bottom: var(--s-4); }
  .nf__actions .btn { width: 100%; }
}
