/* ============================================================
   HerramientasDeTexto.com — legal.css
   Estilos para páginas de contenido: legal, info, contacto
   Requiere tools.css cargado antes (usa sus variables)
   ============================================================ */

/* ── Hero de página de contenido ── */
.lg-hero {
  background: linear-gradient(150deg, #EFF6FF 0%, #FAFAFA 55%);
  border-bottom: 1px solid var(--border);
  padding: clamp(2.5rem, 5vw, 4rem) 1.25rem clamp(1.5rem, 3vw, 2.5rem);
}
.lg-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}
.lg-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: .9rem;
}
.lg-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
  margin-bottom: .5rem;
  line-height: 1.15;
}
.lg-hero-meta {
  font-size: 12.5px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.lg-hero-meta svg { width: 13px; height: 13px; }

/* ── Contenido ── */
.lg-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem clamp(3rem, 6vw, 5rem);
}

.lg-content h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.02em;
  margin: 2.5rem 0 .65rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--border);
}
.lg-content h2:first-child { margin-top: 0; }

.lg-content p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.85;
  margin-bottom: .85rem;
}
.lg-content p:last-child { margin-bottom: 0; }

.lg-content ul {
  list-style: none;
  padding: 0;
  margin: .5rem 0 .85rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.lg-content ul li {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.7;
  padding-left: 1.25rem;
  position: relative;
}
.lg-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.lg-content a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.lg-content a:hover { text-decoration: underline; }

.lg-content strong { color: var(--ink); font-weight: 600; }

/* Callout box */
.lg-callout {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-sm);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0 1rem;
}
.lg-callout p {
  font-size: 13.5px;
  color: #1e40af;
  font-weight: 500;
  margin: 0;
  line-height: 1.65;
}

/* ── Tabla de cookies ── */
.lg-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin: 1rem 0 1.25rem;
}
.lg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 560px;
}
.lg-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--canvas);
  padding: .65rem 1rem;
  border-bottom: 1px solid var(--border);
}
.lg-table td {
  padding: .65rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--ink-2);
  vertical-align: top;
  line-height: 1.55;
}
.lg-table tr:last-child td { border-bottom: none; }
.lg-table td:first-child { color: var(--ink); font-weight: 500; font-family: 'Courier New', monospace; font-size: 12px; }

.lg-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
}
.lg-badge-required { background: #DCFCE7; color: #15803D; }
.lg-badge-analytics { background: var(--accent-light); color: #1D4ED8; }
.lg-badge-ads       { background: #FEF3C7; color: #92400E; }

/* ── Contacto — tarjetas de motivo ── */
.lg-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}
.lg-contact-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 1.4rem 1.25rem;
  transition: border-color .2s, box-shadow .2s;
}
.lg-contact-card:hover {
  border-color: var(--accent-border);
  box-shadow: 0 4px 16px rgba(37,99,235,.07);
}
.lg-contact-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .75rem;
}
.lg-contact-icon svg { width: 17px; height: 17px; color: var(--accent); }
.lg-contact-title { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: .3rem; }
.lg-contact-desc { font-size: 13px; color: var(--ink-3); line-height: 1.55; }

/* ── Formulario de contacto ── */
.lg-form-section {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: 2rem;
}
.lg-form-section h2 {
  border-bottom: none;
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}
.lg-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.lg-form-group { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .9rem; }
.lg-form-group label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: .01em;
}
.lg-form-group input,
.lg-form-group select,
.lg-form-group textarea {
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--canvas);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: .65rem 1rem;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
  width: 100%;
}
.lg-form-group input:focus,
.lg-form-group select:focus,
.lg-form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
  background: #fff;
}
.lg-form-group textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.lg-form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23A1A1AA' stroke-width='2' viewBox='0 0 16 16'%3E%3Cpolyline points='4 6 8 10 12 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.lg-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--r-sm);
  padding: .75rem 1.75rem;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.lg-submit-btn:hover { background: var(--accent-2); }
.lg-submit-btn:active { transform: scale(.98); }
.lg-submit-btn svg { width: 15px; height: 15px; }
.lg-form-note { font-size: 12px; color: var(--ink-3); margin-top: .65rem; display: flex; align-items: center; gap: 5px; }
.lg-form-note svg { width: 12px; height: 12px; color: var(--green); }

.lg-form-success {
  display: none;
  align-items: center;
  gap: .85rem;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: var(--r-sm);
  padding: 1rem 1.25rem;
  margin-top: 1rem;
}
.lg-form-success.show { display: flex; }
.lg-form-success p { font-size: 13.5px; color: #15803D; font-weight: 500; margin: 0; }

/* ── Sobre nosotros — valores ── */
.lg-values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .85rem;
  margin: 1.25rem 0;
}
.lg-value-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem;
}
.lg-value-icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .7rem;
}
.lg-value-icon svg { width: 16px; height: 16px; color: var(--accent); }
.lg-value-title { font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: .3rem; }
.lg-value-desc { font-size: 12.5px; color: var(--ink-3); line-height: 1.55; }

/* Stats bar */
.lg-stats-bar {
  background: linear-gradient(135deg, var(--accent) 0%, #1D4ED8 100%);
  border-radius: var(--r);
  padding: 1.75rem 1.5rem;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.lg-stat { text-align: center; }
.lg-stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: .3rem;
}
.lg-stat-lbl { font-size: 11.5px; color: rgba(255,255,255,.7); font-weight: 600; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .lg-contact-grid { grid-template-columns: 1fr; }
  .lg-form-row { grid-template-columns: 1fr; }
  .lg-values-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .lg-values-grid { grid-template-columns: 1fr; }
}
