/* Polityka Cookies — page-owned styles */

.cookies-page {
  background-color: var(--color-paper);
  color: var(--color-graphite);
}

.cookies-page__container {
  max-width: 800px;
  margin-inline: auto;
  padding-block: var(--space-64) var(--space-96);
  padding-inline: var(--container-padding-mobile);
}

@media (min-width: 768px) {
  .cookies-page__container {
    padding-inline: var(--container-padding-tablet);
    padding-block: var(--space-96) var(--space-128);
  }
}

@media (min-width: 1024px) {
  .cookies-page__container {
    padding-inline: var(--container-padding-desktop);
  }
}

.cookies-section {
  margin-block-end: var(--space-64);
  padding-block-end: var(--space-48);
  border-bottom: var(--border-rule);
}

.cookies-section:last-child {
  margin-block-end: 0;
  padding-block-end: 0;
  border-bottom: none;
}

.cookies-section__marker {
  margin-block-end: var(--space-32);
}

.cookies-section__content {
  max-width: 100%;
}

/* Intro section */
.cookies-section__content--intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.cookies-heading--h1 {
  color: var(--color-cobalt);
  font-size: var(--text-h1-size);
  line-height: var(--text-h1-line-height);
  letter-spacing: var(--text-h1-tracking);
  font-weight: 600;
  margin-block-end: 0;
}

.cookies-section__lead {
  color: var(--color-graphite);
  font-size: var(--text-body-large-size);
  line-height: var(--text-body-large-line-height);
  margin-block-end: 0;
}

.cookies-section__content--intro p:not(.cookies-section__lead) {
  max-width: 65ch;
  color: var(--color-graphite);
  margin-block-end: 0;
}

/* Types section */
.cookies-section__content--types {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}

.cookies-heading--h2 {
  color: var(--color-cobalt);
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-line-height);
  letter-spacing: var(--text-h2-tracking);
  font-weight: 550;
  margin-block-end: 0;
}

.cookies-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cookies-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
}

.cookies-table th,
.cookies-table td {
  padding: var(--space-16);
  text-align: left;
  vertical-align: top;
  border-bottom: var(--border-hairline);
}

.cookies-table thead th {
  font-family: var(--font-body);
  font-size: var(--text-caption-size);
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-graphite);
  background-color: var(--color-paper);
  border-bottom: var(--border-rule);
}

.cookies-table tbody tr:nth-child(even) {
  background-color: var(--color-sage-pale);
}

.cookies-table tbody tr:nth-child(odd) {
  background-color: var(--color-paper);
}

.cookies-table__category {
  font-weight: 650;
  color: var(--color-graphite);
  white-space: normal;
}

.cookies-table td {
  color: var(--color-graphite);
}

.cookies-table td:last-child,
.cookies-table th:last-child {
  white-space: nowrap;
}

/* Third-party section */
.cookies-section__content--third-party {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.cookies-heading--h3 {
  color: var(--color-cobalt);
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line-height);
  letter-spacing: var(--text-h3-tracking);
  font-weight: 550;
  margin-block-end: 0;
}

.cookies-section__content--third-party p {
  max-width: 65ch;
  margin-block-end: 0;
}

.cookies-section__content--third-party a {
  color: var(--color-cobalt);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.cookies-section__content--third-party a:hover {
  color: var(--color-cobalt-deep);
  text-decoration-color: var(--color-coral);
}

/* Manage section */
.cookies-section__content--manage {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.cookies-section__content--manage > p {
  max-width: 65ch;
  margin-block-end: 0;
}

.cookies-browser-list {
  list-style: disc;
  padding-inline-start: var(--space-24);
  margin-block-end: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.cookies-browser-list a {
  color: var(--color-cobalt);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.cookies-browser-list a:hover {
  color: var(--color-cobalt-deep);
  text-decoration-color: var(--color-coral);
}

.cookies-warning {
  background-color: var(--color-sage-pale);
  border-radius: var(--radius-8);
  padding: var(--space-16);
  max-width: 65ch;
}

.cookies-warning p {
  margin-block-end: 0;
  color: var(--color-graphite);
}

/* Security section */
.cookies-section__content--security {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.cookies-section__content--security > p {
  max-width: 65ch;
  margin-block-end: 0;
}

.cookies-security-note {
  background-color: var(--color-sage-pale);
  border-radius: var(--radius-8);
  padding: var(--space-16);
  max-width: 65ch;
}

.cookies-security-note p {
  margin-block-end: 0;
  color: var(--color-graphite);
}

/* Rights section */
.cookies-section__content--rights {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.cookies-section__content--rights > p {
  max-width: 65ch;
  margin-block-end: 0;
}

.cookies-rights-list {
  list-style: disc;
  padding-inline-start: var(--space-24);
  margin-block-end: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  max-width: 65ch;
}

.cookies-rights-list li {
  margin-block-end: 0;
}

/* Changes section */
.cookies-section__content--changes {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.cookies-section__content--changes p {
  max-width: 65ch;
  margin-block-end: 0;
}

.cookies-date-highlight {
  color: var(--color-coral);
  font-weight: 650;
}

/* Contact section */
.cookies-section__content--contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.cookies-contact-card {
  background-color: var(--color-sage-pale);
  border-radius: var(--radius-8);
  padding: var(--space-24);
  max-width: 65ch;
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.cookies-contact-card p {
  margin-block-end: 0;
  color: var(--color-graphite);
}

.cookies-contact-card a {
  color: var(--color-cobalt);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.cookies-contact-card a:hover {
  color: var(--color-cobalt-deep);
  text-decoration-color: var(--color-coral);
}

.cookies-contact-hours {
  font-size: var(--text-caption-size);
  color: var(--color-graphite-soft);
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .cookies-page__container {
    padding-block: var(--space-48) var(--space-64);
  }

  .cookies-section {
    margin-block-end: var(--space-48);
    padding-block-end: var(--space-32);
  }

  .cookies-table {
    min-width: 0;
    display: block;
  }

  .cookies-table thead {
    display: none;
  }

  .cookies-table tbody {
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
  }

  .cookies-table tr {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    padding: var(--space-16);
    border: var(--border-hairline);
    border-radius: var(--radius-8);
    background-color: var(--color-paper);
  }

  .cookies-table tbody tr:nth-child(even) {
    background-color: var(--color-sage-pale);
  }

  .cookies-table tbody tr:nth-child(odd) {
    background-color: var(--color-paper);
  }

  .cookies-table th,
  .cookies-table td {
    display: block;
    padding: 0;
    border-bottom: none;
  }

  .cookies-table__category {
    font-size: var(--text-h4-size);
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-cobalt);
  }

  .cookies-table td:last-child,
  .cookies-table th:last-child {
    white-space: normal;
  }

  .cookies-table td:last-child::before {
    content: "Okres: ";
    font-weight: 650;
    color: var(--color-graphite-soft);
  }

  .cookies-section__content--intro p:not(.cookies-section__lead),
  .cookies-section__content--third-party p,
  .cookies-section__content--manage > p,
  .cookies-section__content--security > p,
  .cookies-section__content--rights > p,
  .cookies-section__content--changes p,
  .cookies-warning,
  .cookies-security-note,
  .cookies-rights-list,
  .cookies-contact-card {
    max-width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .cookies-table {
    min-width: 560px;
  }
}
