/* ==========================================================================
   Privacy — /{lang}/privacy/ (SITEMAP 2.11). Owner: strona-privacy-404.
   One paper (dziedziniec) document: nameplate + lead, framed summary "In short",
   sticky contents beside a reading column, table of browser notes, closing band.
   Colors only through surface variables (DESIGN-IMPL §1.2); no hex values here.
   ========================================================================== */

/* ---------- head: nameplate + lead | framed summary ---------- */
.pv__head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  column-gap: clamp(2rem, 6vw, 7rem);
  row-gap: var(--s-8);
  align-items: start;
}
.pv__intro > * + * {
  margin-top: var(--s-6);
}
.pv__lead {
  max-width: 40ch;
  -webkit-hyphens: manual;
  hyphens: manual;
}
/* the document ends the section; the closing band follows closely */
.section.pv {
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.pv__updated {
  margin-top: var(--s-4);
}

/* summary in the brand frame (crest ◇◆◇ top and bottom) on a paper passe-partout */
.pv__short {
  --frame-pad: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: 0 30px 60px -40px rgba(36, 20, 16, 0.45);
}
.pv__short-title {
  margin: 0 0 var(--s-4);
  font-family: var(--ff-display);
  font-weight: var(--fw-display);
  letter-spacing: var(--ls-display);
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
  color: var(--heading);
}
.pv__facts {
  margin: 0;
  padding: 0;
  list-style: none;
}
.pv__facts li {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.6rem;
  border-top: 1px solid var(--line);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--text);
}
.pv__facts li:first-child {
  border-top: 0;
  padding-top: 0.2rem;
}
.pv__facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(0.85rem + 0.45em);
  width: 0.55rem;
  height: 0.55rem;
  background-color: var(--gold-text);
  -webkit-mask: var(--svg-dia) center / contain no-repeat;
  mask: var(--svg-dia) center / contain no-repeat;
}
.pv__facts li:first-child::before {
  top: calc(0.2rem + 0.45em);
}

/* ---------- body: contents | document ---------- */
.pv__body {
  display: grid;
  grid-template-columns: minmax(12rem, 3fr) minmax(0, 9fr);
  column-gap: clamp(2rem, 6vw, 7rem);
  align-items: start;
  margin-top: clamp(1rem, 3vw, 2.5rem);
}
.pv__toc {
  position: sticky;
  top: calc(var(--header-h) + var(--s-8));
  padding-top: var(--s-6);
  border-top: 2px solid var(--frame-outer);
}
.pv__toc-title {
  margin: 0 0 var(--s-3);
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  font-weight: 500;
  color: var(--gold-text);
}
.pv__toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.pv__toc li + li {
  margin-top: 0.15rem;
}
.pv__toc a {
  display: block;
  padding-block: 0.35rem;
  font-size: 0.975rem;
  line-height: 1.4;
  color: var(--text-2);
  text-decoration: none;
  transition: color var(--d-fast) var(--ease-lacquer);
}
.pv__toc a:hover {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: var(--link-line);
  text-underline-offset: 0.2em;
}

.pv__doc {
  max-width: 40rem;
}
.pv__part {
  padding-top: var(--s-6);
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + var(--s-6));
}
.pv__part + .pv__part {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.pv__part > * + * {
  margin-top: 1em;
}
.pv__h {
  margin: 0;
  font-family: var(--ff-display);
  font-weight: var(--fw-display);
  letter-spacing: var(--ls-display);
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  color: var(--heading);
  text-wrap: balance;
}
.pv__part > .pv__h + * {
  margin-top: var(--s-4);
}
.pv__sub {
  font-family: var(--ff-display);
  font-weight: var(--fw-display);
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
  color: var(--heading);
}
.pv__part > .pv__sub {
  margin-top: 1.6em;
}
.pv__part p {
  max-width: var(--measure);
  text-wrap: pretty;
}
.pv__part a {
  color: var(--link);
  text-decoration-color: var(--link-line);
  text-underline-offset: 0.18em;
}
.pv__part a:hover {
  color: var(--link-hover);
}
/* addresses and IDs never break or hyphenate */
.pv__part a[href^="mailto:"],
.pv__part a[href^="tel:"] {
  -webkit-hyphens: none;
  hyphens: none;
  white-space: nowrap;
}
.pv__list {
  margin-block: 0;
  padding: 0;
  list-style: none;
}
.pv__list li {
  position: relative;
  padding-left: 1.4rem;
}
.pv__list li + li {
  margin-top: 0.45rem;
}
.pv__list li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.62em;
  width: 0.45rem;
  height: 0.45rem;
  background-color: var(--gold-text);
  -webkit-mask: var(--svg-dia) center / contain no-repeat;
  mask: var(--svg-dia) center / contain no-repeat;
}
.pv__id {
  font-weight: 600;
  white-space: nowrap;
}

