/* ═══════════════════════════════════════════
   T.Com ICT — Stili pagine legali (Privacy & Cookie)
   File: css/legale.css
═══════════════════════════════════════════ */

/* ── HERO LEGALE ── */
.page-hero {
  padding: 120px 5% 60px;
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
}

.breadcrumb { font-size: 0.8rem; color: var(--text-light); margin-bottom: 1rem; }
.breadcrumb a { color: var(--accent); text-decoration: none; }

.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; color: var(--text-dark); margin-bottom: 0.8rem;
}

.page-hero .meta {
  font-size: 0.85rem; color: var(--text-light);
  display: flex; gap: 2rem; flex-wrap: wrap;
}

.meta-item { display: flex; align-items: center; gap: 0.4rem; }

/* ── LAYOUT CON SIDEBAR ── */
.layout {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 260px 1fr;
  gap: 60px; padding: 60px 5%;
  align-items: start;
}

/* ── SIDEBAR ── */
.sidebar { position: sticky; top: 88px; }

.sidebar-title {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-light); margin-bottom: 1rem;
}

.toc { list-style: none; }
.toc li { border-bottom: 1px solid var(--border); }
.toc a {
  display: block; padding: 0.65rem 0;
  font-size: 0.88rem; color: var(--text-mid);
  text-decoration: none; transition: color 0.2s;
}
.toc a:hover { color: var(--accent); }

/* ── CONTENUTO ── */
.content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700;
  color: var(--text-dark);
  margin: 2.5rem 0 1rem;
  padding-top: 2rem;
  border-top: 2px solid var(--accent-light);
}

.content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }

.content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 600;
  color: var(--text-dark); margin: 1.8rem 0 0.6rem;
}

.content p  { font-size: 0.95rem; color: var(--text-mid); margin-bottom: 1rem; font-weight: 300; }
.content ul,
.content ol  { margin: 0.5rem 0 1rem 1.5rem; }
.content li  { font-size: 0.95rem; color: var(--text-mid); margin-bottom: 0.4rem; font-weight: 300; }

/* ── BOX INFORMATIVI ── */
.info-box {
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 1.2rem 1.4rem; margin: 1.5rem 0;
}
.info-box p { margin-bottom: 0; font-size: 0.9rem; }
.info-box strong { color: var(--accent); }

.warning-box {
  background: #fff8e6;
  border-left: 3px solid var(--accent-warm);
  border-radius: 0 8px 8px 0;
  padding: 1.2rem 1.4rem; margin: 1.5rem 0;
}
.warning-box p { margin-bottom: 0; font-size: 0.9rem; }

/* ── GRIGLIA DIRITTI ── */
.rights-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin: 1.5rem 0;
}

.right-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 8px; padding: 1.2rem;
}
.right-card-title { font-weight: 600; font-size: 0.9rem; color: var(--text-dark); margin-bottom: 0.3rem; }
.right-card p { font-size: 0.84rem; margin-bottom: 0; }

/* ── BLOCCO CONTATTI ── */
.contact-block {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 1.6rem; margin: 1.5rem 0;
}
.contact-block p { margin-bottom: 0.3rem; }
.contact-block strong { color: var(--text-dark); }

/* ── TABELLA COOKIE ── */
.cookie-table-wrap { overflow-x: auto; margin: 1.5rem 0; }

table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
thead { background: var(--accent); color: white; }
thead th { padding: 0.85rem 1rem; text-align: left; font-weight: 500; }
tbody tr { border-bottom: 1px solid var(--border); }
tbody tr:nth-child(even) { background: var(--off-white); }
tbody td { padding: 0.75rem 1rem; color: var(--text-mid); vertical-align: top; }
tbody td strong { color: var(--text-dark); }

/* ── BADGE TIPOLOGIA COOKIE ── */
.badge {
  display: inline-block; padding: 0.2rem 0.6rem;
  border-radius: 20px; font-size: 0.75rem; font-weight: 500;
}
.badge-tecnico     { background: #e8f5e2; color: #2e7d32; }
.badge-analitico   { background: var(--accent-light); color: var(--accent); }
.badge-terze-parti { background: #fff8e6; color: #b36b00; }

/* ── BROWSER GRID ── */
.browsers-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; margin: 1.5rem 0;
}
.browser-card {
  background: var(--off-white); border: 1px solid var(--border);
  border-radius: 8px; padding: 1.2rem; text-align: center;
}
.browser-name { font-weight: 600; font-size: 0.9rem; color: var(--text-dark); margin-bottom: 0.4rem; }
.browser-card a { color: var(--accent); font-size: 0.82rem; text-decoration: none; }
.browser-card a:hover { text-decoration: underline; }

/* ── NAV BACK (pagine legali) ── */
.nav-back {
  font-size: 0.88rem; font-weight: 500;
  color: var(--text-mid); text-decoration: none;
  display: flex; align-items: center; gap: 0.4rem;
  transition: color 0.2s;
}
.nav-back:hover { color: var(--accent); }

/* ── FORM (pagina contatti) ── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-mid);
  letter-spacing: 0.02em;
}

input, textarea, select {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--text-dark);
  background: white;
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
}

textarea {
  resize: vertical;
  min-height: 130px;
}

/* ── RESPONSIVE LEGALE ── */
@media (max-width: 768px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .rights-grid { grid-template-columns: 1fr; }
  .browsers-grid { grid-template-columns: 1fr 1fr; }
}

/* ── PULSANTE DOWNLOAD PDF (pagina privacy) ── */
.btn-download-privacy {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.2rem;
  padding: 0.65rem 1.4rem;
  background: var(--accent);
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 12px rgba(46,125,50,0.22);
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}
.btn-download-privacy svg {
  flex-shrink: 0;
  opacity: 0.90;
}
.btn-download-privacy:hover {
  background: #1b5e20;
  box-shadow: 0 4px 20px rgba(46,125,50,0.32);
  transform: translateY(-1px);
}
.btn-download-privacy:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(46,125,50,0.20);
}
