/* ============ PUNTO AMOR — LEGAL PAGES ============ */
:root {
  --cream:        #f5efe4;
  --cream-deep:   #ebe1cf;
  --sand:         #d8c6a5;
  --ink:          #221d16;
  --ink-soft:     #43392c;
  --gold:         #a48656;
  --line:         rgba(34, 29, 22, 0.12);
  --line-strong:  rgba(34, 29, 22, 0.30);
  --display:      'Italiana', 'Cormorant Garamond', serif;
  --serif:        'Cormorant Garamond', 'Times New Roman', serif;
  --sans:         'Jost', -apple-system, sans-serif;
  --ease:         cubic-bezier(.7, 0, .3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 16px;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .25s ease; }
a:hover { color: var(--gold); }

/* ============ HEADER ============ */
.legal-header {
  border-bottom: 1px solid var(--line);
  padding: 28px 40px;
  background: var(--cream);
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.legal-header__inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.legal-header__logo {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
}
.legal-header__logo em { font-family: var(--serif); font-style: italic; font-size: 14px; opacity: 0.6; margin-left: 8px; }
.legal-header__back {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.legal-header__back svg { width: 14px; height: 14px; }

/* ============ MAIN ============ */
.legal {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 40px 120px;
}

.legal__eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 24px;
}

.legal__title {
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.legal__title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
}

.legal__updated {
  font-size: 13px;
  opacity: 0.6;
  margin-bottom: 60px;
  font-style: italic;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}

.legal__lang {
  display: inline-flex;
  gap: 0;
  margin-bottom: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  overflow: hidden;
}
.legal__lang button {
  background: transparent;
  border: none;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 10px 16px;
  cursor: pointer;
  color: var(--ink);
  opacity: 0.5;
  transition: opacity .25s, background .25s;
  border-right: 1px solid var(--line);
}
.legal__lang button:last-child { border-right: none; }
.legal__lang button[aria-pressed="true"] {
  opacity: 1;
  background: var(--ink);
  color: var(--cream);
}

.legal h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  margin-top: 56px;
  margin-bottom: 20px;
  color: var(--ink);
}
.legal h2:first-of-type { margin-top: 0; }
.legal h2::before {
  content: counter(section, upper-roman);
  counter-increment: section;
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.4;
  margin-bottom: 8px;
}
.legal { counter-reset: section; }

.legal h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal p { margin-bottom: 16px; }
.legal strong { font-weight: 500; }

.legal ul, .legal ol {
  margin: 0 0 20px 24px;
}
.legal li {
  margin-bottom: 8px;
}

.legal__card {
  background: var(--cream-deep);
  border-left: 2px solid var(--gold);
  padding: 24px 28px;
  margin: 24px 0;
  font-size: 15px;
}
.legal__card h3 { margin-top: 0; }

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  border: 1px solid var(--line);
}
.legal table th, .legal table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.legal table th:last-child, .legal table td:last-child { border-right: none; }
.legal table thead th {
  background: var(--ink);
  color: var(--cream);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.legal table tbody tr:last-child td { border-bottom: none; }

.legal__contact {
  margin-top: 56px;
  padding: 32px;
  background: var(--ink);
  color: var(--cream);
  text-align: center;
}
.legal__contact a { color: var(--gold); }
.legal__contact h3 { margin-top: 0; color: var(--cream); }

.legal__nav {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  display: flex; gap: 24px; flex-wrap: wrap;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
}

/* Lang switching */
[data-lang] { display: none; }
.lang-es [data-lang="es"],
.lang-en [data-lang="en"],
.lang-fr [data-lang="fr"] { display: block; }
.lang-es [data-lang="es"].inline,
.lang-en [data-lang="en"].inline,
.lang-fr [data-lang="fr"].inline { display: inline; }

/* ============ FOOTER ============ */
.legal-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 48px 40px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.12em;
}
.legal-footer a { color: var(--cream); opacity: 0.7; margin: 0 12px; }
.legal-footer a:hover { opacity: 1; color: var(--gold); }

@media (max-width: 720px) {
  .legal-header { padding: 20px 22px; }
  .legal { padding: 56px 22px 80px; }
  .legal h2 { font-size: 24px; margin-top: 44px; }
  .legal table { font-size: 13px; }
  .legal table th, .legal table td { padding: 10px 12px; }
}
