/* =============================================================================
   Privacy and cookie notice, and the cookie choice banner.
   - .c1-consent: a small card fixed to the bottom of the screen until the visitor
     accepts or declines Google Analytics cookies (script: microsite.js, initConsent).
   - .c1-notice: a <dialog> opened from the footer links, holding the notice.
   Loaded after concept-1.css; uses its tokens through .c1 (the page's root class).
============================================================================= */

.c1-consent {
  position: fixed;
  z-index: 100;
  left: clamp(12px, 2vw, 24px);
  bottom: clamp(12px, 2vw, 24px);
  width: min(420px, calc(100vw - 24px));
  padding: 18px 20px 16px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 10px 34px rgba(26, 26, 24, 0.16);
  color: var(--ink);
}

.c1-consent[hidden] {
  display: none;
}

.c1-consent__title {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.c1-consent__text {
  margin: 0 0 14px;
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.6;
}

.c1-consent__text a,
.c1-footer__base a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.c1-consent__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Accept and Decline have the same size and weight, so neither is pushed. */
.c1-consent__btn {
  flex: 1 1 0;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--olive);
  border-radius: 999px;
  background: transparent;
  color: var(--olive);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.c1-consent__btn:hover,
.c1-consent__btn:focus-visible {
  background: var(--olive);
  color: var(--ground);
}

/* Footer: the two links beside the copyright line. */
.c1-footer__base {
  align-items: center;
}

.c1-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* "Privacy and cookie notice" is a link and "Cookie settings" is a button, and other footer rules gave them different
   boxes (inline-flex with a 44px minimum against inline-block), so they sat at different heights. Both get the same
   box here, centred in the row. */
.c1-footer__legal {
  align-items: center;
}

.c1-footer__legal li {
  display: flex;
  align-items: center;
}

.c1-footer .c1-footer__legal button,
.c1-footer .c1-footer__legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  vertical-align: middle;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* The notice. */
.c1-notice {
  width: min(760px, calc(100vw - 24px));
  max-height: min(86vh, 900px);
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 20px 60px rgba(26, 26, 24, 0.3);
}

.c1-notice::backdrop {
  background: rgba(26, 26, 24, 0.5);
}

.c1-notice__panel {
  max-height: min(86vh, 900px);
  overflow-y: auto;
  padding: clamp(24px, 4vw, 44px);
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.7;
}

.c1-notice__close {
  position: sticky;
  top: 0;
  float: right;
  width: 44px;
  height: 44px;
  margin: -12px -12px 0 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface-alt);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.c1-notice h2 {
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 400;
  line-height: 1.1;
}

.c1-notice h3 {
  margin: 28px 0 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.c1-notice p,
.c1-notice ul {
  margin: 0 0 12px;
}

.c1-notice ul {
  padding-left: 20px;
}

.c1-notice a {
  color: inherit;
  text-underline-offset: 3px;
}

.c1-notice__meta {
  color: var(--muted);
  font-size: 12.5px;
}

.c1-notice__scroll {
  overflow-x: auto;
}

.c1-notice__table {
  width: 100%;
  margin: 8px 0 14px;
  border-collapse: collapse;
  font-size: 13px;
}

.c1-notice__table th,
.c1-notice__table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
  vertical-align: top;
}

.c1-notice__table th {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 699px) {
  .c1-consent {
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: auto;
    padding: 12px 14px;
  }

  .c1-consent__title {
    display: none;
  }

  .c1-consent__text {
    margin-bottom: 10px;
    font-size: 12.5px;
    line-height: 1.45;
  }
}
