/* =========================================================================
   ExtreMotoBadajoz · legal.css
   Contrato imprimible + política de privacidad dark mode.
   ========================================================================= */

/* ========== DOCUMENTO BLANCO (contrato) ========== */
.doc-light {
  background: #fbfbfb;
  color: #1a1a1a;
  min-height: 100vh;
  padding: 2rem 1rem;
  font-family: Georgia, 'Times New Roman', serif;
}
.doc-light a { color: #c2410c; }
.doc-light a:hover { color: #9a3412; text-decoration: underline; }

.doc {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  padding: 50px 60px;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,.15);
  border-radius: 6px;
}
.doc h1 {
  font-family: 'Helvetica', Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: .5rem;
  color: #111;
}
.doc .doc-sub {
  text-align: center;
  font-size: .85rem;
  color: #555;
  margin-bottom: 2.5rem;
}
.doc h2 {
  font-family: 'Helvetica', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin: 2rem 0 1rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid #ddd;
  color: #111;
}
.doc p { line-height: 1.75; margin-bottom: 1rem; }
.doc ul { margin-bottom: 1rem; }
.doc ul li { line-height: 1.7; margin-bottom: .35rem; }

.doc .firma {
  border-top: 1px solid #333;
  margin-top: 70px;
  padding-top: 10px;
  font-size: .82rem;
  color: #333;
  text-align: center;
}

.doc-toolbar {
  position: sticky;
  top: 0;
  background: rgba(251,251,251,.95);
  backdrop-filter: blur(10px);
  padding: .75rem 0;
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  max-width: 820px;
  margin: 0 auto -20px;
  z-index: 5;
}
.doc-toolbar .btn {
  background: #111;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: .55rem 1.1rem;
  font-family: 'Helvetica', Arial, sans-serif;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.doc-toolbar .btn:hover {
  background: #c2410c;
  transform: translateY(-1px);
}

/* ========== PÁGINA PRIVACIDAD (dark) ========== */
.privacidad {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 20px 80px;
  color: var(--text);
}
.privacidad h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: .5rem;
}
.privacidad .meta {
  color: var(--text-mute);
  font-size: .85rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.privacidad h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--neon);
  margin: 2.5rem 0 1rem;
}
.privacidad p,
.privacidad li {
  color: var(--text-dim);
  line-height: 1.8;
}
.privacidad strong { color: var(--text); }
.privacidad a {
  color: var(--neon);
  text-decoration: underline;
  text-decoration-color: rgba(255,107,26,.4);
}
.privacidad a:hover { color: var(--neon-3); }
.privacidad ul { padding-left: 1.25rem; }
.privacidad ul li { margin-bottom: .4rem; }

/* ========== PRINT ========== */
@media print {
  .doc-toolbar, .no-print { display: none !important; }
  body { background: #fff !important; margin: 0; }
  .doc {
    box-shadow: none;
    padding: 20px;
    margin: 0;
    border-radius: 0;
    max-width: 100%;
  }
  .doc-light { background: #fff; padding: 0; }

  @page { margin: 1.5cm; }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: .75em;
    color: #666;
  }
  a[href^="mailto"]::after,
  a[href^="tel"]::after { content: ""; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 767.98px) {
  .doc { padding: 30px 24px; }
  .privacidad { padding: 40px 16px 60px; }
}