/* =========================================================
   La Tahona de Carmen — Estilos compartidos para páginas
   legales y secundarias (aviso legal, privacidad, cookies).
   Mantienen la misma paleta y tipografía que index.html.
   ========================================================= */

:root {
  --cream: #F5EDE0;
  --cream-light: #FAF5EC;
  --cream-dark: #EADFC9;
  --espresso: #2D1B0E;
  --espresso-soft: #4A3325;
  --purple: #5C2D5A;
  --purple-dark: #3E1F3E;
  --gold: #D4A84B;
  --gold-light: #E6C878;
  --paper: #FDFAF3;
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body: 'Lora', Georgia, serif;
  --font-script: 'Caveat', cursive;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--espresso);
  line-height: 1.75;
  font-size: 17px;
  background-image:
    radial-gradient(ellipse at top, rgba(212, 168, 75, 0.06), transparent 60%),
    radial-gradient(ellipse at bottom, rgba(92, 45, 90, 0.04), transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--purple); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--purple-dark); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--espresso);
  line-height: 1.15;
}

h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 12px; }
h2 { font-size: clamp(22px, 3vw, 30px); margin-top: 40px; margin-bottom: 16px; }
h3 { font-size: 20px; margin-top: 28px; margin-bottom: 10px; }
p, ul, ol { margin-bottom: 18px; color: var(--espresso-soft); }
ul, ol { padding-left: 22px; }
li { margin-bottom: 8px; }

strong { color: var(--espresso); font-weight: 600; }

.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

/* Header simple */
.legal-header {
  padding: 24px 0;
  border-bottom: 1px solid var(--cream-dark);
  background: rgba(253, 250, 243, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.legal-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.legal-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--espresso);
}
.legal-logo img { height: 40px; width: auto; }
.legal-logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
}
.legal-back {
  font-size: 14px;
  color: var(--purple);
  text-decoration: none;
}
.legal-back:hover { text-decoration: underline; }

/* Contenido */
main.legal-main {
  padding: 60px 0 80px;
  flex: 1;
}
.legal-intro {
  font-family: var(--font-script);
  font-size: 22px;
  color: var(--gold-dark);
  margin-bottom: 32px;
}
.legal-updated {
  display: inline-block;
  padding: 6px 14px;
  background: var(--cream-dark);
  border-radius: 20px;
  font-size: 13px;
  color: var(--espresso-soft);
  margin-bottom: 30px;
}

/* Tabla de cookies */
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 30px;
  font-size: 14px;
  background: var(--paper);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px -4px rgba(45,27,14,0.1);
}
.cookie-table th,
.cookie-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--cream-dark);
  vertical-align: top;
}
.cookie-table th {
  background: var(--cream-dark);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--espresso);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cookie-table tr:last-child td { border-bottom: none; }
@media (max-width: 640px) {
  .cookie-table { font-size: 13px; }
  .cookie-table th, .cookie-table td { padding: 10px; }
}

/* Footer */
.legal-footer {
  padding: 30px 0;
  background: var(--espresso);
  color: var(--cream);
  text-align: center;
  font-size: 13px;
}
.legal-footer a { color: var(--gold-light); }
.legal-footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}
