/* Legal pages (Aviso legal, Privacidad, Cookies) — same tokens, header and footer as index.html */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --black: #080808;
  --offblack: #0f0f0f;
  --dark: #161616;
  --border: rgba(255,255,255,0.08);
  --text: #e8e4de;
  --muted: rgba(232,228,222,0.65);
  --accent: #c8a96e;
  --accent-dim: rgba(200,169,110,0.15);
  --white: #f5f2ed;
  --font: 'Inter', sans-serif;
}

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* LANGUAGE SWITCH */
.lang-switch {
  position: fixed;
  top: 26px; right: 48px;
  z-index: 1000;
  display: flex;
  gap: 4px;
}
.lang-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 4px 6px;
  transition: color 0.3s;
}
.lang-btn.active { color: var(--accent); }
.lang-btn:hover { color: var(--text); }
.lang-divider { color: var(--border); font-size: 13px; line-height: 26px; }

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
  background: linear-gradient(to bottom, rgba(8,8,8,0.98) 0%, rgba(8,8,8,0.9) 60%, transparent 100%);
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
  text-decoration: none;
}
.nav-logo-icon { width: 20px; height: 20px; }
.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--white); }

/* LEGAL CONTENT */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 160px 48px 120px;
}
.legal .legal-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.legal h1 {
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 16px;
}
.legal-updated {
  font-size: 13px;
  color: var(--muted);
  padding-bottom: 40px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.legal h2 {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--white);
  margin: 48px 0 16px;
}
.legal h2:first-child { margin-top: 0; }
.legal p,
.legal li {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--muted);
}
.legal p + p { margin-top: 14px; }
.legal ul { margin: 14px 0 0 20px; }
.legal li + li { margin-top: 6px; }
.legal strong { color: var(--text); font-weight: 500; }
.legal a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(200,169,110,0.35); }
.legal a:hover { border-bottom-color: var(--accent); }
.legal dl {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 10px 24px;
  margin-top: 8px;
}
.legal dt { font-size: 13px; font-weight: 500; letter-spacing: 0.04em; color: var(--text); padding-top: 2px; }
.legal dd { font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 14px;
}
.legal th, .legal td {
  text-align: left;
  vertical-align: top;
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  line-height: 1.6;
}
.legal th { color: var(--text); font-weight: 500; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.legal code { font-size: 13px; color: var(--text); }

/* Items still to be completed by the site owner */
.pending {
  background: rgba(200,169,110,0.18);
  color: var(--accent);
  border: 1px dashed rgba(200,169,110,0.6);
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 500;
}

/* FOOTER */
footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  color: var(--white);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
}
.footer-logo-icon { width: 20px; height: 20px; }
.footer-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 20px;
  font-size: 12px;
  color: rgba(232,228,222,0.5);
  letter-spacing: 0.04em;
}
.footer-copy a { color: inherit; text-decoration: none; transition: color 0.3s; }
.footer-copy a:hover,
.footer-copy a[aria-current="page"] { color: var(--accent); }
.footer-links { display: flex; gap: 32px; }
.footer-links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(232,228,222,0.6);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--accent); }

/* MOBILE */
@media (max-width: 768px) {
  nav { padding: 20px 24px; }
  .nav-links { display: none; }
  /* Same as home: logo mark left, name centred */
  .nav-logo-text {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
  }
  .lang-switch { top: 17px; right: 20px; gap: 0; }
  .lang-btn { padding: 4px 4px; }
  .legal { padding: 120px 24px 80px; }
  .legal dl { grid-template-columns: 1fr; gap: 2px; }
  .legal dd { margin-bottom: 12px; }
  .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; }
  .legal thead { display: none; }
  .legal td { border-bottom: none; padding: 2px 0; }
  .legal td:first-child { color: var(--text); }
  .legal tr { border-bottom: 1px solid var(--border); padding: 12px 0; }
  footer { padding: 24px; flex-direction: column; gap: 16px; text-align: center; }
  .footer-logo { width: 100%; }
  .footer-logo-name { display: flex; justify-content: center; position: relative; width: 100%; }
  .footer-logo-icon { position: absolute; left: 0; top: 50%; transform: translateY(-50%); }
  .footer-links { gap: 20px; }
}
