/* Documents and consent share the landing's type and palette. */
.legal-header {
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.legal-header .brand img {
  width: 164px;
  height: auto;
}
.legal-header > a:last-child {
  font-size: 15px;
  color: var(--green);
}
.legal-main {
  overflow-wrap: anywhere;
  max-width: 840px;
  margin: 0 auto;
  padding: 56px 28px 64px;
}
.legal-main h1 {
  font-size: 42px;
  line-height: 1.2;
  letter-spacing: -1px;
  margin: 12px 0 20px;
}
.legal-main h2 {
  font-family: var(--sans);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
  margin: 36px 0 12px;
}
.legal-main p,
.legal-main li {
  font-size: 16px;
  line-height: 1.75;
}
.legal-main p + p {
  margin-top: 14px;
}
.legal-main ul,
.legal-main ol {
  padding-left: 24px;
  margin: 12px 0;
}
.legal-main li + li {
  margin-top: 8px;
}
.legal-main a:not(.button) {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-meta {
  color: var(--muted);
  font-size: 14px !important;
}
.legal-intro {
  font-size: 18px !important;
  color: var(--muted);
  margin-bottom: 28px;
}
.legal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding-top: 24px;
  padding-bottom: 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.legal-footer a:hover,
.legal-footer button:hover {
  color: var(--green);
  text-decoration: underline;
}
.legal-footer button {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
}
.cookie-banner[hidden] {
  display: none;
}
.cookie-banner {
  position: fixed;
  z-index: 80;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 1120px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 12px 48px #1f1b1820;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}
.cookie-banner > div:first-child {
  flex: 1 1 420px;
}
.cookie-banner strong {
  font-weight: 500;
  font-size: 17px;
}
.cookie-banner p,
.cookie-dialog p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  margin: 8px 0 0;
}
.cookie-banner a,
.cookie-dialog a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.cookie-actions .button {
  font-size: 14px;
  min-height: 48px;
  gap: 8px;
  padding: 10px 18px;
  white-space: normal;
  transition: background 0.2s;
}
.cookie-actions .button:hover {
  transform: none;
}
.cookie-settings-link {
  background: none;
  border: 0;
  color: var(--green);
  font-size: 14px;
  padding: 12px;
}
.cookie-dialog {
  position: fixed;
  inset: 0;
  width: min(620px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
}
.cookie-dialog::backdrop {
  background: #1f1b1870;
}
.cookie-dialog h2 {
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0;
}
.cookie-option {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.cookie-option > div {
  flex: 1;
  min-width: 0;
}
.cookie-option strong {
  font-size: 16px;
  font-weight: 500;
}
.cookie-option > span {
  font-size: 12px;
  color: var(--muted);
}
.cookie-option input {
  accent-color: var(--green);
  width: 24px;
  height: 24px;
  flex: none;
}
.cookie-dialog .cookie-actions {
  margin-top: 24px;
}
.cookie-dialog .cookie-actions > button {
  flex: 1;
}
@media (max-width: 640px) {
  .legal-header {
    height: 88px;
    gap: 16px;
  }
  .legal-header .brand img {
    width: 128px;
  }
  .legal-header > a:last-child {
    font-size: 14px;
  }
  .legal-main {
    padding: 32px 20px 48px;
  }
  .legal-main h1 {
    font-size: 32px;
    letter-spacing: -0.7px;
  }
  .legal-main h2 {
    font-size: 21px;
    margin-top: 28px;
  }
  .legal-main p,
  .legal-main li {
    font-size: 16px;
    line-height: 1.7;
  }
  .legal-footer {
    gap: 14px 20px;
    font-size: 14px;
  }
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 20px;
    max-height: calc(100dvh - 24px);
    overflow: auto;
    gap: 16px;
  }
  .cookie-banner > div:first-child {
    flex-basis: 100%;
  }
  .cookie-actions {
    width: 100%;
  }
  .cookie-actions .button {
    flex: 1 1 150px;
  }
  .cookie-settings-link {
    order: 3;
    width: 100%;
  }
  .cookie-dialog {
    padding: 24px;
  }
  .cookie-option {
    gap: 12px;
  }
  .cookie-option p {
    font-size: 14px;
  }
  .cookie-dialog .cookie-actions > button {
    flex-basis: 100%;
  }
}

/* Account deletion: a plain contact row within the document. */
.deletion-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 32px 0;
  padding: 26px 0;
  border-block: 1px solid var(--line);
}
.deletion-contact-details {
  min-width: 0;
  max-width: 490px;
}
.legal-main .deletion-contact-label {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.legal-main .deletion-contact-email {
  display: inline-block;
  max-width: 100%;
  font-size: 24px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.4px;
  text-decoration: none;
}
.legal-main .deletion-contact-note {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}
.legal-main .deletion-contact-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-height: 44px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.deletion-contact-action svg {
  flex-shrink: 0;
}
.deletion-contact a:hover {
  color: var(--ink);
}
.deletion-contact a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 5px;
  border-radius: 2px;
}
@media (max-width: 640px) {
  .deletion-contact {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin: 26px 0;
    padding: 22px 0;
  }
  .legal-main .deletion-contact-email {
    font-size: 22px;
  }
  .legal-main .deletion-contact-note {
    margin-top: 8px;
  }
}

/* Offer: readable service terms on narrow screens. */
.legal-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.6;
}
.legal-table th,
.legal-table td {
  text-align: left;
  vertical-align: top;
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
}
.legal-table th {
  font-weight: 500;
}
.legal-table th:first-child {
  padding-left: 0;
}
.legal-table td:last-child,
.legal-table th:last-child {
  white-space: nowrap;
}
.legal-requisites {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 14px 24px;
  font-size: 16px;
  line-height: 1.6;
}
.legal-requisites dt {
  color: var(--muted);
}
.legal-requisites dd {
  margin: 0;
}
@media (max-width: 640px) {
  .legal-requisites {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .legal-requisites dd {
    margin-bottom: 16px;
  }
  .legal-table th,
  .legal-table td {
    padding: 12px 8px;
    font-size: 14px;
  }
}
