/* ======================================================
   Riddler's Project - Legal Pages
   Scoped dark / gold document styling.
   ====================================================== */

.rp-legal-page,
.rp-legal-page * {
  box-sizing: border-box;
}

.rp-legal-page {
  position: relative;
  isolation: isolate;
  width: min(1060px, calc(100% - 32px));
  max-width: 1060px;
  margin: 52px auto 78px;
  padding: 44px;
  overflow: hidden;
  overflow-wrap: break-word;
  color: #e8e0d1;
  background:
    radial-gradient(circle at top left, rgba(198, 161, 91, 0.10), transparent 34%),
    linear-gradient(145deg, rgba(45, 44, 40, 0.98), rgba(20, 19, 18, 0.99));
  border: 1px solid rgba(198, 161, 91, 0.36);
  border-radius: 8px;
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 245, 201, 0.04);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.74;
  letter-spacing: 0;
}

.rp-legal-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 245, 201, 0.045), transparent 44%, rgba(93, 45, 57, 0.13)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 20%);
}

.rp-legal-hero {
  padding: 0 0 28px;
  margin: 0 0 4px;
  border-bottom: 1px solid rgba(198, 161, 91, 0.30);
}

.rp-legal-kicker {
  display: inline-flex;
  align-items: center;
  margin: 0 0 14px;
  padding: 7px 12px;
  color: #dabc73;
  background: rgba(198, 161, 91, 0.08);
  border: 1px solid rgba(198, 161, 91, 0.30);
  border-radius: 8px;
  font-family: "Chakra Petch", "Inter", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.rp-legal-page h1,
.rp-legal-page h2 {
  margin: 0;
  color: #dabc73;
  font-family: "Chakra Petch", "Inter", system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0;
}

.rp-legal-page h1 {
  max-width: 860px;
  margin-bottom: 16px;
  font-size: 44px;
  line-height: 1.08;
}

.rp-legal-page h2 {
  margin-bottom: 14px;
  font-size: 24px;
  line-height: 1.22;
}

.rp-legal-page p {
  max-width: 900px;
  margin: 0 0 14px;
  color: rgba(232, 224, 209, 0.86);
  font-size: 16px;
  line-height: 1.74;
  letter-spacing: 0;
}

.rp-legal-page p:last-child {
  margin-bottom: 0;
}

.rp-legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 0;
}

.rp-legal-meta__item {
  flex: 1 1 190px;
  min-width: 0;
  padding: 14px 16px;
  background: rgba(13, 13, 12, 0.38);
  border: 1px solid rgba(198, 161, 91, 0.26);
  border-radius: 8px;
}

.rp-legal-meta__item span,
.rp-legal-meta__item strong {
  display: block;
  letter-spacing: 0;
}

