/**
 * Legales de PaMapp — sistema "Papel", puerto mínimo.
 *
 * No hereda `styles/tokens.css` de la landing a propósito: estas páginas tienen
 * que poder subirse solas a cualquier lado (App Store Connect pide una URL que
 * responda siempre) sin arrastrar el resto del sitio.
 */

:root {
  --paper: #faf7f2;
  --surface: #ffffff;
  --sunken: #f2ede4;
  --ink: #1c1917;
  --ink-muted: #57534e;
  --ink-subtle: #78716c;
  --line: #e7dfd2;
  --attention: #a6402a;
  /* Ocre de marca. Vive fuera de la app: acá es el sitio, así que corresponde. */
  --brand: #d98c1f;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 24px 96px;
}

.site {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 28px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

/* La marca dibujada en CSS: dos aros y el centro que comparten. */
.brand::before {
  content: '';
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--brand);
  flex: none;
}

.lang-note {
  font-size: 14px;
  color: var(--ink-subtle);
}

h1 {
  font-size: clamp(2rem, 5vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  text-wrap: balance;
}

h2 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin: 40px 0 10px;
  line-height: 1.3;
}

h3 {
  font-size: 1rem;
  margin: 24px 0 6px;
}

p,
ul,
ol {
  margin-bottom: 14px;
  color: var(--ink-muted);
}

ul,
ol {
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
}

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

.updated {
  font-size: 14px;
  color: var(--ink-subtle);
  margin-bottom: 28px;
}

.card {
  background: var(--sunken);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 12px;
}

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

/* Lo que no se puede pasar por alto: el alcance médico. */
.warn {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--attention);
  border-radius: 4px;
  padding: 20px 22px;
  margin: 20px 0;
}

.warn p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--attention);
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 56px 0 40px;
}

footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-subtle);
}

footer a {
  color: var(--ink-muted);
}
