/* Pagine legali: /privacy-policy e /cookie-policy. */
.legal_page {
  padding: 48px 0 80px;
  color: #3e1a09;
}

.legal_page .container {
  max-width: 860px;
}

.legal_intro {
  margin-bottom: 32px;
  font-size: 17px;
  line-height: 1.6;
}

.legal_updated {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.legal_toc {
  margin: 0 0 40px;
  padding: 20px 24px;
  border-radius: 16px;
  background: #ffffff;
}

.legal_toc h2 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
}

.legal_toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2 260px;
  column-gap: 32px;
}

.legal_toc li {
  margin-bottom: 4px;
  break-inside: avoid;
}

.legal_page section {
  margin-bottom: 40px;
  scroll-margin-top: 120px;
}

.legal_page h2 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 800;
  color: #3e1a09;
}

.legal_page h3 {
  margin: 20px 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: #3e1a09;
}

.legal_page p,
.legal_page li {
  font-size: 16px;
  line-height: 1.65;
  color: #3e1a09;
}

.legal_page ul {
  padding-left: 20px;
}

.legal_page li {
  margin-bottom: 6px;
}

.legal_page a {
  color: #3e1a09;
  font-weight: 700;
  text-decoration: underline;
}

.legal_table_wrap {
  margin: 12px 0 8px;
  background: #ffffff;
  overflow-x: auto;
  border: 1px solid rgba(62, 26, 9, 0.15);
  border-radius: 12px;
}

.legal_table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 15px;
}

.legal_table th,
.legal_table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(62, 26, 9, 0.12);
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
  color: #3e1a09;
}

.legal_table th {
  background: #fff8e8;
  font-weight: 800;
}

.legal_table tr:last-child td {
  border-bottom: 0;
}

.legal_button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: #3e1a09;
  color: #f5f4ee;
  font-weight: 700;
  cursor: pointer;
}

.legal_button:focus-visible {
  outline: 3px solid #febb00;
  outline-offset: 2px;
}

@media (max-width: 575px) {
  .legal_page {
    padding: 32px 0 56px;
  }

  /* Su telefono ogni riga della tabella diventa una scheda. */
  .legal_table {
    min-width: 0;
  }

  .legal_table thead {
    display: none;
  }

  .legal_table,
  .legal_table tbody,
  .legal_table tr,
  .legal_table td {
    display: block;
  }

  .legal_table tr {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(62, 26, 9, 0.12);
  }

  .legal_table tr:last-child {
    border-bottom: 0;
  }

  .legal_table td {
    padding: 2px 0;
    border: 0;
  }

  .legal_table td::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.7;
  }

  .legal_table td + td {
    margin-top: 6px;
  }

  .legal_page h2 {
    font-size: 21px;
  }
}