.rp-legal-meta__item span {
  margin-bottom: 4px;
  color: rgba(232, 224, 209, 0.62);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.rp-legal-meta__item strong {
  color: #fff4cf;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
}

.rp-legal-section {
  padding: 28px 0;
  border-bottom: 1px solid rgba(198, 161, 91, 0.22);
}

.rp-legal-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.rp-legal-section--contact {
  margin-top: 4px;
}

.rp-legal-page ul {
  max-width: 900px;
  margin: 12px 0 0;
  padding: 0 0 0 22px;
  color: rgba(232, 224, 209, 0.84);
}

.rp-legal-page li {
  margin: 0;
  padding-left: 4px;
  line-height: 1.68;
}

.rp-legal-page li + li {
  margin-top: 8px;
}

.rp-legal-page li::marker {
  color: #dabc73;
}

.rp-legal-page a {
  color: #dabc73;
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: rgba(218, 188, 115, 0.48);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.rp-legal-page a:hover,
.rp-legal-page a:focus {
  color: #ffe1a0;
  text-decoration-color: rgba(255, 225, 160, 0.82);
}

@supports selector(body:has(.rp-legal-page)) {
  body:has(.rp-legal-page) {
    background: #1f1e1c;
  }

  body:has(.rp-legal-page) .entry-content,
  body:has(.rp-legal-page) .wp-block-post-content {
    margin-top: 0;
    padding-top: 1px;
  }
}

@media (max-width: 760px) {
  .rp-legal-page {
    width: min(100% - 24px, 1060px);
    margin: 30px auto 54px;
    padding: 28px 20px;
    font-size: 15px;
    line-height: 1.68;
  }

  .rp-legal-hero {
    padding-bottom: 22px;
  }

  .rp-legal-page h1 {
    font-size: 34px;
    line-height: 1.12;
  }

  .rp-legal-page h2 {
    font-size: 21px;
  }

  .rp-legal-page p,
  .rp-legal-page li {
    font-size: 15px;
    line-height: 1.68;
  }

  .rp-legal-meta {
    gap: 10px;
  }

  .rp-legal-meta__item {
    flex-basis: 100%;
    padding: 13px 14px;
  }

  .rp-legal-section {
    padding: 23px 0;
  }

  .rp-legal-page ul {
    padding-left: 19px;
  }
}

@media (max-width: 420px) {
  .rp-legal-page {
    width: min(100% - 18px, 1060px);
    padding: 24px 16px;
  }

  .rp-legal-page h1 {
    font-size: 30px;
  }
}

/* ======================================================
   Complianz Cookie Policy page
   Complianz can add .cmplz-document to the body as well as
   the actual document wrapper. Never style the body as a card.
   ====================================================== */

body.cmplz-document {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  color: inherit !important;
  background: #1f1e1c !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.cmplz-document::before,
body.cmplz-document::after {
  content: none !important;
  display: none !important;
}

.cmplz-document:not(body),
body.cmplz-document .cmplz-document:not(body),
body.page-slug-cookie-policy-eu .cmplz-document:not(body),
body.page-slug-cookie-policy .cmplz-document:not(body) {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  width: min(1060px, calc(100% - 32px));
  max-width: 1060px;
  margin: 52px auto 78px;
  padding: 44px;
  overflow: hidden;
  overflow-wrap: break-word;
  color: #e8e0d1;
  background:
    radial-gradient(circle at top left, rgba(198, 161, 91, 0.10), transparent 34%),
    linear-gradient(145deg, rgba(45, 44, 40, 0.98), rgba(20, 19, 18, 0.99));
  border: 1px solid rgba(198, 161, 91, 0.36);
  border-radius: 8px;
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 245, 201, 0.04);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.74;
  letter-spacing: 0;
}

.cmplz-document:not(body),
.cmplz-document:not(body) * {
  box-sizing: border-box;
}

.cmplz-document:not(body)::before,
body.cmplz-document .cmplz-document:not(body)::before,
body.page-slug-cookie-policy-eu .cmplz-document:not(body)::before,
body.page-slug-cookie-policy .cmplz-document:not(body)::before {
  content: "Cookie Policy";
  display: block;
  margin: 0 0 28px;
  padding: 0 0 24px;
  color: #dabc73;
  border-bottom: 1px solid rgba(198, 161, 91, 0.30);
  font-family: "Chakra Petch", "Inter", system-ui, sans-serif;
  font-size: 44px;
  font-weight: 900;
  line-height: 1.08;
}

.cmplz-document:not(body)::after,
body.cmplz-document .cmplz-document:not(body)::after,
body.page-slug-cookie-policy-eu .cmplz-document:not(body)::after,
body.page-slug-cookie-policy .cmplz-document:not(body)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 245, 201, 0.045), transparent 44%, rgba(93, 45, 57, 0.13)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 20%);
}

.cmplz-document:not(body) h1,
.cmplz-document:not(body) h2,
.cmplz-document:not(body) h3,
.cmplz-document:not(body) h4 {
  margin: 28px 0 14px;
  color: #dabc73;
  font-family: "Chakra Petch", "Inter", system-ui, sans-serif;
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: 0;
}

.cmplz-document:not(body) h1 {
  font-size: 34px;
}

.cmplz-document:not(body) h2 {
  font-size: 24px;
}

