:root {
  --bg-main: #f8f8f8;
  --bg-soft: #ffffff;  
  --border: #e5e5e5;  
  --text-main: #000;
  --text-muted: rgb(68, 68, 68);
  --accent: rgb(0, 200, 150);
}

/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, sans-serif;
}

body {
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

/* NAVBAR */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header strong {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.4px;
}

nav a {
  margin-left: 32px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

nav a:hover {
  color: var(--text-main);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.logo img {
  height: 28px;
}

.logo strong {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.4px;
}
/* ---------- HEADER ---------- */
.site-header {
  padding: 20px 32px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-main);
}

.brand {
  font-weight: 700;
  font-size: 1.2rem;
}

/* ---------- WRAPPER ---------- */
.legal-wrapper {
  max-width: 900px;
  margin: auto;
  padding: 80px 24px;
}

/* ---------- HERO ---------- */
.legal-hero {
  margin-bottom: 64px;
}

.legal-hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}

.legal-hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
}

/* ---------- SECTIONS ---------- */
.legal-section {
  margin-bottom: 56px;
}

.legal-section h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.legal-section p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}


.footer {
  background: #f5f5f5;
  border-top: 1px solid #ddd;
  padding: 50px 0;
}

/* Contenedor centrado pero texto alineado izquierda */
.footer .legal-text {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: left;   /* 🔥 clave */
}

/* Copyright centrado */
.footer .copyright {
  text-align: center;
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 30px;
}

/* Párrafos */
.footer .legal-text p {
  font-size: 0.78rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 18px;
}


/* ================= AUTH MODAL ================= */

.auth-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.auth-box {
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth-box h3 {
  font-size: 1.6rem;
  font-weight: 700;
}

.auth-box input {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 0.95rem;
}

.auth-box input:focus {
  outline: none;
  border-color: var(--accent);
}

.auth-buttons button {
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: #000;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.auth-buttons button:hover {
  opacity: 0.85;
}

.auth-toggle-text {
  text-align: center;
  font-size: 0.95rem;
  margin-top: 8px;
}

.register-pill {
  background: var(--accent);
  color: white;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 600;
  margin-left: 6px;
}

.close-btn {
  background: transparent;
  border: none;
  color: #666;
  margin-top: 10px;
  cursor: pointer;
  text-align: center;
}
