/* ==========================================================
   PhotoFreela — página legal (privacidade e cookies) e banner de cookies
   ========================================================== */

/* ---------- Página legal ---------- */
.legal { max-width: 860px; padding: 70px 0 60px; }
.legal h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 18px; }
.legal .lead { max-width: 70ch; }
.legal section { margin-top: 44px; scroll-margin-top: 100px; }
.legal h2 { font-size: 1.4rem; max-width: none; margin-bottom: 14px; color: var(--gold); }
.legal p { color: #CBD5E1; margin-bottom: 14px; }
.legal ul { color: #CBD5E1; padding-left: 22px; margin-bottom: 14px; display: grid; gap: 8px; }
.legal strong { color: var(--text); }
.legal a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

.toc {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 18px;
  margin-top: 30px; padding: 22px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
}
.toc a { color: var(--muted); font-size: .92rem; text-decoration: none; }
.toc a:hover { color: var(--gold); }

.placeholder {
  background: rgba(251,187,35,.14); color: var(--gold);
  padding: 1px 6px; border-radius: 6px; font-weight: 600;
}

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.legal table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.legal th, .legal td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--card-2); color: var(--text); font-weight: 700; }
.legal td { color: #CBD5E1; }
.legal tr:last-child td { border-bottom: 0; }

.updated { margin-top: 50px; font-size: .9rem; color: var(--faint); }

/* ---------- Banner de cookies ---------- */
.cookie-banner {
  position: fixed; left: 50%; bottom: 20px; z-index: 200;
  width: min(760px, calc(100% - 28px));
  transform: translate(-50%, 140%);
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  padding: 20px 22px;
  border-radius: 20px;
  background: rgba(16,22,35,.97);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--text);
}
.cookie-banner.show { transform: translate(-50%, 0); }
.cookie-text strong { font-size: .98rem; }
.cookie-text p { font-size: .86rem; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.cookie-text a { color: var(--gold); }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner button {
  font: inherit; font-weight: 700; font-size: .9rem;
  padding: 11px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent;
}
.cookie-banner .btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.cookie-banner .btn-gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 60%, #E0A21B);
  color: var(--on-gold);
}

@media (max-width: 640px) {
  .toc { grid-template-columns: 1fr; }
  .cookie-banner { flex-direction: column; align-items: stretch; bottom: 12px; padding: 18px; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions button { flex: 1; }
}
