/* ══════════════════════════════════════════════════════════════════
   WallsPro — legal pages (privacy / terms, ES + EN)
   Same look as the app (Walls-Fondos/app.css): dark, glass bar,
   purple → orange gradient. Used inside the app and on wallspro.site.
   ══════════════════════════════════════════════════════════════════ */

:root {
  --bg:     #07070a;
  --card:   #15151c;
  --line:   rgba(255,255,255,.07);
  --text:   #f5f5f7;
  --text-2: rgba(235,235,245,.64);
  --text-3: rgba(235,235,245,.38);
  --accent: #c013d7;
  --grad:   linear-gradient(135deg, #c013d7 0%, #ff710a 100%);
  --glass:  rgba(18,18,24,.72);
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Roboto, "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(var(--sab) + 40px);
}
a { color: #f0a6f5; text-decoration: none; }
a:hover { text-decoration: underline; }
strong { color: var(--text); font-weight: 650; }

/* ── Top bar (glass, like the app's appbar) ─────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 10;
  height: calc(52px + var(--sat));
  padding: var(--sat) 12px 0;
  display: flex; align-items: center; gap: 8px;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid var(--line);
}
.back {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%; color: var(--text);
}
.back:hover { text-decoration: none; }
.back:active { transform: scale(.9); background: var(--card); }
.back svg { width: 22px; height: 22px; }
.back[hidden] { display: none; }
.topbar-title {
  flex: 1; text-align: center;
  font-weight: 700; font-size: 16px; letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-right: 48px;   /* keeps the title centred against the back button */
}
.back[hidden] + .topbar-title { margin-right: 0; }

/* ── Hero: logo + wordmark ──────────────────────────────────────────── */
.container { max-width: 680px; margin: 0 auto; padding: 0 16px; }
.hero {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 32px 0 24px; text-align: center;
}
.hero::before {
  content: ""; position: absolute; z-index: -1;
  top: 6px; left: 50%; width: 240px; height: 170px; translate: -50% 0;
  background: radial-gradient(closest-side, rgba(192,19,215,.35), rgba(255,113,10,.12) 60%, transparent);
  filter: blur(14px);
}
.hero-mark {
  width: 76px; height: 76px; border-radius: 20px;
  box-shadow: 0 14px 34px -10px rgba(192,19,215,.75);
}
.hero-name { display: flex; align-items: center; gap: 8px; }
.hero-name img { display: block; width: 116px; height: auto; }
.pro-tag {
  padding: 4px 7px 3px; border-radius: 7px;
  background: var(--grad); color: #fff;
  font: 800 11px/1 var(--font); letter-spacing: .08em;
}

h1 {
  font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15;
  text-align: center; margin-bottom: 8px;
}
.updated { font-size: 13px; color: var(--text-3); text-align: center; margin-bottom: 26px; }

/* ── Sections (cards like the app's grouped lists) ──────────────────── */
.section, .contact-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px 20px;
  margin-bottom: 12px;
}
h2 {
  display: flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 700; letter-spacing: -.01em;
  margin-bottom: 10px; color: var(--text);
}
h2::before {
  content: ""; width: 4px; height: 18px; flex: none;
  border-radius: 4px; background: var(--grad);
}
p { font-size: 14px; color: var(--text-2); margin-bottom: 10px; }
p:last-child { margin-bottom: 0; }

.contact-box {
  margin-top: 24px;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    var(--grad) border-box;
  border: 1px solid transparent;
}
.contact-box p { color: var(--text); }

.made-by { text-align: center; font-size: 12px; color: var(--text-3); margin-top: 28px; }
.made-by b { color: var(--text-2); }
