/* Reset + base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #fafaf7;
  color: #000;
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* Page container */
.consent-page {
  max-width: 1058px;
  margin: 0 auto;
  padding: 0 24px 48px;
  position: relative;
  z-index: 1;
}

/* Decorative SVG: anchored to the top of the content area (just below the
   banner), full-bleed so the blobs bleed off the screen edges at any width.
   Sits behind the content. */
.page-decoration {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  pointer-events: none;
  z-index: 0;
  aspect-ratio: 1440 / 601;
}
.page-decoration-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.consent-page > *:not(.page-decoration) { position: relative; z-index: 1; }

/* Site header: centered logo + full-width banner */
.site-header {
  position: relative;
  z-index: 2;
}
.site-logo {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 20px 16px;
  background: #fafaf7;
  box-shadow: 0 2px 12px rgba(45, 27, 101, 0.06);
}
.site-logo-img {
  width: 220px;
  height: auto;
  display: block;
}
.site-banner {
  width: 100%;
  aspect-ratio: 1440 / 364;
  background: #d9d9d9;
  overflow: hidden;
}
.site-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Intro */
.intro {
  text-align: center;
  padding: 36px 16px 28px;
  max-width: 842px;
  margin: 0 auto;
}
.intro-title {
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.1;
  color: #2d1b65;
  margin: 0 0 8px;
}
.consens-subtitle {
  font-family: 'Archivo', sans-serif;
  font-size: 16px;
  color: #727272;
  font-style: italic;
  margin: 0 0 20px;
}
.intro-body {
  font-size: 18px;
  line-height: 1.55;
  color: #727272;
}
.intro-body p { margin: 0 0 16px; }
.intro-body p:last-child { margin-bottom: 0; }
.consens-link {
  color: #2d1b65;
  text-decoration: underline;
  text-decoration-color: #c4b5fd;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: text-decoration-color 0.15s ease;
}
.consens-link:hover { text-decoration-color: #2d1b65; }

/* Dividers */
.divider {
  border: 0;
  border-top: 1px solid #e5e5e2;
  margin: 24px auto;
  max-width: 842px;
}

/* Form */
.consent-form {
  max-width: 700px;
  margin: 0 auto;
  padding: 8px 16px 0;
}

/* Bulk action text links */
.consens-bulk {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
  padding: 0 2px;
}
.consens-btn-bulk {
  background: none;
  border: 0;
  padding: 4px 2px;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  font-family: inherit;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.consens-btn-bulk:hover {
  color: #2d1b65;
  text-decoration-color: #c4b5fd;
}
.consens-btn-bulk-none:hover {
  color: #991b1b;
  text-decoration-color: #fca5a5;
}

/* Checkbox list */
.consent-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.consens-item {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 0;
  cursor: pointer;
}
.consens-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  margin: 2px 0 0;
  width: 27px;
  height: 27px;
  min-width: 27px;
  border: 1px solid #a5a5a5;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
  display: grid;
  place-content: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.consens-item input[type="checkbox"]::before {
  content: '';
  width: 14px;
  height: 14px;
  transform: scale(0);
  transition: transform 0.15s ease;
  background: #2d1b65;
  border-radius: 2px;
}
.consens-item input[type="checkbox"]:checked {
  border-color: #2d1b65;
}
.consens-item input[type="checkbox"]:checked::before {
  transform: scale(1);
}
.consens-item input[type="checkbox"]:focus-visible {
  outline: 2px solid #2d1b65;
  outline-offset: 2px;
}
.consens-item-text {
  flex: 1;
  cursor: pointer;
  padding-top: 2px;
}
.consens-item-name {
  font-size: 18px;
  font-weight: 400;
  color: #000;
  line-height: 1.4;
}

/* Status messages */
.consens-status {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.45;
}
.consens-status[data-kind="error"] { background: #fef2f2; color: #991b1b; border: 1px solid #f87171; }
.consens-status[data-kind="success"] { background: #ecfdf5; color: #065f46; border: 1px solid #6ee7b7; }
.consens-status[data-kind="info"] { background: #f1efe8; color: #4b5563; border: 1px solid #d6d3c4; }

/* Save button */
.consent-actions {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}
.consent-save-btn {
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
  font-size: 25px;
  color: #fafaf7;
  background: #311a6b;
  border: 0;
  border-radius: 50px;
  padding: 16px 56px;
  min-width: 323px;
  height: 67px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}
.consent-save-btn:hover { background: #251352; }
.consent-save-btn:active { transform: translateY(1px); }
.consent-save-btn:disabled { background: #9ca3af; cursor: not-allowed; }

/* GDPR Notice */
.notice {
  background: #f1efe8;
  border-radius: 10px;
  padding: 30px 35px;
  max-width: 844px;
  margin: 0 auto;
  scroll-margin-top: 16px;
}
.notice-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: #71716f;
  margin: 0 0 12px;
}
.notice-content {
  font-size: 14px;
  line-height: 1.55;
  color: #9d9d9d;
}
.notice-content p { margin: 0 0 14px; }
.notice-content p:last-child { margin-bottom: 0; }

/* Footer */
.consent-footer {
  text-align: right;
  max-width: 1010px;
  margin: 18px auto 0;
  padding-top: 16px;
  color: #9d9d9d;
}
.consent-footer small { font-size: 14px; }

/* Tablet */
@media (max-width: 900px) {
  .intro-title { font-size: 32px; }
  .intro-body { font-size: 16px; }
  .consens-item-name { font-size: 16px; }
  .consent-save-btn { font-size: 20px; padding: 14px 40px; min-width: 260px; height: 60px; }
}

/* Mobile */
@media (max-width: 640px) {
  .page-decoration { display: none; }
  .consent-page { padding: 0 16px 32px; }
  .site-logo { padding: 14px 16px; }
  .site-logo-img { width: 170px; }
  .site-banner { aspect-ratio: 16 / 10; }
  .intro { padding: 24px 4px 20px; text-align: left; }
  .intro-title { font-size: 26px; line-height: 1.15; }
  .consens-subtitle { font-size: 14px; margin-bottom: 14px; }
  .intro-body { font-size: 15px; }
  .divider { margin: 18px auto; }
  .consent-form { padding: 4px 4px 0; }
  .consens-bulk { gap: 12px; margin-bottom: 12px; }
  .consens-btn-bulk { font-size: 12px; }
  .consent-list { gap: 16px; margin-bottom: 20px; }
  .consens-item { gap: 14px; }
  .consens-item input[type="checkbox"] { width: 24px; height: 24px; min-width: 24px; }
  .consens-item input[type="checkbox"]::before { width: 12px; height: 12px; }
  .consens-item-name { font-size: 15px; line-height: 1.4; }
  .consent-save-btn {
    width: 100%;
    min-width: 0;
    font-size: 18px;
    height: 56px;
    padding: 12px 24px;
  }
  .notice { padding: 22px 20px; }
  .notice-content { font-size: 13px; }
  .consent-footer { text-align: center; }
}
