/* Estilos compartidos de las páginas legales de misecreto.site.
   Mismo lenguaje visual que la app: violeta de marca, tarjetas redondeadas,
   y soporte de tema claro/oscuro según el sistema del visitante. */

:root {
  --brand: #7c3aed;
  --brand-soft: #f3e8ff;
  --bg: #ffffff;
  --surface: #f8fafc;
  --border: #e5e7eb;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #a855f7;
    --brand-soft: #2e1065;
    --bg: #0f172a;
    --surface: #1e293b;
    --border: #334155;
    --text: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 72px;
}

header.top {
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
  padding-bottom: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.2px;
}

.brand .dot {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
}

h1 {
  font-size: clamp(26px, 5vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.6px;
  margin: 24px 0 8px;
}

h2 {
  font-size: 19px;
  letter-spacing: -0.2px;
  margin: 36px 0 10px;
  padding-top: 4px;
}

h3 { font-size: 15.5px; margin: 22px 0 6px; }

p, li { color: var(--text-secondary); font-size: 15.5px; }

ul { padding-left: 20px; }
li { margin-bottom: 7px; }

a { color: var(--brand); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }

.updated {
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
  margin: 0 0 28px;
}

.lead { font-size: 17px; color: var(--text-secondary); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  margin: 22px 0;
}

.card :first-child { margin-top: 0; }
.card :last-child { margin-bottom: 0; }

.callout {
  background: var(--brand-soft);
  border: none;
  border-left: 4px solid var(--brand);
  border-radius: 0 12px 12px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14.5px;
  display: block;
  overflow-x: auto;
}

th, td {
  text-align: left;
  padding: 11px 13px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th { color: var(--text); font-weight: 700; white-space: nowrap; }
td { color: var(--text-secondary); }

.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  margin-top: 6px;
}

.btn:hover { text-decoration: none; opacity: 0.92; }

.links {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin: 28px 0;
}

.links a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  color: var(--text);
  font-weight: 700;
  font-size: 15.5px;
}

.links a:hover { text-decoration: none; border-color: var(--brand); }
.links a span { display: block; color: var(--text-muted); font-size: 13px; font-weight: 500; margin-top: 3px; }

footer.bot {
  border-top: 1px solid var(--border);
  margin-top: 52px;
  padding-top: 22px;
  color: var(--text-muted);
  font-size: 13.5px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

footer.bot a { font-weight: 500; }
