/* Typography and structure for the Russian and English legal documents. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--pax-background);
  color: var(--pax-text);
  font-family: var(--pax-font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
  overflow-wrap: anywhere;
}
a { color: var(--pax-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pax-text); }
a:focus-visible { outline: 3px solid var(--pax-focus); outline-offset: 4px; border-radius: 4px; }
.skip-link {
  position: absolute;
  top: -80px;
  left: 20px;
  z-index: 5;
  padding: 12px;
  background: var(--pax-surface);
  border: 1px solid var(--pax-border);
  border-radius: 16px;
}
.skip-link:focus { top: 12px; }
.site-header {
  max-width: 1120px;
  margin: 0 auto;
  padding: 25px 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 4px;
  text-decoration: none;
  color: var(--pax-text);
}
.site-header nav { display: flex; gap: 4px; flex-wrap: wrap; font-size: 14px; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 12px; border-radius: 16px; }
.site-header a[aria-current] {
  color: var(--pax-primary);
  background: var(--pax-active-surface);
  font-weight: 700;
}
main {
  max-width: 1120px;
  margin: 0 auto 48px;
  padding: 58px 68px 38px;
  background: var(--pax-surface);
  border: 1px solid var(--pax-border);
  border-radius: 16px;
}
.document-header {
  padding-bottom: 26px;
  border-bottom: 2px solid var(--pax-graphic);
  margin-bottom: 30px;
}
.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--pax-text-secondary);
}
h1 {
  margin: 0 0 15px;
  font-size: clamp(29px, 4vw, 43px);
  line-height: 1.2;
  letter-spacing: -1.1px;
  font-weight: 700;
  max-width: 920px;
}
.lead { margin: 0; color: var(--pax-text-secondary); font-size: 18px; line-height: 1.6; max-width: 780px; }
h2 { margin: 0 0 18px; font-size: 25px; line-height: 1.3; letter-spacing: -0.35px; }
h3 { margin: 28px 0 12px; font-size: 19px; line-height: 1.4; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
section { padding: 32px 0; border-bottom: 1px solid var(--pax-border); }
section:last-child { border-bottom: 0; }
section[id], h2[id], tr[id] { scroll-margin-top: 24px; }
section:target, h2:target { outline: none; }
ul { margin: 12px 0 18px; padding-left: 25px; }
li { margin: 8px 0; }
.contents {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 24px;
  padding: 20px 24px;
  margin: 0 0 12px;
  border: 1px solid var(--pax-border);
  background: var(--pax-surface-elevated);
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.55;
}
.contents a { text-decoration: none; }
.contents a:hover { text-decoration: underline; }
.contents .contents-label {
  grid-column: 1 / -1;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: var(--pax-text-secondary);
  font-weight: 700;
  margin-bottom: 4px;
}
.identity { display: grid; gap: 0; margin: 22px 0 24px; border-top: 1px solid var(--pax-border); }
.identity > div {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--pax-border);
}
.identity.compact > div { grid-template-columns: 160px 1fr; }
dt { font-weight: 700; font-size: 14px; }
dd { margin: 0; font-size: 15px; }
.table-scroll, .table-wrap {
  margin: 22px 0 26px;
  overflow-x: auto;
  border: 1px solid var(--pax-border);
  border-radius: 16px;
}
table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; line-height: 1.6; }
caption {
  text-align: left;
  padding: 15px 17px;
  font-size: 16px;
  font-weight: 700;
  background: var(--pax-surface-elevated);
  border-bottom: 1px solid var(--pax-border);
}
th, td { padding: 13px 15px; vertical-align: top; border-bottom: 1px solid var(--pax-border); text-align: left; }
thead th {
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  background: var(--pax-surface-elevated);
  color: var(--pax-text-secondary);
}
tbody th { font-weight: 600; }
tbody tr:nth-child(even) { background: var(--pax-active-surface); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
table tbody tr:target {
  background: var(--pax-warning-surface);
  box-shadow: inset 4px 0 0 var(--pax-warning);
}
table:not(.parameters) th:first-child { width: 30%; }
.parameters th:first-child { width: 27%; }
.parameters th:nth-child(2) { width: 25%; }
.parameters th:nth-child(3) { width: 48%; }
table.data-table th:first-child { width: 31%; }
.data-table td { font-size: 14px; }
.unresolved {
  display: inline-block;
  background: var(--pax-warning-surface);
  border: 1px solid var(--pax-warning);
  border-radius: 8px;
  padding: 3px 7px;
  color: var(--pax-warning);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.6px;
  white-space: nowrap;
}
.note {
  border-left: 3px solid var(--pax-graphic);
  padding: 12px 16px;
  background: var(--pax-surface-elevated);
  color: var(--pax-text-secondary);
  font-size: 14px;
  margin: 22px 0 6px;
}
.consent-text {
  margin: 24px 0;
  padding: 22px 25px;
  background: var(--pax-active-surface);
  border: 1px solid var(--pax-border);
  border-left: 4px solid var(--pax-primary);
  border-radius: 0 16px 16px 0;
}
.consent-text h3 { margin-top: 0; }
section.deletion-section {
  margin: 28px -26px 0;
  padding: 28px 26px;
  background: var(--pax-surface-elevated);
  border: 1px solid var(--pax-border);
  border-radius: 16px;
}
.button {
  display: inline-block;
  text-decoration: none;
  background: var(--pax-primary);
  border-radius: 16px;
  padding: 12px 20px;
  color: var(--pax-on-primary);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}
.button:hover { filter: brightness(0.92); color: var(--pax-on-primary); }
.action-row { margin: 22px 0; }
.document-footer {
  border-top: 1px solid var(--pax-border);
  padding-top: 24px;
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
  color: var(--pax-text-secondary);
}
.document-date { font-size: 14px; color: var(--pax-text-secondary); margin-top: 16px; margin-bottom: 0; }
.section-number { font-variant-numeric: tabular-nums; }
.policy-data p { margin-bottom: 14px; }
.policy-data strong { font-weight: 700; }
.related-documents { max-width: 1120px; margin: 0 auto; padding: 0 34px 32px; font-size: 14px; }
.related-documents nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }

@media (max-width: 760px) {
  body { font-size: 15px; }
  .site-header { padding: 20px; align-items: flex-start; }
  .site-header nav { gap: 4px; font-size: 12px; }
  .site-header nav a { padding: 10px; }
  .brand { font-size: 22px; }
  main { margin: 0 16px 24px; padding: 25px 22px 30px; }
  .document-header { margin-bottom: 14px; }
  h1 { font-size: 30px; letter-spacing: -0.7px; }
  h2 { font-size: 22px; }
  .lead { font-size: 16px; }
  .contents { grid-template-columns: 1fr; padding: 16px 18px; font-size: 13px; }
  .identity > div, .identity.compact > div { grid-template-columns: 1fr; gap: 4px; }
  .table-scroll, .table-wrap { margin: 18px 0 22px; }
  table { font-size: 12px; line-height: 1.6; }
  th, td { padding: 10px 8px; }
  .parameters th:first-child { width: 29%; }
  .parameters th:nth-child(2) { width: 26%; }
  .parameters th:nth-child(3) { width: 45%; }
  .unresolved { font-size: 8px; letter-spacing: 0; padding: 3px 4px; white-space: normal; }
  .consent-text { padding: 18px; }
  section.deletion-section { margin: 24px -8px 0; padding: 22px 16px; }
  .document-footer { flex-direction: column; gap: 8px; }
  section { padding: 25px 0; }
  .data-table, .data-table tbody, .data-table tr, .data-table th, .data-table td { display: block; width: 100%; }
  table.data-table th:first-child { width: 100%; }
  .data-table thead { display: none; }
  .data-table tbody th { padding-bottom: 5px; border-bottom: 0; font-size: 14px; }
  .data-table tbody td { padding-top: 0; font-size: 14px; border-bottom: 0; }
  .data-table tbody tr { border-bottom: 1px solid var(--pax-border); }
  .data-table tbody tr:last-child { border-bottom: 0; }
  .policy-data p { margin-bottom: 18px; }
  .related-documents { padding: 24px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  @page { size: A4; margin: 16mm 16mm 18mm; }
  :root {
    color-scheme: light;
    --pax-surface: white;
    --pax-surface-elevated: white;
    --pax-active-surface: white;
    --pax-border: #d7e5eb;
    --pax-text: black;
    --pax-text-secondary: black;
    --pax-primary: black;
    --pax-graphic: black;
    --pax-warning: black;
    --pax-warning-surface: white;
  }
  html { scroll-behavior: auto; }
  body { background: white; color: black; font-size: 10pt; line-height: 1.5; }
  .site-header, .skip-link, .related-documents { display: none; }
  main { padding: 0; margin: 0; max-width: none; border: 0; border-radius: 0; }
  .document-header { margin-bottom: 18px; padding-bottom: 15px; }
  h1 { font-size: 25pt; }
  h2 { font-size: 15pt; break-after: avoid; }
  h3 { font-size: 12pt; break-after: avoid; }
  .lead { font-size: 11pt; }
  .eyebrow { font-size: 8pt; }
  .contents { font-size: 9pt; gap: 4px 18px; padding: 12px 16px; }
  section { padding: 20px 0; }
  p, li { orphans: 3; widows: 3; }
  .table-scroll, .table-wrap { overflow: visible; border-radius: 0; margin: 15px 0; }
  table { font-size: 8pt; line-height: 1.45; }
  thead { display: table-header-group; }
  tr { break-inside: avoid; }
  th, td { padding: 8px 10px; }
  caption { font-size: 10pt; padding: 10px; }
  a { color: inherit; }
  .unresolved { font-size: 7pt; white-space: normal; }
  .identity > div { padding: 8px 0; }
  dt, dd { font-size: 9pt; }
  .note { font-size: 9pt; }
  .consent-text { padding: 16px; }
  section.deletion-section { margin: 18px 0 0; padding: 20px; }
  .button, .button:hover { background: transparent; color: inherit; border: 1px solid black; filter: none; }
  .document-footer { font-size: 8pt; }
  table tbody tr:target { box-shadow: none; }
}