/* name, address, e-mail, phone — one line each */
.pv__nap {
  display: grid;
  gap: 0.2rem;
  padding: var(--s-4) var(--s-6);
  border-left: 2px solid var(--frame-outer);
  font-style: normal;
}
.pv__nap-name {
  font-family: var(--ff-display);
  font-weight: var(--fw-display);
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
  color: var(--heading);
}
.pv__nap a {
  justify-self: start;
}

/* ---------- table: notes kept by the browser ---------- */
.pv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.5;
}
.pv-table th,
.pv-table td {
  padding: 0.85rem 1rem 0.85rem 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.pv-table thead th {
  padding-block: 0 0.6rem;
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  font-weight: 500;
  color: var(--gold-text);
  border-bottom: 2px solid var(--frame-outer);
}
.pv-table tbody th {
  width: 11.5rem;
  font-weight: 400;
}
.pv-table td:last-child {
  width: 10rem;
  padding-right: 0;
  color: var(--text-2);
}
.pv-table code {
  display: inline-block;
  padding: 0.05em 0.4em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--chip-bg);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text);
}
.pv-table__type {
  display: block;
  margin-top: 0.3rem;
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  color: var(--text-3);
}

/* ---------- closing band ---------- */
.pv-ask__inner {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: var(--s-4);
}
.pv-ask__inner [lang] {
  text-align: inherit; /* base.css: [lang="th"] { text-align: start } */
}
.pv-ask__inner > .ornament-rule {
  margin-bottom: var(--s-4);
}
.pv-ask__title {
  margin: 0;
  font-family: var(--ff-display);
  font-weight: var(--fw-display);
  letter-spacing: var(--ls-display);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  color: var(--heading);
  text-wrap: balance;
}
.pv-ask__text {
  max-width: 38ch;
  margin: 0;
  color: var(--text-2);
}
.pv-ask__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-3);
  margin-top: var(--s-4);
}
.pv-ask__more {
  margin-top: var(--s-2);
}

/* ---------- ≤ 64rem: summary under the heading, contents above the text ---------- */
@media (max-width: 64rem) {
  .pv__head {
    grid-template-columns: minmax(0, 1fr);
  }
  .pv__short {
    max-width: 40rem;
  }
  .pv__body {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--s-12);
  }
  .pv__toc {
    position: static;
    max-width: 40rem;
  }
  .pv__toc ul {
    columns: 2 14rem;
    column-gap: var(--s-8);
  }
  .pv__toc li {
    break-inside: avoid;
  }
}

/* ---------- ≤ 48rem: table rows become stacked entries ---------- */
@media (max-width: 48rem) {
  .pv__lead {
    max-width: none;
  }
  .pv__short {
    --frame-pad: 1.1rem;
  }
  .pv__facts li {
    font-size: 1rem;
  }
  .pv-table,
  .pv-table tbody,
  .pv-table tr,
  .pv-table th,
  .pv-table td {
    display: block;
    width: auto;
  }
  .pv-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .pv-table tr {
    padding-block: var(--s-4);
    border-bottom: 1px solid var(--line);
  }
  .pv-table tr:first-child {
    border-top: 2px solid var(--frame-outer);
  }
  .pv-table th,
  .pv-table td {
    padding: 0;
    border: 0;
  }
  .pv-table tbody th {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.75rem;
    width: auto;
  }
  .pv-table__type {
    margin-top: 0;
  }
  .pv-table td {
    margin-top: 0.5rem;
  }
  .pv-table td:last-child {
    width: auto;
  }
  .pv-table td::before {
    content: attr(data-label);
    display: block;
    font-size: var(--fs-small);
    line-height: var(--lh-small);
    font-weight: 500;
    color: var(--gold-text);
  }
  .pv-ask__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 22rem;
  }
}
