/* Regulamin — simple legal-page layout */

.content-page--regulamin {
  background: var(--color-page);
  text-align: left;
}

.content-page--regulamin .content-page__container--legal {
  width: min(61.25rem, 100%);
}

.content-page--regulamin .content-page__eyebrow {
  color: var(--color-burgundy);
  font-weight: 700;
}

.regulamin-hero {
  padding-block: clamp(1rem, 2vw, 1.75rem) clamp(1.25rem, 2.5vw, 2rem);
}

.regulamin-hero__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.4vw, 2.875rem);
  font-weight: 500;
  line-height: 1.06;
  color: var(--color-primary);
}

.regulamin-hero__meta {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-muted);
}

.regulamin-hero__intro {
  margin: 0;
  max-width: 44rem;
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 1.1vw, 1rem);
  line-height: 1.65;
  color: var(--color-graphite);
}

.regulamin-utility {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding-block: 0 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.regulamin-utility__link {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  color: var(--color-caramel);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.regulamin-utility__link:hover,
.regulamin-utility__link:focus-visible {
  color: #8f6640;
}

.regulamin-utility__link:focus-visible {
  outline: 2px solid var(--color-caramel);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.regulamin-body {
  padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(2.5rem, 5vw, 4rem);
}

.regulamin-section + .regulamin-section {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  padding-top: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid var(--color-border);
}

.regulamin-section__heading {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-primary);
}

.regulamin-section__number {
  color: var(--color-burgundy);
}

.regulamin-block + .regulamin-block {
  margin-top: 0.875rem;
}

.regulamin-block__text,
.regulamin-block__list,
.regulamin-definitions,
.regulamin-seller,
.regulamin-return-dest,
.regulamin-withdrawal-form {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-graphite);
}

.regulamin-block__subheading {
  margin: 1.25rem 0 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--color-primary);
}

.regulamin-block__list {
  padding-left: 1.25rem;
}

.regulamin-block__list li + li {
  margin-top: 0.35rem;
}

.regulamin-definitions__item + .regulamin-definitions__item {
  margin-top: 0.75rem;
}

.regulamin-definitions__term {
  font-weight: 600;
  color: var(--color-primary);
}

.regulamin-seller__row + .regulamin-seller__row {
  margin-top: 0.35rem;
}

.regulamin-seller__label {
  font-weight: 600;
}

.regulamin-seller__note,
.regulamin-return-dest__note {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.regulamin-seller__note--dev,
.regulamin-return-dest__note--dev {
  font-style: italic;
}

.regulamin-withdrawal-form {
  padding: 1rem 1.125rem;
  border: 1px solid var(--color-border);
  background: var(--color-raised-surface);
}

.regulamin-withdrawal-form__line + .regulamin-withdrawal-form__line {
  margin-top: 0.65rem;
}

.regulamin-withdrawal-form__blank {
  display: inline-block;
  min-width: 12rem;
  border-bottom: 1px solid var(--color-taupe);
}

.regulamin-link {
  color: var(--color-caramel);
  text-decoration: none;
  font-weight: var(--font-weight-text-cta);
}

.regulamin-link:hover,
.regulamin-link:focus-visible {
  color: #8f6640;
}

.regulamin-link:focus-visible {
  outline: 2px solid var(--color-caramel);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

@media print {
  .regulamin-utility,
  .site-header,
  .site-footer,
  .site-header__utility {
    display: none !important;
  }

  .content-page--regulamin,
  .content-page--polityka-prywatnosci,
  .content-page--polityka-cookies {
    background: #fff;
  }

  .regulamin-section {
    break-inside: avoid-page;
  }
}

/* Privacy policy blocks */
.content-page--polityka-prywatnosci .content-page__eyebrow,
.content-page--polityka-cookies .content-page__eyebrow {
  color: var(--color-burgundy);
  font-weight: 700;
}

.privacy-data-category + .privacy-data-category,
.privacy-purpose + .privacy-purpose,
.privacy-retention + .privacy-retention {
  margin-top: 1rem;
}

.privacy-data-category__title,
.privacy-purpose__title,
.privacy-retention__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--color-primary);
}

.privacy-purpose__basis,
.privacy-purpose__detail,
.privacy-note {
  margin: 0.35rem 0 0;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-graphite);
}

.privacy-purpose__label,
.privacy-note {
  color: var(--color-muted);
}

.privacy-purpose-list {
  display: grid;
  gap: 1.25rem;
}

.privacy-purpose {
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.privacy-purpose:first-child {
  padding-top: 0;
  border-top: 0;
}

.privacy-rights-list {
  margin-top: 0.25rem;
}

/* Cookie policy blocks */
.cookie-category-list {
  display: grid;
  gap: 1rem;
}

.cookie-category-list__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--color-primary);
}

.cookie-inventory__scroll {
  overflow-x: auto;
}

.cookie-inventory__table {
  width: 100%;
  min-width: 40rem;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-graphite);
}

.cookie-inventory__table th,
.cookie-inventory__table td {
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.cookie-inventory__table th {
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-raised-surface);
}

.cookie-inventory__table code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8125rem;
}
