/* FlizPol v127 — RODO, polityka prywatności i świadoma zgoda na statystyki. */

.quote-rodo-box {
  position: relative;
  overflow: hidden;
  margin-top: 4px;
  padding: 18px;
  border: 1px solid rgba(167, 111, 34, 0.26);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(246, 232, 207, 0.78));
  box-shadow:
    0 16px 38px rgba(91, 57, 28, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.quote-rodo-box::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #d6ae5a, #9d6825);
}

.quote-rodo-box__title {
  display: block;
  margin: 0 0 7px;
  color: #2b1b12;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.2;
}

.quote-rodo-box .quote-rodo-box__intro {
  margin: 0 0 15px;
  color: #5e4a3c;
  font-size: 0.91rem;
  line-height: 1.58;
}

.quote-form .quote-form__check--privacy {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 0;
  cursor: pointer;
}

.quote-form__check--privacy input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.quote-form__checkmark {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border: 1px solid rgba(93, 57, 29, 0.42);
  border-radius: 7px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: inset 0 1px 2px rgba(61, 38, 19, 0.07);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.quote-form__checkmark::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 7px;
  height: 12px;
  border: solid #fffaf2;
  border-width: 0 3px 3px 0;
  opacity: 0;
  transform: rotate(45deg) scale(0.72);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.quote-form__check--privacy input:checked + .quote-form__checkmark {
  border-color: #9c6724;
  background: linear-gradient(135deg, #c8963e, #9b6420);
  box-shadow: 0 8px 18px rgba(126, 79, 22, 0.2);
  transform: translateY(-1px);
}

.quote-form__check--privacy input:checked + .quote-form__checkmark::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.quote-form__check--privacy input:focus-visible + .quote-form__checkmark {
  outline: 3px solid rgba(192, 139, 45, 0.34);
  outline-offset: 3px;
}

.quote-form__checkcopy {
  display: grid;
  gap: 4px;
  color: #342319;
  font-size: 0.94rem;
  line-height: 1.45;
  text-transform: none;
  letter-spacing: 0;
}

.quote-form__checkcopy strong {
  color: #2b1b12;
  font-size: 0.96rem;
}

.quote-rodo-box .quote-rodo-box__details {
  margin: 12px 0 0 38px;
  color: #6d5848;
  font-size: 0.86rem;
  line-height: 1.55;
}

.quote-rodo-box a {
  color: #7b4d16;
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: rgba(156, 103, 36, 0.42);
  text-underline-offset: 3px;
}

.quote-rodo-box a:hover,
.quote-rodo-box a:focus-visible {
  color: #4a2c0d;
}

.review-privacy-note {
  margin: -4px 0 4px;
  color: #6b594a;
  font-size: 0.84rem;
  line-height: 1.55;
}

.review-privacy-note a {
  color: #784b16;
  font-weight: 800;
  text-underline-offset: 3px;
}

.fp-cookie-banner {
  position: fixed;
  z-index: 10050;
  left: 50%;
  bottom: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  width: min(1040px, calc(100% - 28px));
  padding: 22px;
  border: 1px solid rgba(183, 128, 38, 0.34);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.985), rgba(247, 232, 208, 0.985));
  color: #2c1c12;
  box-shadow: 0 28px 80px rgba(35, 23, 14, 0.28);
  opacity: 0;
  transform: translate(-50%, 18px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.fp-cookie-banner.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.fp-cookie-banner__copy {
  max-width: 680px;
}

.fp-cookie-banner__eyebrow {
  display: block;
  margin-bottom: 6px;
  color: #95611d;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fp-cookie-banner h2 {
  margin: 0 0 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.08;
}

.fp-cookie-banner p {
  margin: 0 0 7px;
  color: #645244;
  font-size: 0.94rem;
  line-height: 1.55;
}

.fp-cookie-banner a {
  color: #7d4d14;
  font-size: 0.9rem;
  font-weight: 850;
  text-underline-offset: 3px;
}

.fp-cookie-banner__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  min-width: min(100%, 360px);
}

.fp-cookie-banner button {
  min-height: 46px;
  padding: 10px 15px;
  border-radius: 12px;
  font: inherit;
  font-size: 0.87rem;
  font-weight: 900;
  cursor: pointer;
}

.fp-cookie-banner__necessary {
  border: 1px solid rgba(126, 82, 44, 0.28);
  background: rgba(255, 252, 246, 0.78);
  color: #3b281b;
}

.fp-cookie-banner__accept {
  border: 1px solid #a9701e;
  background: linear-gradient(135deg, #d6a74e, #b67922);
  color: #211409;
  box-shadow: 0 10px 22px rgba(139, 88, 22, 0.2);
}

.fp-cookie-banner__close {
  grid-column: 1 / -1;
  min-height: 34px !important;
  padding: 4px 10px !important;
  border: 0;
  background: transparent;
  color: #756252;
}

.fp-cookie-banner button:focus-visible,
.fp-footer-legal button:focus-visible {
  outline: 3px solid #f2c979;
  outline-offset: 3px;
}

.footer .fp-footer-legal,
.home-footer .fp-footer-legal {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  width: min(1180px, calc(100% - 36px));
  margin: 30px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 248, 239, 0.14);
}

.footer .fp-footer-legal a,
.footer .fp-footer-legal button,
.home-footer .fp-footer-legal a,
.home-footer .fp-footer-legal button {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 0;
  padding: 5px 3px;
  border: 0;
  background: transparent;
  color: rgba(255, 248, 239, 0.9);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.footer .fp-footer-legal a:hover,
.footer .fp-footer-legal button:hover,
.home-footer .fp-footer-legal a:hover,
.home-footer .fp-footer-legal button:hover {
  color: #fff8ef;
}

.privacy-hero {
  padding: clamp(142px, 15vw, 210px) 0 clamp(68px, 8vw, 110px);
  background:
    radial-gradient(circle at 78% 18%, rgba(217, 177, 102, 0.24), transparent 32%),
    linear-gradient(135deg, #f8eddd 0%, #ead3b5 100%);
  border-bottom: 1px solid rgba(155, 103, 36, 0.16);
}

.privacy-hero__inner {
  width: min(920px, 100%);
}

.privacy-hero h1 {
  max-width: 780px;
  margin: 12px 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 6.2vw, 5.7rem);
  font-weight: 500;
  line-height: 0.98;
  color: #2b1b12;
}

.privacy-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: #5c493b;
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.65;
}

.privacy-main {
  padding: clamp(58px, 7vw, 105px) 0;
  background: linear-gradient(180deg, #f4e7d5 0%, #f8efe2 100%);
}

.privacy-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.privacy-nav {
  position: sticky;
  top: 116px;
  padding: 22px;
  border: 1px solid rgba(156, 103, 36, 0.18);
  border-radius: 20px;
  background: rgba(255, 252, 247, 0.76);
  box-shadow: 0 18px 42px rgba(77, 49, 24, 0.08);
}

.privacy-nav strong {
  display: block;
  margin-bottom: 12px;
  color: #2d1c12;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.privacy-nav a {
  display: block;
  padding: 8px 0;
  color: #6a503a;
  font-size: 0.92rem;
  line-height: 1.35;
}

.privacy-content {
  display: grid;
  gap: 18px;
}

.privacy-card {
  scroll-margin-top: 110px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(156, 103, 36, 0.16);
  border-radius: 24px;
  background: rgba(255, 253, 249, 0.9);
  box-shadow: 0 22px 54px rgba(77, 49, 24, 0.08);
}

.privacy-card h2 {
  margin: 0 0 15px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  font-weight: 500;
  line-height: 1.08;
  color: #2d1c12;
}

.privacy-card h3 {
  margin: 24px 0 8px;
  color: #3a2619;
  font-size: 1.04rem;
}

.privacy-card p,
.privacy-card li {
  color: #5e4d40;
  line-height: 1.68;
}

.privacy-card p {
  margin: 0 0 12px;
}

.privacy-card ul {
  margin: 10px 0 0;
  padding-left: 22px;
}

.privacy-card a {
  color: #7b4c13;
  font-weight: 800;
  text-underline-offset: 3px;
}

.privacy-cookie-table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 14px;
  font-size: 0.9rem;
}

.privacy-cookie-table th,
.privacy-cookie-table td {
  padding: 13px;
  border-bottom: 1px solid rgba(143, 93, 35, 0.13);
  text-align: left;
  vertical-align: top;
}

.privacy-cookie-table th {
  background: rgba(231, 207, 169, 0.48);
  color: #4f321a;
}

.privacy-cookie-table td {
  background: rgba(255, 253, 249, 0.62);
  color: #625143;
}

.privacy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.privacy-actions button {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid #a9701e;
  border-radius: 12px;
  background: linear-gradient(135deg, #d6a74e, #b67922);
  color: #211409;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 980px) {
  .footer .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .footer .footer-grid > div {
    min-width: 0;
    width: 100%;
  }

  .home-footer .home-footer__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .home-footer .home-footer__inner > div {
    min-width: 0;
    width: 100%;
  }

  .privacy-layout {
    grid-template-columns: 1fr;
  }

  .privacy-nav {
    position: static;
  }
}

@media (max-width: 720px) {
  .fp-cookie-banner {
    grid-template-columns: 1fr;
    gap: 16px;
    bottom: 10px;
    width: calc(100% - 20px);
    padding: 18px;
    border-radius: 20px;
  }

  .fp-cookie-banner__actions {
    min-width: 0;
  }

  .privacy-cookie-table,
  .privacy-cookie-table tbody,
  .privacy-cookie-table tr,
  .privacy-cookie-table th,
  .privacy-cookie-table td {
    display: block;
  }

  .privacy-cookie-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .privacy-cookie-table tr {
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid rgba(143, 93, 35, 0.13);
    border-radius: 14px;
  }

  .privacy-cookie-table td {
    border-bottom: 1px solid rgba(143, 93, 35, 0.1);
  }

  .privacy-cookie-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: #83551d;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .privacy-cookie-table td:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 520px) {
  .quote-rodo-box {
    padding: 16px;
    border-radius: 16px;
  }

  .quote-rodo-box .quote-rodo-box__details {
    margin-left: 0;
  }

  .fp-cookie-banner__actions {
    grid-template-columns: 1fr;
  }

  .fp-cookie-banner__close {
    grid-column: auto;
  }

  .privacy-hero {
    padding-top: 126px;
  }

  .privacy-card {
    padding: 22px 18px;
    border-radius: 20px;
  }
}
