/* Shared styles for all legal pages: terms, privacy, cgu, mentions-legales */

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

:root {
  --white:        #FFFFFF;
  --off-white:    #FAFAF9;
  --bg-soft:      #F5F3F0;
  --gray-light:   #E8E4DD;
  --gray:         #D4CDBE;
  --gray-mid:     #9E9686;
  --dark:         #1A1A1A;
  --accent:       #C1682A;
  --accent-2:     #E8956E;
  --accent-light: rgba(193, 104, 42, 0.08);
  --accent-glow:  rgba(193, 104, 42, 0.12);
  --positive:     #2E7D32;
  --negative:     #C62828;
  --neutral:      #757575;
  --rule:         rgba(26, 26, 26, 0.06);
  --font-serif:   'Merriweather', Georgia, serif;
  --font-sans:    'Source Sans 3', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Subtle texture ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.008;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 48px;
}
@media (max-width: 768px) { .container { padding: 0 20px; } }

/* ── Legal content ── */
.legal-section {
  padding: 100px 0;
  border-bottom: 1px solid var(--rule);
}

.legal-header {
  margin-bottom: 60px;
}

.legal-kicker {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.legal-kicker::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--accent);
}

.legal-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--dark);
  margin-bottom: 20px;
}

.legal-description {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--gray-mid);
  max-width: 800px;
}

.legal-content {
  max-width: 900px;
}

.legal-subsection {
  margin-bottom: 48px;
}

.legal-subsection h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  margin-top: 40px;
}

.legal-subsection h2:first-child {
  margin-top: 0;
}

.legal-subsection p {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--gray-mid);
  margin-bottom: 12px;
}

.legal-subsection ul,
.legal-subsection ol {
  margin-left: 24px;
  margin-bottom: 16px;
}

.legal-subsection li {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--gray-mid);
  margin-bottom: 8px;
}

.legal-subsection strong {
  font-weight: 600;
  color: var(--dark);
}

.legal-subsection em {
  font-style: italic;
  color: var(--gray-mid);
}

.legal-subsection a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.legal-subsection a:hover {
  color: var(--dark);
  border-color: var(--dark);
}

/* ── Footer ── */
.footer {
  background: var(--off-white);
  border-top: 1px solid var(--rule);
  padding: 60px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand a {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: fit-content;
  line-height: 0;
}

.footer-brand img {
  width: 128px;
  height: auto;
  max-height: 40px;
  object-fit: contain;
  display: block;
}

.footer-brand-desc {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--gray-mid);
}

.footer-col-title {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-mid);
  text-decoration: none;
  transition: color 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
  gap: 24px;
}

.footer-copy {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--gray-mid);
}

.footer-legal {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-legal a {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--gray-mid);
  text-decoration: none;
  transition: color 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .legal-section { padding: 80px 0; }
  .legal-title { font-size: 28px; }
  .legal-subsection h2 { font-size: 20px; }
}
