:root {
  --ink: #2c2c2c;
  --muted: #5f6772;
  --surface: #ffffff;
  --page: #fdfbf7;
  --accent: #c05a40;
  --accent-dark: #9e432e;
  --border: #e7d8bc;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--page);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

.legal-shell {
  width: min(820px, calc(100% - 32px));
  margin: 42px auto;
  padding: 36px;
  background: var(--surface);
  border-radius: 24px;
  box-shadow: 0 18px 60px rgba(86, 58, 10, 0.12);
}

.back-link, .legal-shell a, .legal-footer a, .cookie-banner a {
  color: var(--accent-dark);
  font-weight: 650;
  text-underline-offset: 3px;
}

.legal-shell .eyebrow, .cookie-banner .eyebrow {
  margin: 30px 0 4px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-shell h1 { margin: 0; font-size: clamp(2rem, 6vw, 3rem); letter-spacing: -0.03em; }
.legal-shell h2 { margin: 0 0 10px; font-size: 1.18rem; }
.legal-shell .updated { margin: 8px 0 32px; color: var(--muted); font-size: 0.9rem; }
.legal-shell section { margin-top: 30px; }
.legal-shell p { margin: 0 0 12px; color: #4d4b48; }
.legal-shell code { padding: 2px 5px; border-radius: 4px; background: #fff4e7; font-size: 0.9em; }

.legal-footer {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 0 16px 40px;
  font-size: 0.9rem;
}

.legal-shell button, .cookie-banner button {
  cursor: pointer;
  border: 0;
  font: inherit;
}

.legal-footer button {
  padding: 0;
  color: var(--accent-dark);
  background: transparent;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner .primary, .cookie-banner .secondary {
  padding: 12px 17px;
  border-radius: 10px;
  font-weight: 750;
}

.cookie-banner .primary { color: #ffffff; background: #9e432e; }
.cookie-banner .primary:hover { background: #7b2d20; }
.cookie-banner .primary:focus-visible, .cookie-banner .secondary:focus-visible, .legal-footer button:focus-visible {
  outline: 3px solid #1b3022;
  outline-offset: 3px;
}
.cookie-banner .secondary { color: #3d3631; background: white; border: 1px solid #bdaf99; }
.cookie-banner .secondary:hover { background: #fff8e8; }

.cookie-banner {
  position: fixed;
  z-index: 100;
  right: 16px;
  bottom: 16px;
  left: 16px;
  width: min(680px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px;
  color: #39322d;
  background: #fffdf8;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 16px 50px rgba(70, 50, 30, 0.24);
}

.cookie-banner[hidden] { display: none; }
.cookie-banner .eyebrow { margin: 0 0 4px; }
.cookie-banner h2 { margin: 0; font-size: 1.35rem; }
.cookie-banner p { margin: 10px 0 0; color: #60564d; font-size: 0.94rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

@media (max-width: 640px) {
  .legal-shell { margin: 20px auto; padding: 26px 22px; }
  .legal-footer { flex-direction: column; align-items: center; gap: 10px; }
  .cookie-actions { flex-direction: column; }
  .cookie-actions button { width: 100%; }
}