.cmplz-document:not(body) h3,
.cmplz-document:not(body) h4 {
  font-size: 20px;
}

.cmplz-document:not(body) p,
.cmplz-document:not(body) li,
.cmplz-document:not(body) td,
.cmplz-document:not(body) th,
.cmplz-document:not(body) span,
.cmplz-document:not(body) div {
  color: rgba(232, 224, 209, 0.86);
}

.cmplz-document:not(body) p,
.cmplz-document:not(body) li {
  max-width: 900px;
  font-size: 16px;
  line-height: 1.74;
}

.cmplz-document:not(body) p {
  margin: 0 0 14px;
}

.cmplz-document:not(body) ul,
.cmplz-document:not(body) ol {
  max-width: 900px;
  margin: 12px 0 0;
  padding-left: 22px;
  color: rgba(232, 224, 209, 0.84);
}

.cmplz-document:not(body) li + li {
  margin-top: 8px;
}

.cmplz-document:not(body) li::marker {
  color: #dabc73;
}

.cmplz-document:not(body) a {
  color: #dabc73;
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: rgba(218, 188, 115, 0.48);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.cmplz-document:not(body) a:hover,
.cmplz-document:not(body) a:focus {
  color: #ffe1a0;
  text-decoration-color: rgba(255, 225, 160, 0.82);
}

.cmplz-document:not(body) table {
  width: 100%;
  margin: 22px 0;
  overflow: hidden;
  color: rgba(232, 224, 209, 0.86);
  background: rgba(13, 13, 12, 0.34) !important;
  border: 1px solid rgba(198, 161, 91, 0.26) !important;
  border-collapse: collapse;
  border-radius: 8px;
}

.cmplz-document:not(body) th,
.cmplz-document:not(body) td {
  padding: 12px 14px;
  color: rgba(232, 224, 209, 0.86) !important;
  background: rgba(255, 255, 255, 0.035) !important;
  border: 1px solid rgba(198, 161, 91, 0.18) !important;
  text-align: left;
  vertical-align: top;
}

.cmplz-document:not(body) th {
  color: #fff4cf !important;
  background: rgba(198, 161, 91, 0.12) !important;
  font-family: "Chakra Petch", "Inter", system-ui, sans-serif;
  font-weight: 900;
}

/* Complianz accordion / placed cookies blocks */
.cmplz-document:not(body) .cmplz-dropdown {
  margin: 14px 0;
  overflow: hidden;
  color: rgba(232, 224, 209, 0.88) !important;
  background: rgba(13, 13, 12, 0.36) !important;
  border: 1px solid rgba(198, 161, 91, 0.26) !important;
  border-radius: 8px;
}

.cmplz-document:not(body) .cmplz-dropdown summary,
.cmplz-document:not(body) .cmplz-dropdown .cmplz-service-header {
  color: #fff4cf !important;
  background: rgba(198, 161, 91, 0.14) !important;
}

.cmplz-document:not(body) .cmplz-dropdown summary {
  padding: 13px 16px !important;
  border-bottom: 1px solid rgba(198, 161, 91, 0.22) !important;
  cursor: pointer;
}

.cmplz-document:not(body) .cmplz-dropdown summary h3,
.cmplz-document:not(body) .cmplz-dropdown summary div,
.cmplz-document:not(body) .cmplz-dropdown summary span {
  color: #fff4cf !important;
  font-family: "Chakra Petch", "Inter", system-ui, sans-serif;
  font-weight: 900;
}

.cmplz-document:not(body) .cmplz-dropdown h3 {
  margin: 0;
  color: #dabc73 !important;
}

.cmplz-document:not(body) .cmplz-service-description,
.cmplz-document:not(body) .cmplz-sharing-data,
.cmplz-document:not(body) .purpose,
.cmplz-document:not(body) .name,
.cmplz-document:not(body) .retention,
.cmplz-document:not(body) .function {
  color: rgba(232, 224, 209, 0.88) !important;
  background: rgba(255, 255, 255, 0.045) !important;
}

.cmplz-document:not(body) .cmplz-service-description,
.cmplz-document:not(body) .cmplz-sharing-data {
  padding: 16px 18px !important;
}

.cmplz-document:not(body) .cookies-per-purpose,
.cmplz-document:not(body) .cmplz-service-description,
.cmplz-document:not(body) .cmplz-sharing-data {
  border-color: rgba(198, 161, 91, 0.20) !important;
}

.cmplz-document:not(body) .cookies-per-purpose {
  width: 100%;
  margin: 0 !important;
  color: rgba(232, 224, 209, 0.88) !important;
  background: rgba(9, 9, 8, 0.38) !important;
  border-top: 1px solid rgba(198, 161, 91, 0.20) !important;
}

.cmplz-document:not(body) .cookies-per-purpose > div,
.cmplz-document:not(body) .cookies-per-purpose .name-header,
.cmplz-document:not(body) .cookies-per-purpose .retention-header,
.cmplz-document:not(body) .cookies-per-purpose .function-header {
  color: rgba(232, 224, 209, 0.86) !important;
  background: rgba(255, 255, 255, 0.035) !important;
  border-color: rgba(198, 161, 91, 0.18) !important;
}

.cmplz-document:not(body) .cookies-per-purpose .name-header,
.cmplz-document:not(body) .cookies-per-purpose .retention-header,
.cmplz-document:not(body) .cookies-per-purpose .function-header {
  color: #dabc73 !important;
  font-family: "Chakra Petch", "Inter", system-ui, sans-serif;
  font-weight: 900;
}

.cmplz-document:not(body) .cmplz-category,
.cmplz-document:not(body) .cmplz-category-header {
  color: rgba(232, 224, 209, 0.90) !important;
  background: rgba(255, 255, 255, 0.055) !important;
  border-color: rgba(198, 161, 91, 0.22) !important;
}

.cmplz-document:not(body) input[type="checkbox"] {
  accent-color: #dabc73;
}

@media (max-width: 760px) {
  .cmplz-document:not(body),
  body.cmplz-document .cmplz-document:not(body),
  body.page-slug-cookie-policy-eu .cmplz-document:not(body),
  body.page-slug-cookie-policy .cmplz-document:not(body) {
    width: min(100% - 24px, 1060px);
    margin: 30px auto 54px;
    padding: 28px 20px;
    font-size: 15px;
    line-height: 1.68;
  }

  .cmplz-document:not(body)::before,
  body.cmplz-document .cmplz-document:not(body)::before,
  body.page-slug-cookie-policy-eu .cmplz-document:not(body)::before,
  body.page-slug-cookie-policy .cmplz-document:not(body)::before {
    margin-bottom: 22px;
    padding-bottom: 20px;
    font-size: 34px;
    line-height: 1.12;
  }

  .cmplz-document:not(body) h2 {
    font-size: 21px;
  }

  .cmplz-document:not(body) h3,
  .cmplz-document:not(body) h4 {
    font-size: 18px;
  }

  .cmplz-document:not(body) p,
  .cmplz-document:not(body) li {
    font-size: 15px;
    line-height: 1.68;
  }

  .cmplz-document:not(body) .cookies-per-purpose {
    overflow-x: auto;
  }
}

@media (max-width: 420px) {
  .cmplz-document:not(body),
  body.cmplz-document .cmplz-document:not(body),
  body.page-slug-cookie-policy-eu .cmplz-document:not(body),
  body.page-slug-cookie-policy .cmplz-document:not(body) {
    width: min(100% - 18px, 1060px);
    padding: 24px 16px;
  }

  .cmplz-document:not(body)::before,
  body.cmplz-document .cmplz-document:not(body)::before,
  body.page-slug-cookie-policy-eu .cmplz-document:not(body)::before,
  body.page-slug-cookie-policy .cmplz-document:not(body)::before {
    font-size: 30px;
  }
}

/* ======================================================
   Complianz Cookie Policy - expanded cookie blocks polish
   v3: make opened service details look like one consistent card.
   ====================================================== */

.cmplz-document:not(body) .cmplz-dropdown details[open] {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  background: rgba(11, 11, 10, 0.34) !important;
}

.cmplz-document:not(body) .cmplz-dropdown details[open] > summary,
.cmplz-document:not(body) .cmplz-dropdown details[open] > .cookies-per-purpose,
.cmplz-document:not(body) .cmplz-dropdown details[open] > .cmplz-category,
.cmplz-document:not(body) .cmplz-dropdown details[open] > h4,
.cmplz-document:not(body) .cmplz-dropdown details[open] > table {
  grid-column: 1 / -1 !important;
}

.cmplz-document:not(body) .cmplz-dropdown details[open] > .cmplz-service-description {
  grid-column: 1 / 2 !important;
}

.cmplz-document:not(body) .cmplz-dropdown details[open] > .cmplz-sharing-data {
  grid-column: 2 / 3 !important;
}

.cmplz-document:not(body) .cmplz-dropdown .cmplz-service-description,
.cmplz-document:not(body) .cmplz-dropdown .cmplz-sharing-data {
  width: auto !important;
  min-width: 0 !important;
  float: none !important;
  margin: 0 !important;
  padding: 18px 20px !important;
  color: rgba(232, 224, 209, 0.88) !important;
  background: rgba(255, 255, 255, 0.032) !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(198, 161, 91, 0.18) !important;
}

.cmplz-document:not(body) .cmplz-dropdown .cmplz-sharing-data {
  border-left: 1px solid rgba(198, 161, 91, 0.18) !important;
}

.cmplz-document:not(body) .cmplz-dropdown .cmplz-service-description h4,
.cmplz-document:not(body) .cmplz-dropdown .cmplz-sharing-data h4,
.cmplz-document:not(body) .cmplz-dropdown .cookies-per-purpose h4,
.cmplz-document:not(body) .cmplz-dropdown .purpose h4 {
  margin: 0 0 8px !important;
  color: #dabc73 !important;
  font-family: "Chakra Petch", "Inter", system-ui, sans-serif;
  font-size: 17px !important;
  line-height: 1.25 !important;
}

.cmplz-document:not(body) .cmplz-dropdown .cmplz-service-description p,
.cmplz-document:not(body) .cmplz-dropdown .cmplz-sharing-data p {
  margin: 0 0 8px !important;
  max-width: none !important;
}

.cmplz-document:not(body) .cmplz-dropdown .cookies-per-purpose {
  clear: both !important;
  grid-column: 1 / -1 !important;
  border-top: 0 !important;
}

.cmplz-document:not(body) .cmplz-dropdown .cookies-per-purpose > div,
.cmplz-document:not(body) .cmplz-dropdown .cookies-per-purpose .name-header,
.cmplz-document:not(body) .cmplz-dropdown .cookies-per-purpose .retention-header,
.cmplz-document:not(body) .cmplz-dropdown .cookies-per-purpose .function-header {
  background: rgba(255, 255, 255, 0.025) !important;
}

.cmplz-document:not(body) .cmplz-dropdown .cookies-per-purpose .name-header,
.cmplz-document:not(body) .cmplz-dropdown .cookies-per-purpose .retention-header,
.cmplz-document:not(body) .cmplz-dropdown .cookies-per-purpose .function-header {
  background: rgba(198, 161, 91, 0.10) !important;
}

.cmplz-document:not(body) .cmplz-dropdown summary::-webkit-details-marker {
  display: none;
}

@media (max-width: 760px) {
  .cmplz-document:not(body) .cmplz-dropdown details[open] {
    grid-template-columns: 1fr !important;
  }

  .cmplz-document:not(body) .cmplz-dropdown details[open] > .cmplz-service-description,
  .cmplz-document:not(body) .cmplz-dropdown details[open] > .cmplz-sharing-data {
    grid-column: 1 / -1 !important;
  }

  .cmplz-document:not(body) .cmplz-dropdown .cmplz-sharing-data {
    border-left: 0 !important;
  }
}
