/* yubiklo.com: landing page, Terms and Privacy. Colours and shapes follow buy-page/style.css. */
:root {
  --bg: #FFF0F6;
  --bg-translucent: rgba(255, 240, 246, 0.86);
  --card: #FFFFFF;
  --text: #2B1B24;
  --muted: #77606D;
  --hairline: #F5E8EE;
  --primary: #C4166D;
  --fill: #D81B7A;
  --soft: #FCE3EF;
  --blank-bg: #FFF1B8;
  --blank-text: #5A4300;
  --blank-border: #E5C454;
  --shadow-card: 0 2px 12px rgba(43, 27, 36, 0.045), 0 1px 2px rgba(43, 27, 36, 0.03);
  --shadow-btn: 0 4px 14px rgba(216, 27, 122, 0.28);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #140F16;
    --bg-translucent: rgba(20, 15, 22, 0.86);
    --card: #201723;
    --text: #FBEFF5;
    --muted: #BDA6B6;
    --hairline: #342338;
    --primary: #FF8EC3;
    --fill: #D81B7A;
    --soft: #48203F;
    --blank-bg: #4A3C0A;
    --blank-text: #FFE9A3;
    --blank-border: #8A7320;
    --shadow-card: 0 2px 14px rgba(0, 0, 0, 0.28);
    --shadow-btn: 0 4px 16px rgba(216, 27, 122, 0.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  margin: 0;
  padding: 0;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-padding-top: 64px;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

a { color: var(--primary); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 6px; }

/* ─── Language: one page holds both; site.js shows the one that fits ─────── */
html[data-show="en"] [data-lang="es"],
html[data-show="es"] [data-lang="en"] { display: none !important; }
/* Without JavaScript both languages stay visible, one after the other. */
html[data-show] .nojs-only { display: none; }

/* ─── Header ─────────────────────────────────────────────────────────────── */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg-translucent);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--hairline);
  padding-top: env(safe-area-inset-top);
}

.top-inner {
  max-width: 720px;
  margin: 0 auto;
  height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo { display: block; line-height: 0; }
.logo img { display: block; height: 38px; width: auto; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

/* ─── Layout ─────────────────────────────────────────────────────────────── */
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 18px calc(40px + env(safe-area-inset-bottom));
}

.card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 18px;
  margin: 0 0 16px;
  box-shadow: var(--shadow-card);
}

/* ─── Landing page ───────────────────────────────────────────────────────── */
.home main { max-width: 480px; padding-top: 12px; }

.hero {
  text-align: center;
  padding: 44px 8px 28px;
}

.hero .mark {
  width: 104px;
  height: 104px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(110, 10, 40, 0.16);
  display: block;
  margin: 0 auto 26px;
}

.hero h1 {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  text-wrap: balance;
}

.hero p {
  margin: 0 auto;
  max-width: 34ch;
  color: var(--muted);
  font-size: 16.5px;
}

.pill {
  display: inline-flex;
  margin: 22px 0 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--primary);
  font-size: 13.5px;
  font-weight: 600;
}

.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; }
.steps li + li { border-top: 1px solid var(--hairline); }
.step-badge {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--primary);
  font-size: 13.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  margin-top: 1px;
}
.steps strong { display: block; font-size: 16px; letter-spacing: -0.01em; }
.steps span.sub { color: var(--muted); font-size: 14.5px; }

.links { list-style: none; margin: 0; padding: 0; }
.links li + li { border-top: 1px solid var(--hairline); }
.links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 6px 2px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.links a::after { content: "›"; color: var(--muted); font-size: 22px; line-height: 1; }

.foot {
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  padding: 10px 8px 0;
}
.foot a { color: var(--muted); }

/* ─── Legal pages ────────────────────────────────────────────────────────── */
.doc h1 {
  font-size: 30px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 10px 0 6px;
}

.doc .updated { color: var(--muted); font-size: 14.5px; margin: 0 0 18px; }

.doc h2 {
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 34px 0 10px;
}

.doc h3 { font-size: 16.5px; font-weight: 700; margin: 22px 0 6px; }
.doc p { margin: 0 0 12px; }
.doc ul, .doc ol { margin: 0 0 14px; padding-left: 22px; }
.doc li { margin: 0 0 6px; }
.doc .card h2 { margin-top: 0; font-size: 17px; }
.doc .card ul:last-child, .doc .card p:last-child { margin-bottom: 0; }

.toc { columns: 2; column-gap: 24px; font-size: 14.5px; padding-left: 20px; margin: 0; }
.toc li { break-inside: avoid; margin-bottom: 6px; }
@media (max-width: 520px) { .toc { columns: 1; } }

/* A "table" that reads well on a phone: one block per row. */
.rows { margin: 0 0 16px; }
.row {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 14px 16px;
  margin: 0 0 10px;
}
.row h3 { margin: 0 0 6px; font-size: 16px; }
.row dl { margin: 0; }
.row dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 10px 0 2px;
}
.row dt:first-child { margin-top: 0; }
.row dd { margin: 0; font-size: 15px; }

.note {
  border-left: 3px solid var(--primary);
  background: var(--soft);
  border-radius: 0 12px 12px 0;
  padding: 12px 14px;
  margin: 0 0 16px;
  font-size: 15px;
}
.note p:last-child { margin-bottom: 0; }

.lang-sep { border: 0; border-top: 1px solid var(--hairline); margin: 48px 0 24px; }

/* ─── Blanks only the owner can fill, and the draft banner they trigger ──── */
.blank {
  background: var(--blank-bg);
  color: var(--blank-text);
  border: 1px dashed var(--blank-border);
  border-radius: 6px;
  padding: 1px 6px;
  font-weight: 600;
  font-size: 0.94em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.draft-banner { display: none; }
body:has(.blank) .draft-banner {
  display: block;
  background: var(--blank-bg);
  color: var(--blank-text);
  border-bottom: 1px solid var(--blank-border);
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 14px;
}

@media print {
  .top { position: static; }
  .lang-switch, .draft-banner { display: none !important; }
  body { background: #fff; }
}
