:root {
  --legal-ink: #17324d;
  --legal-muted: #5e7185;
  --legal-paper: #fffdf8;
  --legal-line: #d9e2e8;
  --legal-blue: #0a5f9e;
  --legal-teal: #0f766e;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--legal-ink);
  background: #f2f5f5;
  font-family: "Source Sans 3", system-ui, sans-serif;
  line-height: 1.7;
}
.legal-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px max(24px, calc((100vw - 1080px) / 2));
  background: rgba(255, 253, 248, .96);
  border-bottom: 1px solid var(--legal-line);
  backdrop-filter: blur(14px);
}
.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--legal-ink);
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 700;
  text-decoration: none;
}
.legal-brand img { width: 38px; height: 38px; object-fit: contain; }
.legal-nav-links { display: flex; gap: 18px; flex-wrap: wrap; }
.legal-nav-links a { color: var(--legal-blue); font-weight: 700; text-decoration: none; }
.legal-shell {
  width: min(920px, calc(100% - 32px));
  margin: 42px auto;
  padding: clamp(28px, 6vw, 70px);
  background: var(--legal-paper);
  border: 1px solid var(--legal-line);
  border-radius: 24px;
  box-shadow: 0 20px 55px rgba(23, 50, 77, .08);
}
.legal-eyebrow {
  margin: 0 0 8px;
  color: var(--legal-teal);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
h1, h2 { font-family: "Libre Baskerville", Georgia, serif; line-height: 1.25; }
h1 { margin: 0 0 12px; font-size: clamp(2rem, 6vw, 3.6rem); letter-spacing: -.035em; }
h2 { margin: 42px 0 10px; font-size: clamp(1.25rem, 3vw, 1.7rem); }
h3 { margin: 26px 0 8px; font-size: 1.08rem; }
p, li { color: #344e66; }
a { color: var(--legal-blue); }
.legal-updated { margin: 0 0 34px; color: var(--legal-muted); font-size: .95rem; }
.legal-summary {
  padding: 20px 22px;
  background: #edf7f4;
  border-left: 4px solid var(--legal-teal);
  border-radius: 4px 14px 14px 4px;
}
.legal-list { padding-left: 22px; }
.legal-list li + li { margin-top: 8px; }
.legal-table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.legal-table th, .legal-table td { padding: 12px; border: 1px solid var(--legal-line); text-align: left; vertical-align: top; }
.legal-table th { background: #edf3f6; }
.legal-contact {
  margin-top: 40px;
  padding: 22px;
  background: #eef5fb;
  border-radius: 14px;
}
.legal-footer {
  padding: 26px 16px 38px;
  color: var(--legal-muted);
  text-align: center;
}
.legal-footer a, .legal-footer button {
  margin: 0 8px;
  color: var(--legal-blue);
  background: none;
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.consent-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 99999;
  width: min(760px, calc(100% - 40px));
  margin: auto;
  padding: 20px;
  color: #eef6ff;
  background: #102f4c;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  box-shadow: 0 20px 65px rgba(0,0,0,.32);
}
.consent-banner h2 { margin: 0 0 8px; color: #fff !important; font: 800 1.15rem/1.3 "Source Sans 3", sans-serif; }
.consent-banner p { margin: 0; color: #dce8f2; font-size: .95rem; line-height: 1.5; }
.consent-banner a { color: #9ed8ff; }
.consent-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.consent-actions button {
  min-height: 42px;
  padding: 9px 18px;
  border: 1px solid #b9d7ec;
  border-radius: 999px;
  font: 800 .92rem "Source Sans 3", sans-serif;
  cursor: pointer;
}
.consent-reject { color: #fff; background: transparent; }
.consent-accept { color: #102f4c; background: #fff; }

@media (max-width: 680px) {
  .legal-nav { align-items: flex-start; padding: 12px 16px; }
  .legal-nav-links { justify-content: flex-end; gap: 10px; font-size: .9rem; }
  .legal-shell { margin: 18px auto; border-radius: 16px; }
  .legal-table { display: block; overflow-x: auto; }
  .consent-banner { right: 10px; bottom: 10px; left: 10px; width: calc(100% - 20px); }
  .consent-actions button { flex: 1; }
}
