/* ============================================================
   MoBeelity legal pages — shared styles (privacy, terms, changelog).
   Same "El Garaje de Noche" ink surface + amber accents as the
   landing, tuned for long-form reading. Dark-first, single file.
   ============================================================ */
:root {
  --bg: #0B1220;
  --bg-deep: #080D18;
  --amber: #F2A93B;
  --amber-soft: #F7C36E;
  --ink: #17233D;
  --text: #F2F4F8;
  --text-2: #C6CEDF;
  --muted: #8A94AC;
  --card: rgba(255, 255, 255, 0.05);
  --card-2: rgba(255, 255, 255, 0.03);
  --stroke: rgba(255, 255, 255, 0.09);
  --stroke-2: rgba(255, 255, 255, 0.16);
  --amber-tint: rgba(242, 169, 59, 0.12);
  --amber-border: rgba(242, 169, 59, 0.34);
  --sans: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 800px;
  --honeycomb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 2 52 16v28L28 58 4 44V16zM28 60 52 74v28L28 116 4 102V74z' fill='none' stroke='%23F2A93B' stroke-width='1'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background:
    radial-gradient(700px 480px at 90% -6%, rgba(242, 169, 59, 0.1), transparent 60%),
    linear-gradient(180deg, #0D1424 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: var(--honeycomb);
  background-size: 56px 97px;
  opacity: 0.03;
  z-index: 0;
}
a { color: var(--amber-soft); }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--amber); color: var(--ink);
  padding: 10px 16px; border-radius: 0 0 12px 0; font-weight: 700; z-index: 100;
}
.skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 8px; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  padding: 14px 24px;
  max-width: var(--maxw); margin: 0 auto;
  background: rgba(11, 18, 32, 0.72);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--stroke);
}
.backlink {
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none; color: var(--text);
  font-family: var(--sans); font-weight: 800; font-size: 17px; min-height: 44px;
}
.backlink svg { width: 20px; height: 20px; color: var(--text-2); }
.backlink em { font-style: normal; color: var(--amber); }
.backlink .brand-dot {
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(135deg, var(--amber-soft), #C9821A);
  box-shadow: 0 4px 12px rgba(242, 169, 59, 0.32);
}

/* ---------- Language switch ---------- */
.lang { display: flex; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--stroke-2); border-radius: 11px; overflow: hidden; }
.lang button {
  min-height: 40px; min-width: 42px; padding: 0 12px;
  background: transparent; color: var(--text-2); border: 0; cursor: pointer;
  font-family: var(--sans); font-weight: 700; font-size: 13px; letter-spacing: 0.03em;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { background: var(--amber); color: var(--ink); }

/* ---------- Document ---------- */
.doc { padding: 44px 0 40px; }
.eyebrow { font-family: var(--sans); font-size: 12.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); margin: 0 0 12px; }
.doc h1 { font-family: var(--sans); font-size: clamp(30px, 6vw, 46px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
.updated { color: var(--muted); font-size: 14.5px; margin: 12px 0 0; }

#legal-body { margin-top: 28px; }
#legal-body h2 { font-family: var(--sans); font-size: clamp(21px, 3vw, 27px); font-weight: 800; letter-spacing: -0.01em; margin: 40px 0 0; }
#legal-body h3 { font-family: var(--sans); font-size: 19px; font-weight: 800; margin: 34px 0 0; color: var(--text); }
#legal-body p { color: var(--text-2); margin: 12px 0 0; }
#legal-body ul { margin: 12px 0 0; padding-left: 22px; }
#legal-body li { color: var(--text-2); margin: 9px 0; }
#legal-body li::marker { color: var(--amber); }
#legal-body strong { color: var(--text); font-weight: 700; }
#legal-body a { font-weight: 600; }
.callout {
  margin-top: 20px; padding: 16px 18px; border-radius: 16px;
  background: var(--amber-tint); border: 1px solid var(--amber-border);
  color: var(--text-2); font-size: 15.5px;
}
.callout strong { color: var(--amber-soft); }

/* ---------- Footer ---------- */
footer {
  max-width: var(--maxw); margin: 0 auto; padding: 40px 24px 72px;
  border-top: 1px solid var(--stroke);
  color: var(--muted); font-size: 13.5px;
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
}
.foot-links { display: flex; gap: 6px; flex-wrap: wrap; }
.foot-links a {
  color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 14.5px;
  padding: 8px 12px; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.foot-links a:hover { color: var(--amber); background: rgba(255, 255, 255, 0.05); }

/* ---------- Back to top ---------- */
.totop {
  position: fixed; right: 18px; bottom: 18px; width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; background: var(--amber); color: var(--ink); border: none; cursor: pointer;
  opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), background-color 0.2s;
  z-index: 50; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.6);
}
.totop.show { opacity: 1; pointer-events: auto; transform: none; }
.totop:hover { background: var(--amber-soft); }
.totop svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
