/* ================================================================
   policy.css — Privacy Policy & Cookie Policy
   Stesso stile di StefanoBnB: Playfair Display + DM Sans
   ================================================================ */

/* ── Page layout ────────────────────────────────────────── */
.policy-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

/* ── Page header ────────────────────────────────────────── */
.policy-header {
  border-bottom: 1px solid #e8e3da;
  padding-bottom: 2.2rem;
  margin-bottom: 2.5rem;
}

.policy-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8b7355;
  margin-bottom: .7rem;
}

.policy-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
  margin: 0 0 1rem;
}

.policy-title em {
  font-style: italic;
  color: #8b7355;
}

.policy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.policy-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #666;
  background: #f5f2ec;
  padding: 5px 12px;
  border-radius: 20px;
}

/* ── Section blocks ─────────────────────────────────────── */
.policy-section {
  margin-bottom: 2.4rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid #f0ece4;
}

.policy-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.policy-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.policy-section h2 .section-num {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #8b7355;
  background: #f5f2ec;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: .03em;
  flex-shrink: 0;
}

.policy-section h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin: 1.5rem 0 .6rem;
}

.policy-section p {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #444;
  line-height: 1.75;
  margin: 0 0 .9rem;
}

.policy-section p:last-child { margin-bottom: 0; }

.policy-section ul {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #444;
  line-height: 1.75;
  margin: .4rem 0 .9rem 0;
  padding-left: 1.3rem;
}

.policy-section ul li {
  margin-bottom: .35rem;
}

.policy-section a {
  color: #8b7355;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .15s;
}

.policy-section a:hover { color: #5c4a2a; }

/* ── Titolare card ──────────────────────────────────────── */
.titolare-card {
  background: #faf8f4;
  border: 1px solid #e8e3da;
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #333;
  line-height: 1.8;
}

.titolare-card strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: .4rem;
  font-family: 'Playfair Display', serif;
}

.titolare-card a {
  color: #8b7355;
  text-decoration: none;
}

.titolare-card a:hover { text-decoration: underline; }

/* ── Rights grid ────────────────────────────────────────── */
.rights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-top: .6rem;
}

.right-item {
  background: #faf8f4;
  border: 1px solid #e8e3da;
  border-radius: 10px;
  padding: 1rem 1.1rem;
}

.right-item-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: .3rem;
}

.right-item-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

/* ── Cookie tables ──────────────────────────────────────── */
.cookie-table-wrap {
  overflow-x: auto;
  margin: .8rem 0 1.2rem;
  border-radius: 10px;
  border: 1px solid #e8e3da;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
}

.cookie-table thead th {
  background: #f5f2ec;
  color: #555;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 10px 14px;
  text-align: left;
  white-space: nowrap;
}

.cookie-table tbody td {
  padding: 10px 14px;
  color: #444;
  border-top: 1px solid #f0ece4;
  vertical-align: top;
  line-height: 1.55;
}

.cookie-table tbody tr:hover td {
  background: #faf8f4;
}

.cookie-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  letter-spacing: .04em;
}

.badge-required {
  background: #eaf3de;
  color: #3b6d11;
}

.badge-analytics {
  background: #e6f1fb;
  color: #185fa5;
}

/* ── Browser links ──────────────────────────────────────── */
.browser-list {
  list-style: none;
  padding: 0;
  margin: .6rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.browser-list li a {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  color: #444;
  background: #f5f2ec;
  border: 1px solid #e8e3da;
  border-radius: 8px;
  padding: 5px 13px;
  text-decoration: none;
  transition: background .14s, color .14s;
}

.browser-list li a:hover {
  background: #ede8de;
  color: #1a1a1a;
}

/* ── Nota box ───────────────────────────────────────────── */
.policy-note {
  background: #f5f2ec;
  border-left: 3px solid #8b7355;
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #555;
  line-height: 1.65;
  margin: .8rem 0;
}

.policy-note strong { color: #333; }

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .policy-page { padding: 2rem 1.1rem 4rem; }
  .rights-grid { grid-template-columns: 1fr; }
  .policy-section h2 { font-size: 19px; flex-wrap: wrap; }
}
