/* Páginas legales Solwirk Perú */
@import url("https://fonts.googleapis.com/css2?family=Archivo+Black&family=Manrope:wght@400;600;700;800&display=swap");

* { box-sizing: border-box; }

body.pe-legal {
  --pe-accent: #ffd400;
  margin: 0;
  color: #f4f7fb;
  font-family: "Manrope", "Segoe UI", sans-serif;
  background:
    radial-gradient(900px 420px at 0% 0%, rgba(255, 212, 0, 0.1), transparent 50%),
    #0a0a0a;
}

body.pe-legal a { color: #ffd400; }

.lg-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 5%;
  border-bottom: 3px solid #ffd400;
  background: rgba(0, 0, 0, 0.92);
}

.lg-brand {
  font-family: "Archivo Black", Impact, sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  font-size: 1.15rem;
}
.lg-brand span { color: #ffd400; }

.lg-back {
  margin-left: auto;
  color: #ffd400;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.lg-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 5% 48px;
}

.lg-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 22px;
  font-size: 14px;
}
.lg-toc a { color: #c9d2e0; text-decoration: none; }
.lg-toc a[aria-current="page"] { color: #ffd400; font-weight: 800; }

.lg-main h1 {
  font-family: "Archivo Black", Impact, sans-serif;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  line-height: 1.1;
  margin: 0 0 12px;
}

.lg-main h2 {
  font-size: 1.15rem;
  margin: 28px 0 10px;
  color: #ffd400;
}

.lg-main p, .lg-main li {
  line-height: 1.6;
  color: #d7dde8;
}

.lg-meta {
  color: #9aa6b8;
  font-size: 14px;
}

.footer {
  padding: 28px 5%;
  color: #9aa6b8;
  font-size: 13px;
  border-top: 1px solid #2a2a2a;
}
.ml-legal-footer p { margin: 6px 0; line-height: 1.55; }
.ml-legal-footer a { color: #ffd400; }
.ml-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 12px 0;
}

.pe-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.pe-form label {
  display: grid;
  gap: 4px;
  font-size: 14px;
}

.pe-form input,
.pe-form select,
.pe-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #1c2633;
  background: #0b1017;
  color: #f4f7fb;
  font: inherit;
  border-radius: 0;
}

.pe-form textarea {
  min-height: 140px;
  resize: vertical;
}

.pe-form .pe-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pe-form button {
  justify-self: start;
  padding: 12px 18px;
  border: 0;
  background: #ffd400;
  color: #07101c;
  font-weight: 800;
  cursor: pointer;
  text-transform: uppercase;
}

.pe-badge {
  display: inline-block;
  margin: 8px 0 0;
  padding: 8px 12px;
  border: 2px solid #f5c518;
  background: #1a1400;
  color: #ffe08a;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 12px;
}

.constancia {
  display: none;
  margin-top: 24px;
  padding: 20px;
  border: 2px solid #ffd400;
  background: #111;
}
.constancia.show { display: block; }
.constancia h2 { margin-top: 0; color: #ffd400; }
.constancia pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "Manrope", monospace;
  font-size: 13px;
  line-height: 1.5;
  color: #f4f7fb;
}
.constancia .acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.constancia .acciones button,
.constancia .acciones a {
  padding: 10px 14px;
  border: 0;
  background: #ffd400;
  color: #07101c;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 56px;
  padding: 12px 16px;
  border-radius: 999px;
  background: #25d366;
  color: #062b14 !important;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

@media (max-width: 640px) {
  .pe-form .pe-row { grid-template-columns: 1fr; }
  .lg-back { margin-left: 0; width: 100%; }
}

@media print {
  .lg-nav, .lg-toc, .pe-form, .wa-float, .footer, .constancia .acciones { display: none !important; }
  body.pe-legal { background: #fff; color: #000; }
  .constancia { display: block !important; border-color: #000; background: #fff; }
  .constancia pre, .constancia h2 { color: #000; }
}
