:root {
  color-scheme: light;
  --page: #f6f1e8;
  --paper: #fffdf8;
  --ink: #263027;
  --muted: #657164;
  --line: rgba(38, 48, 39, 0.14);
  --accent: #426f55;
  --accent-2: #8d6741;
  --soft: #e6eee3;
  --shadow: 0 16px 40px rgba(55, 45, 30, 0.12);
}

@media (max-width: 760px) {
  .cky-modal {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
  }

  .cky-preference-center,
  .cky-modal .cky-preference-center {
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    right: auto !important;
    transform: none !important;
  }

  .cky-preference-content-wrapper,
  .cky-accordion-wrapper,
  .cky-accordion,
  .cky-accordion-header-wrapper {
    width: auto !important;
    max-width: 100% !important;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #161b18;
  --paper: #202720;
  --ink: #edf2ea;
  --muted: #b7c2b5;
  --line: rgba(237, 242, 234, 0.16);
  --accent: #9ac6a5;
  --accent-2: #d7b17d;
  --soft: #263329;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

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

a {
  color: inherit;
}

.emv-privacy-shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: 18px 16px 30px;
}

.emv-topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 8px 0 18px;
}

.emv-brand {
  color: var(--ink);
  font-weight: 760;
  text-decoration: none;
}

.emv-topbar-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.emv-nav-link,
.emv-icon-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
  padding: 8px 11px;
  text-decoration: none;
}

.emv-icon-btn {
  cursor: pointer;
}

.emv-privacy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 22px;
  align-items: start;
}

.emv-privacy-copy,
.emv-privacy-media {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.emv-privacy-copy {
  padding: 26px;
}

.emv-eyebrow {
  margin: 0 0 8px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 760;
  text-transform: uppercase;
}

h1,
h2,
p,
ul {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.02;
}

h2 {
  margin: 24px 0 8px;
  font-size: 21px;
  line-height: 1.2;
}

p,
li {
  color: var(--muted);
}

ul {
  padding-left: 1.2em;
}

li + li {
  margin-top: 6px;
}

.emv-updated {
  margin: 24px 0 0;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 700;
}

.emv-privacy-media {
  position: sticky;
  top: 18px;
  padding: 12px;
}

.emv-privacy-media img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 84px);
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.emv-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.emv-footer-links {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
}

.emv-footer a {
  color: var(--accent);
  font-weight: 650;
  text-decoration: none;
}

@media (max-width: 820px) {
  .emv-privacy-layout {
    grid-template-columns: 1fr;
  }

  .emv-privacy-media {
    position: static;
    order: 2;
  }

  .emv-privacy-copy {
    order: 1;
    padding: 20px;
  }
}

@media (max-width: 560px) {
  .emv-privacy-shell {
    padding: 12px;
  }

  .emv-topbar {
    align-items: flex-start;
  }
}
