/* ════════════════════════════════════════════════════
   legal.css — Gribouille Event Lab
   Styles for: politique-confidentialite, politique-cookies,
               conditions-generales
════════════════════════════════════════════════════ */

/* ── Hero ── */
.legal-hero {
  padding-top: 150px;
  padding-bottom: 4rem;
}

.legal-hero h1 {
  font-family: var(--f-head);
  font-weight: 900;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.05;
  margin-top: .5rem;
  margin-bottom: 1rem;
}

.legal-hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.legal-intro {
  font-size: .85rem;
  font-weight: 300;
  opacity: .48;
  margin-top: .5rem;
}

/* ── Content ── */
.legal-content {
  padding: 4rem 0 6rem;
}

.legal-container {
  max-width: 780px;
}

.legal-section {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(18, 2, 30, .08);
}

.legal-section:last-of-type {
  border-bottom: none;
}

.legal-section h2 {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.legal-section p {
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: .9rem;
  opacity: .82;
}

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

.legal-section ul {
  list-style: none;
  margin: .5rem 0 .9rem 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.legal-section ul li {
  padding-left: 1.4rem;
  position: relative;
  font-weight: 300;
  line-height: 1.7;
  opacity: .82;
}

.legal-section ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.legal-section a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}

.legal-section a:hover {
  color: var(--accent);
}

/* ── Cookie table ── */
.cookie-table-wrap {
  overflow-x: auto;
  margin: 1.2rem 0;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}

.cookie-table th {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: left;
  padding: .75rem 1rem;
  background: var(--ink);
  color: var(--bg);
}

.cookie-table td {
  padding: .75rem 1rem;
  border-bottom: 1px solid rgba(18, 2, 30, .08);
  font-weight: 300;
  vertical-align: top;
}

.cookie-table tr:last-child td {
  border-bottom: none;
}

.cookie-table code {
  font-family: monospace;
  font-size: .85em;
  background: rgba(18, 2, 30, .06);
  padding: .15em .4em;
  border-radius: 3px;
}

/* ── Back link ── */
.legal-back {
  margin-top: 3rem;
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--ink);
  color: var(--ink);
}

.btn--outline:hover {
  background: var(--ink);
  color: var(--bg);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .legal-hero {
    padding-top: 100px;
    padding-bottom: 2.5rem;
  }

  .legal-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
  }

  .cookie-table th,
  .cookie-table td {
    padding: .6rem .75rem;
    font-size: .8rem;
  }
}
