/* Stile condiviso delle pagine legali (privacy.html, cookie.html).
   In fondo: copia delle regole del banner cookie da css/_cookie-banner.scss
   (le pagine legali non caricano style.css). Mantenere allineate. */
:root {
  --color-primary: #022905;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #1c1c1c;
  margin: 0;
  background: #fafafa;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
  background: white;
  min-height: 100vh;
}

h1 {
  color: var(--color-primary);
  font-size: 1.8rem;
}

h2 {
  color: var(--color-primary);
  font-size: 1.2rem;
  margin-top: 2rem;
}

a {
  color: var(--color-primary);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 1rem 0;
}

th,
td {
  border: 1px solid #d6dfd6;
  padding: 0.5rem 0.6rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: #f3f7f3;
}

.table-wrap {
  overflow-x: auto;
}

.note {
  background: #f3f7f3;
  border-left: 4px solid var(--color-primary);
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
}

.cookie-settings-btn {
  font: inherit;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  border: 1px solid var(--color-primary);
  background: var(--color-primary);
  color: white;
  cursor: pointer;
}

/* --- banner cookie --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  background: #022905;
  color: white;
  padding: .9rem 1.25rem;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, .25);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner-text {
  margin: 0;
  flex: 1 1 320px;
  font-size: .92rem;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.cookie-banner-link {
  color: white;
  font-size: .85rem;
  text-decoration: underline;
}

.cookie-banner-btn {
  font: inherit;
  font-size: .9rem;
  padding: .45rem 1.2rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .6);
  background: transparent;
  color: white;
  cursor: pointer;
}

.cookie-banner-btn--primary {
  background: white;
  color: #022905;
  border-color: white;
  font-weight: 600;
}

.cookie-banner-btn:hover {
  opacity: .85;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cookie-banner-actions {
    justify-content: center;
  }
}
