/* ── Standalone legal documents: always light parchment (never dark hero theme) ── */
body.legal-doc-page {
  background: var(--bg-paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  min-height: 100vh;
}

body.legal-doc-page::before {
  opacity: 0.025;
  mix-blend-mode: multiply;
}

body.legal-doc-page ::selection {
  background: rgba(196, 92, 38, 0.22);
  color: var(--ink);
}

body.legal-doc-page a {
  color: #8a3b12;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.legal-doc-page a:hover {
  color: #c45c26;
}

body.legal-doc-page .legal-page {
  color: var(--ink);
}

body.legal-doc-page .legal-page h1 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
}

body.legal-doc-page .legal-doc-kicker {
  color: var(--ink-2);
  opacity: 1;
  font-weight: 700;
}

body.legal-doc-page .legal-doc-meta {
  color: var(--ink-2);
  opacity: 1;
  line-height: 1.5;
}

body.legal-doc-page .legal-doc-section h2,
body.legal-doc-page .legal-doc-h3 {
  color: var(--ink);
  font-weight: 700;
}

body.legal-doc-page .legal-doc-section p,
body.legal-doc-page .legal-doc-section li {
  color: var(--ink);
}

body.legal-doc-page .legal-doc-table th {
  background: rgba(21, 17, 13, 0.06);
  color: var(--ink);
}

body.legal-doc-page .legal-doc-table td {
  color: var(--ink-2);
}

body.legal-doc-page .legal-doc-quote {
  border-left-color: rgba(21, 17, 13, 0.25);
  color: var(--ink-2);
  background: rgba(21, 17, 13, 0.04);
}

body.legal-doc-page .legal-doc-footer-links a {
  color: #8a3b12;
  font-weight: 500;
}

body.legal-doc-page .legal-footer {
  border-top-color: rgba(21, 17, 13, 0.12);
  color: var(--ink-2);
}

body.legal-doc-page .legal-footer-nav a {
  color: var(--ink);
  font-weight: 500;
}

body.legal-doc-page .legal-footer-registration {
  color: var(--ink-3);
  opacity: 1;
}

@media (max-width: 640px) {
  body.legal-doc-page {
    font-size: 1.0625rem;
    line-height: 1.6;
  }

  body.legal-doc-page .legal-page {
    padding: 1.25rem max(1rem, env(safe-area-inset-left)) 2.5rem;
  }

  body.legal-doc-page .legal-page h1 {
    font-size: 1.5rem;
  }

  body.legal-doc-page .legal-doc-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 0.8125rem;
  }
}

/* ── Site footer legal links on dark landing (React app) ── */
body.path-talent .legal-footer,
body:not(.path-hiring) .legal-footer {
  color: var(--paper);
}

.legal-footer {
  margin-top: 3rem;
  padding: 2rem 1.25rem 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.legal-footer-project {
  margin: 0 0 0.75rem;
  font-weight: 500;
}

/* Project line must stay readable on dark landing (talent) and light hiring path */
body.path-talent .legal-footer-project,
body:not(.path-hiring):not(.legal-doc-page) .legal-footer-project {
  color: var(--paper);
  opacity: 1;
}

body.path-talent .legal-footer-project a,
body:not(.path-hiring):not(.legal-doc-page) .legal-footer-project a {
  color: var(--paper);
  font-weight: 600;
}

body.path-hiring .legal-footer {
  color: var(--ink);
  border-top-color: rgba(21, 17, 13, 0.12);
}

body.path-hiring .legal-footer-project,
body.path-hiring .legal-footer-nav a {
  color: var(--ink);
  font-weight: 500;
}

body.path-hiring .legal-footer-project a {
  color: var(--ink);
  font-weight: 600;
}

body.path-hiring .legal-footer-registration {
  color: var(--ink-2);
  opacity: 1;
}

body.legal-doc-page .legal-footer-project {
  color: var(--ink-2);
}

.legal-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}

.legal-footer-nav a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-footer-registration {
  margin: 0;
  font-size: 0.75rem;
  opacity: 0.85;
}

body.path-talent .legal-footer-registration,
body:not(.path-hiring):not(.legal-doc-page) .legal-footer-registration {
  color: var(--paper);
  opacity: 0.92;
}

body.path-talent .legal-footer-nav a,
body:not(.path-hiring):not(.legal-doc-page) .legal-footer-nav a {
  color: var(--paper);
  font-weight: 500;
}

.legal-page {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  line-height: 1.65;
}

.legal-page h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.legal-page h2 {
  font-size: 1.125rem;
  margin: 1.75rem 0 0.75rem;
}

.legal-page .legal-meta {
  font-size: 0.875rem;
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 1rem 1.25rem;
  background: #f5f1eb;
  color: #15110d;
  border-top: 1px solid #d8d0c4;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
}

.cookie-banner-inner {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.8125rem;
  flex: 1 1 16rem;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.cookie-banner button {
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font: inherit;
}

.cookie-banner-accept {
  background: #c45c26;
  color: #fff;
}

.cookie-banner-reject {
  background: transparent;
  color: #15110d;
  border: 1px solid #d8d0c4;
}

.legal-doc-header {
  margin-bottom: 1.5rem;
}

.legal-doc-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
  margin: 0 0 0.5rem;
}

.legal-doc-meta {
  font-size: 0.875rem;
  opacity: 0.85;
  margin: 0.5rem 0 0;
}

.legal-doc-section {
  margin-bottom: 1.5rem;
}

.legal-doc-section h2 {
  font-size: 1.125rem;
  margin: 0 0 0.75rem;
}

.legal-doc-h3 {
  font-size: 1rem;
  margin: 1rem 0 0.5rem;
}

.legal-doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 1rem 0;
}

.legal-doc-table th,
.legal-doc-table td {
  border: 1px solid rgba(21, 17, 13, 0.16);
  padding: 0.5rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.legal-doc-table th {
  font-weight: 700;
}

.legal-doc-quote {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--color-border, #ccc);
  font-size: 0.9375rem;
}

.legal-doc-footer-note,
.legal-doc-footer-links {
  font-size: 0.875rem;
  margin-top: 2rem;
}

.legal-doc-footer-links a {
  color: inherit;
}
