/* Import Montserrat font */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap");

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body,
html {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
}
h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px;
}

.hr {
  width: 100%;
  height: 1px;
  background-color: #efefef;
  margin: 20px 0;
}

section {
  margin: 20px 0;
}

p {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  margin-bottom: 10px;
  color: black;
}

.heading {
  font-size: 24px;
  font-weight: 700;
  line-height: 30px;
  color: black;
  margin-bottom: 20px;
  text-align: center;
}

.title {
  font-size: 18px;
  font-weight: 700;
  line-height: 30px;
  color: black;
}

.toc a {
  text-decoration: none;
}

.toc a p {
  cursor: pointer;
}

.list {
  padding-left: 30px;
  list-style-type: disc;
}

.list li {
  margin-bottom: 10px;
}

.list a {
  text-decoration: none;
  color: black;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}

table p {
  margin-bottom: 0;
}

.table-2-row,
.table-3-row {
  table-layout: fixed;
}

th,
td {
  padding: 10px;
  text-align: left;
  border: 1px solid #ddd;
  word-break: break-word;
}

td p:not(:last-child) {
  margin-bottom: 10px;
}

thead th {
  font-weight: 700;
}

tbody tr:nth-child(even) {
  background-color: #ffffff;
}

tbody tr:nth-child(odd) {
  background-color: #f2f2f2;
}

.table-2-row col:nth-of-type(1) {
  width: 40%;
}

.table-2-row col:nth-of-type(2) {
  width: 60%;
}

.table-3-row col:nth-of-type(1) {
  width: 15%;
}

.table-3-row col:nth-of-type(2) {
  width: 70%;
}

.table-3-row col:nth-of-type(3) {
  width: 15%;
}

/* Documents tables: 3 columns with 60% / 20% / 20% */
.table-documents {
  table-layout: fixed;
}

.table-documents col:nth-of-type(1) {
  width: 60%;
}

.table-documents col:nth-of-type(2) {
  width: 20%;
}

.table-documents col:nth-of-type(3) {
  width: 20%;
}

@media screen and (max-width: 768px) {
  th,
  td {
    padding: 5px;
    font-size: 13px;
  }

  th p,
  td p {
    font-size: 13px;
  }

  .table-3-row col:nth-of-type(1) {
    width: 25%;
  }

  .table-3-row col:nth-of-type(2) {
    width: 50%;
  }

  .table-3-row col:nth-of-type(3) {
    width: 25%;
  }

  .table-documents col:nth-of-type(1) {
    width: 40%;
  }

  .table-documents col:nth-of-type(2) {
    width: 40%;
  }

  .table-documents col:nth-of-type(3) {
    width: 20%;
  }
}

ol {
  list-style-type: none;
  counter-reset: item;
  padding-left: 0;
}

ol > li {
  display: block;
  counter-increment: item;
  margin-bottom: 10px;
  position: relative;
  padding-left: 30px;
}

ol > li:before {
  content: counter(item) ". ";
  position: absolute;
  left: 0;
  width: 25px;
  text-align: right;
  margin-right: 5px;
}

ol ol {
  counter-reset: subitem;
  padding-left: 20px;
  margin-top: 6px;
}

ol ol > li {
  counter-increment: subitem;
}

ol ol > li::before {
  content: counter(subitem) ") ";
  position: absolute;
  left: 0;
  width: 25px;
  text-align: right;
  margin-right: 5px;
}

/* =========================
   RODO - wybór kraju (widok /rodo)
   ========================= */

.rodo-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

.rodo-card {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 32px 28px;
  border: 1px solid #efefef;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  background-color: #ffffff;
}

.rodo-lead {
  text-align: center;
  margin-bottom: 24px;
}

.rodo-field {
  margin-bottom: 24px;
}

.rodo-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #666666;
  margin-bottom: 8px;
}

/* Custom select */

.country-select {
  position: relative;
  width: 100%;
}

.country-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 16px;
  color: black;
  background-color: #ffffff;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.country-select-trigger:hover {
  border-color: #b3b3b3;
}

.country-select-trigger:focus-visible {
  outline: none;
  border-color: #1a1a1a;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.country-select[data-open="true"] .country-select-trigger {
  border-color: #1a1a1a;
}

.country-select-current {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
}

.country-select-current span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-select-chevron {
  flex-shrink: 0;
  color: #666666;
  transition: transform 0.15s ease;
}

.country-select[data-open="true"] .country-select-chevron {
  transform: rotate(180deg);
}

.flag-icon {
  flex-shrink: 0;
  display: block;
  width: 24px;
  height: 18px;
  border-radius: 3px;
  object-fit: cover;
  background-color: #f2f2f2;
}

.country-select-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  margin: 0;
  padding: 6px;
  list-style: none;
  max-height: 280px;
  overflow-y: auto;
  background-color: #ffffff;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  display: none;
}

.country-select[data-open="true"] .country-select-options {
  display: block;
}

.country-select-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  color: black;
}

.country-select-option:hover,
.country-select-option:focus {
  background-color: #f2f2f2;
  outline: none;
}

.country-select-option[aria-selected="true"] {
  background-color: #f2f2f2;
  font-weight: 700;
}

.rodo-button {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  background-color: #1a1a1a;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.05s ease;
}

.rodo-button:hover {
  background-color: #333333;
}

.rodo-button[aria-disabled="true"] {
  background-color: #b3b3b3;
  cursor: not-allowed;
  pointer-events: none;
}

.flag-icon[hidden] {
  display: none;
}

.rodo-button:active {
  transform: scale(0.99);
}

@media screen and (max-width: 480px) {
  .rodo-card {
    padding: 24px 18px;
    border-radius: 10px;
  }

  .country-select-trigger,
  .country-select-option {
    font-size: 15px;
  }

  .rodo-button {
    font-size: 15px;
  }
}

.rodo-card--center {
  text-align: center;
}

.rodo-card--center .rodo-button {
  margin-top: 16px;
}

/* =========================
   RODO2 - loader / auto-redirect
   ========================= */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rodo-loader {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rodo-spinner {
  display: inline-block;
  width: 44px;
  height: 44px;
  border: 4px solid #efefef;
  border-top-color: #1a1a1a;
  border-radius: 50%;
  animation: rodo-spin 0.8s linear infinite;
}

@keyframes rodo-spin {
  to {
    transform: rotate(360deg);
  }
}
