/*
 * Instabooster — /aviso-legal, /politica-privacidad and /cookies (owner redesign 2026-11-12, Claude Design canvas). Hand-written `.lx`
 * system (new class names only), mobile first; the wide layout is a container query on the page
 * root. Markup: src/components/brands/ib/content/legal-doc.tsx + legal.tsx + cookies.tsx + legal-decorate.ts.
 * Every rule in @layer ib, scoped to html[data-brand="ib"] .lx.
 */
@layer ib {
  /* ── ground rules inside the page: the site's element styles (links, headings, lists,
        buttons) do not reach in; every class rule below is stronger than these ── */
  html[data-brand="ib"] .lx :is(h1, h2, h3, p, ul, ol, li, figure) { margin: 0; padding: 0; }
  html[data-brand="ib"] .lx :is(h1, h2, h3, p, li) { font: inherit; color: inherit; letter-spacing: inherit; text-transform: none; text-align: inherit; }
  html[data-brand="ib"] .lx :is(ul, ol) { list-style: none; }
  html[data-brand="ib"] .lx a { color: inherit; text-decoration: none; }
  html[data-brand="ib"] .lx :where(a):hover { color: inherit; text-decoration: none; }
  html[data-brand="ib"] .lx button { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; font: inherit; color: inherit; letter-spacing: inherit; text-transform: none; text-align: left; cursor: pointer; }
  html[data-brand="ib"] .lx input { margin: 0; padding: 0; min-width: 0; border-radius: 0; box-shadow: none; }
  html[data-brand="ib"] .lx :is(em, i) { font-style: normal; }
  html[data-brand="ib"] .lx mark { padding: 0; background: none; color: inherit; }
  html[data-brand="ib"] .lx [hidden] { display: none !important; }
  /* a tap or a click leaves no ring behind (the site's own focus style); the keyboard keeps its ring */
  html[data-brand="ib"] .lx :is(a, button):focus:not(:focus-visible) { outline: 0; }

  html[data-brand="ib"] .lx { --pk:#e61c72; --pk-d:#cf1665; --grad:linear-gradient(135deg,#e61c72 0%,#ff4d94 100%); --ink:#14181f; --text:#4b5563; --muted:#667085; --line:#e8eaed; --tint:#f6f7f9; --pk-tint:#fdeaf3; --ease:cubic-bezier(.2,.8,.2,1); container-type:inline-size; container-name:lx; position:relative; overflow:hidden; background:#fff; font-family:Montserrat,system-ui,-apple-system,"Segoe UI",sans-serif; font-size:16px; line-height:1.5; color:var(--ink); -webkit-font-smoothing:antialiased; -webkit-tap-highlight-color:transparent; }
  html[data-brand="ib"] .lx * { box-sizing:border-box; min-width:0; }
  html[data-brand="ib"] .lx :where(h1,h2,h3,p,ul,ol,li,dl,dt,dd,table,aside,section) { margin:0; padding:0; }
  html[data-brand="ib"] .lx :where(ul,ol) { list-style:none; }
  html[data-brand="ib"] .lx :where(a) { text-decoration:none; }
  html[data-brand="ib"] .lx :where(button) { font:inherit; color:inherit; background:none; border:0; padding:0; cursor:pointer; text-align:left; }
  html[data-brand="ib"] .lx :where(svg) { display:block; flex:none; }
  html[data-brand="ib"] .lx :where(img) { display:block; max-width:100%; height:auto; }
  html[data-brand="ib"] .lx :is(a,button):focus-visible { outline:3px solid rgba(230,28,114,.5); outline-offset:2px; }
  html[data-brand="ib"] .lx .lx-ic { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
  html[data-brand="ib"] .lx .lx-wrap { width:100%; max-width:1216px; margin:0 auto; padding:0 20px; }
  /* how far down the text you are: a thin line under the header, driven by the scroll itself */
  html[data-brand="ib"] .lx .lx-prog { position:fixed; inset:0 0 auto 0; z-index:9; height:3px; background:var(--ink); transform-origin:0 50%; transform:scaleX(0); animation:lx-prog linear both; animation-timeline:scroll(root); }
  /* hero: what the document is, in one sentence */
  html[data-brand="ib"] .lx .lx-hero { position:relative; background:radial-gradient(rgba(255,255,255,.16) 1.5px,transparent 1.7px) 0 0/28px 28px,var(--grad); color:#fff; }
  html[data-brand="ib"] .lx .lx-hero__in { padding-top:14px; padding-bottom:70px; }
  html[data-brand="ib"] .lx .lx-hero h1 { margin-top:18px; font-size:30px; line-height:1.06; font-weight:800; letter-spacing:-.035em; text-wrap:balance; animation:lx-slide .7s var(--ease) both; }
  html[data-brand="ib"] .lx .lx-lead { margin-top:10px; max-width:640px; font-size:15px; line-height:1.6; font-weight:500; color:rgba(255,255,255,.95); animation:lx-slide .7s .05s var(--ease) both; }
  html[data-brand="ib"] .lx .lx-lead b { font-weight:700; color:#fff; }
  html[data-brand="ib"] .lx .lx-acts { display:flex; flex-wrap:wrap; align-items:center; gap:6px 22px; margin-top:18px; animation:lx-slide .7s .1s var(--ease) both; }
  html[data-brand="ib"] .lx .lx-cta { display:inline-flex; align-items:center; justify-content:center; min-height:50px; padding:0 24px; border-radius:999px; background:#fff; font-size:15px; font-weight:800; color:var(--pk-d); box-shadow:0 14px 26px -18px rgba(20,24,31,.6); transition:transform .2s var(--ease); }
  html[data-brand="ib"] .lx .lx-cta:active { transform:scale(.985); }
  html[data-brand="ib"] .lx .lx-jump { display:inline-flex; align-items:center; gap:6px; min-height:44px; font-size:14.5px; font-weight:700; color:#fff; text-decoration:underline; text-decoration-color:rgba(255,255,255,.5); text-decoration-thickness:1.5px; text-underline-offset:4px; }
  html[data-brand="ib"] .lx .lx-jump:hover { color:#fff; text-decoration-color:#fff; }
  html[data-brand="ib"] .lx .lx-jump svg { width:16px; height:16px; }
  /* the document: one sheet over the edge of the hero */
  html[data-brand="ib"] .lx .lx-main { position:relative; margin-top:-44px; padding-bottom:48px; }
  html[data-brand="ib"] .lx .lx-sheet { border-radius:26px; background:#fff; box-shadow:0 24px 50px -30px rgba(20,24,31,.45),0 0 0 1px var(--line); animation:lx-rise .7s .1s var(--ease) both; }
  /* the three things worth knowing before reading */
  html[data-brand="ib"] .lx .lx-brief { padding:22px 18px 6px; }
  html[data-brand="ib"] .lx .lx-brief__t { font-size:13.5px; line-height:1.3; font-weight:700; color:var(--muted); }
  html[data-brand="ib"] .lx .lx-brief ol { margin-top:4px; counter-reset:b; }
  html[data-brand="ib"] .lx .lx-brief li { position:relative; padding:14px 0 14px 34px; border-bottom:1px solid var(--line); font-size:15.5px; line-height:1.45; font-weight:700; letter-spacing:-.01em; counter-increment:b; animation:lx-in .5s var(--ease) both; }
  html[data-brand="ib"] .lx .lx-brief li:nth-child(1) { animation-delay:.3s; }
  html[data-brand="ib"] .lx .lx-brief li:nth-child(2) { animation-delay:.4s; }
  html[data-brand="ib"] .lx .lx-brief li:nth-child(3) { animation-delay:.5s; }
  html[data-brand="ib"] .lx .lx-brief li:last-child { border-bottom:0; }
  html[data-brand="ib"] .lx .lx-brief li::before { content:counter(b); position:absolute; left:0; top:14px; font-size:15.5px; font-weight:800; font-variant-numeric:tabular-nums; color:#b7bdc8; }
  html[data-brand="ib"] .lx .lx-grid { border-top:1px solid var(--line); }
  /* index: folded on phones, a sticky column on desktop */
  html[data-brand="ib"] .lx .lx-toc { border-bottom:1px solid var(--line); }
  html[data-brand="ib"] .lx .lx-toc__hd { display:grid; grid-template-columns:1fr auto; align-items:center; gap:0 12px; width:100%; min-height:64px; padding:10px 18px; }
  html[data-brand="ib"] .lx .lx-toc__hd b { grid-column:1; font-size:15.5px; font-weight:800; letter-spacing:-.01em; }
  html[data-brand="ib"] .lx .lx-toc__hd span { grid-column:1; font-size:13px; font-weight:500; color:var(--muted); }
  html[data-brand="ib"] .lx .lx-toc__hd svg { grid-column:2; grid-row:1/3; transition:transform .3s var(--ease); }
  html[data-brand="ib"] .lx .lx-toc__hd[aria-expanded="true"] svg { transform:rotate(180deg); }
  html[data-brand="ib"] .lx .lx-toc ol { display:none; padding:0 18px 14px; }
  html[data-brand="ib"] .lx .lx-toc ol.is-open { display:block; }
  html[data-brand="ib"] .lx .lx-toc li a { display:flex; align-items:baseline; gap:12px; min-height:44px; padding:11px 0; border-top:1px solid var(--line); font-size:14.5px; line-height:1.4; font-weight:600; color:var(--text); }
  html[data-brand="ib"] .lx .lx-toc li a span { flex:none; width:20px; font-size:12.5px; font-weight:700; font-variant-numeric:tabular-nums; color:#98a2b3; }
  html[data-brand="ib"] .lx .lx-toc li a:hover { color:var(--ink); }
  /* the text */
  html[data-brand="ib"] .lx .lx-doc { padding:8px 18px 26px; font-size:15.5px; line-height:1.7; font-weight:500; color:var(--text); }
  html[data-brand="ib"] .lx .lx-doc h2 { position:relative; margin-top:30px; padding-top:28px; border-top:1px solid var(--line); font-size:21px; line-height:1.2; font-weight:800; letter-spacing:-.025em; color:var(--ink); text-wrap:balance; }
  html[data-brand="ib"] .lx .lx-doc > h2:first-child, html[data-brand="ib"] .lx .lx-doc > section:first-child > h2 { margin-top:0; border-top:0; padding-top:18px; }
  html[data-brand="ib"] .lx .lx-n { display:block; margin-bottom:6px; font-size:13px; line-height:1; font-weight:700; letter-spacing:0; font-variant-numeric:tabular-nums; color:#98a2b3; }
  html[data-brand="ib"] .lx .lx-doc h3 { margin-top:26px; font-size:16.5px; line-height:1.3; font-weight:800; letter-spacing:-.015em; color:var(--ink); }
  html[data-brand="ib"] .lx .lx-doc p { margin-top:12px; }
  html[data-brand="ib"] .lx .lx-doc strong { font-weight:700; color:var(--ink); }
  html[data-brand="ib"] .lx .lx-doc a { font-weight:700; color:var(--pk-d); text-decoration:underline; text-decoration-color:rgba(207,22,101,.35); text-decoration-thickness:1.5px; text-underline-offset:3px; overflow-wrap:anywhere; }
  html[data-brand="ib"] .lx .lx-doc a:hover { color:var(--pk-d); text-decoration-color:var(--pk-d); }
  html[data-brand="ib"] .lx .lx-doc code { padding:1px 6px; border-radius:6px; background:var(--tint); font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:.86em; color:var(--ink); }
  html[data-brand="ib"] .lx .lx-doc ul { margin-top:12px; }
  html[data-brand="ib"] .lx .lx-doc ul li { position:relative; padding:9px 0 9px 22px; border-bottom:1px solid var(--line); }
  html[data-brand="ib"] .lx .lx-doc ul li:last-child { border-bottom:0; }
  html[data-brand="ib"] .lx .lx-doc ul li::before { content:""; position:absolute; left:2px; top:21px; width:9px; height:2px; border-radius:2px; background:var(--ink); }
  html[data-brand="ib"] .lx .lx-doc ul.lx-checklist--no li::before { width:10px; height:10px; top:17px; left:1px; background:linear-gradient(45deg,transparent 43%,var(--ink) 43%,var(--ink) 57%,transparent 57%),linear-gradient(-45deg,transparent 43%,var(--ink) 43%,var(--ink) 57%,transparent 57%); }
  /* who / what: two columns of facts */
  html[data-brand="ib"] .lx .lx-doc .lx-kv { margin-top:16px; border-top:1px solid var(--line); }
  html[data-brand="ib"] .lx .lx-doc .lx-kv-row { display:grid; gap:2px; padding:11px 0; border-bottom:1px solid var(--line); }
  html[data-brand="ib"] .lx .lx-doc .lx-kv dt { font-size:13px; font-weight:600; color:var(--muted); }
  html[data-brand="ib"] .lx .lx-doc .lx-kv dd { font-weight:700; color:var(--ink); overflow-wrap:anywhere; }
  /* notes: grey for context, an ink outline for what you must not miss */
  html[data-brand="ib"] .lx .lx-doc .lx-callout { margin-top:18px; padding:16px 18px; border-radius:16px; background:var(--tint); font-size:14.5px; line-height:1.65; }
  html[data-brand="ib"] .lx .lx-doc .lx-callout--warning, html[data-brand="ib"] .lx .lx-doc .lx-callout--danger { background:#fff; box-shadow:inset 0 0 0 1.5px var(--ink); }
  html[data-brand="ib"] .lx .lx-doc .lx-callout-title { display:block; font-size:15px; line-height:1.35; font-weight:800; letter-spacing:-.01em; color:var(--ink); }
  html[data-brand="ib"] .lx .lx-doc .lx-callout p { margin-top:6px; }
  html[data-brand="ib"] .lx .lx-doc .lx-callout ul { margin-top:6px; }
  html[data-brand="ib"] .lx .lx-doc .lx-callout ul li { border-bottom:0; padding-top:4px; padding-bottom:4px; }
  html[data-brand="ib"] .lx .lx-doc .lx-callout ul li::before { top:16px; }
  html[data-brand="ib"] .lx .lx-doc .lx-legal-ref { font-size:.86em; font-weight:600; color:var(--muted); white-space:nowrap; }
  html[data-brand="ib"] .lx .lx-doc :is(.lx-badge,.lx-badge) { margin-left:6px; font-size:13px; font-weight:600; letter-spacing:0; color:var(--muted); white-space:nowrap; }
  html[data-brand="ib"] .lx .lx-doc .lx-kpis { display:grid; margin-top:18px; border-top:1px solid var(--line); }
  html[data-brand="ib"] .lx .lx-doc .lx-kpi { padding:14px 0; border-bottom:1px solid var(--line); }
  html[data-brand="ib"] .lx .lx-doc .lx-kpi-num { font-size:22px; line-height:1.15; font-weight:800; letter-spacing:-.03em; color:var(--ink); }
  html[data-brand="ib"] .lx .lx-doc .lx-kpi-label { margin-top:2px; font-size:13.5px; font-weight:500; color:var(--muted); }
  /* tables: on phones every row is a small sheet of «column: value» */
  html[data-brand="ib"] .lx .lx-doc :is(.lx-table-wrap,.lx-table-wrap) { margin-top:16px; }
  html[data-brand="ib"] .lx .lx-doc table { width:100%; border-collapse:collapse; font-size:14px; line-height:1.55; text-align:left; }
  html[data-brand="ib"] .lx .lx-doc thead { display:none; }
  html[data-brand="ib"] .lx .lx-doc tbody tr { display:block; padding:12px 0; border-top:1px solid var(--line); }
  html[data-brand="ib"] .lx .lx-doc tbody tr:last-child { border-bottom:1px solid var(--line); }
  html[data-brand="ib"] .lx .lx-doc td { display:grid; grid-template-columns:96px minmax(0,1fr); gap:0 12px; padding:2px 0; vertical-align:top; overflow-wrap:anywhere; }
  html[data-brand="ib"] .lx .lx-doc td::before { content:attr(data-l); font-size:12.5px; line-height:1.75; font-weight:600; color:var(--muted); }
  html[data-brand="ib"] .lx .lx-doc td:first-child { display:block; padding-bottom:4px; font-weight:700; color:var(--ink); }
  html[data-brand="ib"] .lx .lx-doc td:first-child::before { content:none; }
  html[data-brand="ib"] .lx .lx-doc .lx-table--ck td:first-child { font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:13px; }
  /* cookies: a category, then who installs them */
  html[data-brand="ib"] .lx .lx-doc .lx-ck-cat { margin-top:30px; padding-top:4px; }
  html[data-brand="ib"] .lx .lx-doc .lx-ck-cat h3 { margin-top:0; font-size:18px; }
  html[data-brand="ib"] .lx .lx-doc .lx-ck-group { margin-top:22px; font-size:13px; color:var(--muted); }
  html[data-brand="ib"] .lx .lx-doc .lx-ck-group strong { display:block; font-size:15px; font-weight:800; color:var(--ink); }
  html[data-brand="ib"] .lx .lx-doc .lx-ck-group + p { margin-top:4px; font-size:14.5px; }
  html[data-brand="ib"] .lx .lx-doc .lx-btn { display:inline-flex; align-items:center; justify-content:center; min-height:50px; margin-top:6px; padding:0 22px; border:1.5px solid var(--ink); border-radius:999px; font-size:14.5px; font-weight:800; color:var(--ink); text-decoration:none; transition:background-color .2s,color .2s; }
  html[data-brand="ib"] .lx .lx-doc .lx-btn:hover { background:var(--ink); color:#fff; }
  /* the way out: the other two documents and a way to ask */
  html[data-brand="ib"] .lx .lx-next { padding:24px 18px 22px; border-top:1px solid var(--line); }
  html[data-brand="ib"] .lx .lx-next__t { font-size:19px; line-height:1.2; font-weight:800; letter-spacing:-.025em; }
  html[data-brand="ib"] .lx .lx-next__l { margin-top:10px; }
  html[data-brand="ib"] .lx .lx-next__a { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:2px 16px; padding:15px 0; border-bottom:1px solid var(--line); color:var(--ink); }
  html[data-brand="ib"] .lx .lx-next__a b { grid-column:1; font-size:16px; font-weight:800; letter-spacing:-.01em; }
  html[data-brand="ib"] .lx .lx-next__a span { grid-column:1; font-size:14px; line-height:1.5; font-weight:500; color:var(--text); }
  html[data-brand="ib"] .lx .lx-next__a svg { grid-column:2; grid-row:1/3; transition:transform .25s var(--ease); }
  html[data-brand="ib"] .lx .lx-next__a:hover svg { transform:translateX(4px); }
  html[data-brand="ib"] .lx .lx-ask { margin-top:16px; font-size:14px; line-height:1.6; font-weight:500; color:var(--text); }
  html[data-brand="ib"] .lx .lx-ask a { font-weight:700; color:var(--pk-d); text-decoration:underline; text-decoration-color:rgba(207,22,101,.35); text-decoration-thickness:1.5px; text-underline-offset:3px; }
  @keyframes lx-prog { to{transform:scaleX(1)} }
  @keyframes lx-slide { from{transform:translateY(16px)}to{transform:none} }
  @keyframes lx-rise { from{opacity:.01;transform:translateY(22px)}to{opacity:1;transform:none} }
  @keyframes lx-in { from{opacity:.01;transform:translateY(8px)}to{opacity:1;transform:none} }
  @media (prefers-reduced-motion:reduce) {
    html[data-brand="ib"] .lx * { animation:none!important; transition:none!important; }
  }
  /* the smallest phones */
  @container lx (max-width:350px) {
    html[data-brand="ib"] .lx .lx-wrap { padding-left:16px; padding-right:16px; }
    html[data-brand="ib"] .lx .lx-hero h1 { font-size:27px; }
    html[data-brand="ib"] .lx .lx-brief, html[data-brand="ib"] .lx .lx-next { padding-left:14px; padding-right:14px; }
    html[data-brand="ib"] .lx .lx-doc { padding-left:14px; padding-right:14px; }
    html[data-brand="ib"] .lx .lx-toc__hd { padding-left:14px; padding-right:14px; }
    html[data-brand="ib"] .lx .lx-toc ol { padding-left:14px; padding-right:14px; }
    html[data-brand="ib"] .lx .lx-doc td { grid-template-columns:84px minmax(0,1fr); }
  }
  @container lx (min-width:700px) {
    html[data-brand="ib"] .lx .lx-sheet { border-radius:30px; }
    html[data-brand="ib"] .lx .lx-brief { padding:26px 30px 22px; }
    html[data-brand="ib"] .lx .lx-brief ol { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0 28px; margin-top:10px; }
    html[data-brand="ib"] .lx .lx-brief li { padding:0 0 0 28px; border-bottom:0; border-left:0; font-size:15px; }
    html[data-brand="ib"] .lx .lx-brief li::before { top:0; font-size:15px; }
    html[data-brand="ib"] .lx .lx-toc__hd { padding:10px 30px; }
    html[data-brand="ib"] .lx .lx-toc ol { padding:0 30px 16px; }
    html[data-brand="ib"] .lx .lx-toc ol.is-open { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 28px; }
    html[data-brand="ib"] .lx .lx-doc { padding:10px 30px 34px; }
    html[data-brand="ib"] .lx .lx-doc .lx-kv-row { grid-template-columns:190px minmax(0,1fr); gap:16px; }
    html[data-brand="ib"] .lx .lx-doc .lx-kv dt { font-size:14px; padding-top:1px; }
    html[data-brand="ib"] .lx .lx-doc .lx-kpis { grid-template-columns:repeat(3,minmax(0,1fr)); gap:0 24px; }
    /* real tables from here */
    html[data-brand="ib"] .lx .lx-doc thead { display:table-header-group; }
    html[data-brand="ib"] .lx .lx-doc th { padding:10px 14px 10px 0; border-bottom:1.5px solid var(--ink); font-size:13px; font-weight:700; color:var(--ink); vertical-align:bottom; }
    html[data-brand="ib"] .lx .lx-doc tbody tr { display:table-row; padding:0; border:0; }
    html[data-brand="ib"] .lx .lx-doc tbody tr:last-child { border-bottom:0; }
    html[data-brand="ib"] .lx .lx-doc td, html[data-brand="ib"] .lx .lx-doc td:first-child { display:table-cell; padding:12px 14px 12px 0; border-bottom:1px solid var(--line); }
    html[data-brand="ib"] .lx .lx-doc td::before { content:none; }
    html[data-brand="ib"] .lx .lx-doc :is(th,td):last-child { padding-right:0; }
    html[data-brand="ib"] .lx .lx-doc .lx-table--ck td:first-child { width:27%; }
    html[data-brand="ib"] .lx .lx-doc .lx-table--ck td:nth-child(3) { width:16%; }
    html[data-brand="ib"] .lx .lx-doc .lx-table--ck td:nth-child(4) { width:19%; }
    html[data-brand="ib"] .lx .lx-next { padding:28px 30px 28px; }
    html[data-brand="ib"] .lx .lx-next__l { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 36px; }
  }
  /* desktop: the header sits on the hero; index on the left, text at a reading width */
  @container lx (min-width:960px) {
    html[data-brand="ib"] .lx .lx-wrap { padding:0 32px; }
    html[data-brand="ib"] .lx .lx-hero__in { padding-top:92px; padding-bottom:128px; }
    html[data-brand="ib"] .lx .lx-hero h1 { margin-top:26px; font-size:clamp(38px,3.8cqi,52px); }
    html[data-brand="ib"] .lx .lx-lead { margin-top:14px; font-size:16.5px; }
    html[data-brand="ib"] .lx .lx-acts { margin-top:24px; }
    html[data-brand="ib"] .lx .lx-main { margin-top:-78px; padding-bottom:88px; }
    html[data-brand="ib"] .lx .lx-sheet { border-radius:36px; box-shadow:0 30px 60px -34px rgba(20,24,31,.5),0 0 0 1px var(--line); }
    html[data-brand="ib"] .lx .lx-doc { padding:14px 56px 48px; font-size:16px; line-height:1.75; }
    html[data-brand="ib"] .lx .lx-doc h2 { margin-top:38px; padding-top:34px; font-size:25px; }
    html[data-brand="ib"] .lx .lx-doc > h2:first-child, html[data-brand="ib"] .lx .lx-doc > section:first-child > h2 { padding-top:20px; }
    html[data-brand="ib"] .lx .lx-doc h3 { margin-top:30px; font-size:18px; }
    html[data-brand="ib"] .lx .lx-doc p { margin-top:14px; }
    html[data-brand="ib"] .lx .lx-doc .lx-callout { padding:20px 24px; border-radius:18px; font-size:15px; }
    html[data-brand="ib"] .lx .lx-doc .lx-ck-cat h3 { font-size:20px; }
    html[data-brand="ib"] .lx .lx-next { padding:36px 56px 40px; }
    html[data-brand="ib"] .lx .lx-next__t { font-size:23px; }
    html[data-brand="ib"] .lx .lx-brief { padding:34px 56px 30px; }
    html[data-brand="ib"] .lx .lx-toc__hd { padding:10px 56px; }
    html[data-brand="ib"] .lx .lx-toc ol { padding:0 56px 18px; }
  }
  /* wide: the index becomes a column that stays in view while you read */
  @container lx (min-width:1100px) {
    html[data-brand="ib"] .lx .lx-doc { max-width:760px; padding:14px 0 48px; }
    html[data-brand="ib"] .lx .lx-brief { display:grid; grid-template-columns:232px minmax(0,1fr); gap:0 56px; align-items:baseline; padding:34px 56px 32px; }
    html[data-brand="ib"] .lx .lx-brief__t { font-size:14px; }
    html[data-brand="ib"] .lx .lx-brief ol { margin-top:0; gap:0 36px; }
    html[data-brand="ib"] .lx .lx-brief li { font-size:15.5px; }
    html[data-brand="ib"] .lx .lx-grid { display:grid; grid-template-columns:232px minmax(0,1fr); gap:0 56px; padding:0 56px; }
    html[data-brand="ib"] .lx .lx-toc { position:sticky; top:104px; align-self:start; max-height:calc(100vh - 128px); overflow:auto; padding:34px 0 30px; border-bottom:0; }
    html[data-brand="ib"] .lx .lx-toc__hd { display:block; min-height:0; padding:0; cursor:default; pointer-events:none; }
    html[data-brand="ib"] .lx .lx-toc__hd b { font-size:14px; color:var(--muted); font-weight:700; }
    html[data-brand="ib"] .lx .lx-toc__hd span { display:block; margin-top:2px; font-size:13px; }
    html[data-brand="ib"] .lx .lx-toc__hd svg { display:none; }
    html[data-brand="ib"] .lx .lx-toc ol, html[data-brand="ib"] .lx .lx-toc ol.is-open { display:block; margin-top:14px; padding:0; }
    html[data-brand="ib"] .lx .lx-toc li a { position:relative; min-height:0; padding:9px 0 9px 14px; border-top:0; font-size:13.5px; line-height:1.4; gap:10px; transition:color .2s; }
    html[data-brand="ib"] .lx .lx-toc li a::before { content:""; position:absolute; left:0; top:6px; bottom:6px; width:2px; border-radius:2px; background:var(--line); transition:background-color .2s; }
    html[data-brand="ib"] .lx .lx-toc li.is-on a { font-weight:700; color:var(--ink); }
    html[data-brand="ib"] .lx .lx-toc li.is-on a::before { background:var(--ink); }
    html[data-brand="ib"] .lx .lx-toc li a span { width:18px; font-size:12px; }
  }
  /* -- the real page -- */
  html[data-brand="ib"]:is([data-ib-marks~="ibp-legaldoc"]) section.header-top.ib-crumbs > .container { width: 100% !important; max-width: 1216px !important; margin: 0 auto !important; padding-left: 20px !important; padding-right: 20px !important; }
  @media (min-width: 960px) {
    html[data-brand="ib"]:is([data-ib-marks~="ibp-legaldoc"]) section.header-top.ib-crumbs > .container { padding-left: 32px !important; padding-right: 32px !important; }
  }
  @media (max-width: 350px) {
    html[data-brand="ib"]:is([data-ib-marks~="ibp-legaldoc"]) section.header-top.ib-crumbs > .container { padding-left: 16px !important; padding-right: 16px !important; }
  }
  html[data-brand="ib"] .lx { overflow: clip; }
  /* room for the capsule: chrome.css gives the hero a 22 px (phones) / 62 px (desktop) top border */
  html[data-brand="ib"] .lx .lx-hero__in { padding-top: 50px; }
  html[data-brand="ib"] .lx .lx-hero h1 { margin-top: 0; color: #fff; }
  @media (min-width: 992px) {
    html[data-brand="ib"] .lx .lx-hero__in { padding-top: 14px; }
  }
  /* the footer of these pages comes up over the end of the page */
  html[data-brand="ib"] .lx .lx-main { padding-bottom: 76px; }
  @container lx (min-width: 960px) {
    html[data-brand="ib"] .lx .lx-main { padding-bottom: 96px; }
  }
  /* Reading progress: under the site header, driven by the scroll itself where the browser can
     (elsewhere there is no line: a time-based fallback would draw it full). */
  html[data-brand="ib"] .lx .lx-prog { display: none; position: sticky; inset: auto; top: calc(70px + var(--onsite-top-bar, 0px)); z-index: 6; margin-bottom: -3px; animation: none; }
  @supports (animation-timeline: scroll()) {
    html[data-brand="ib"] .lx .lx-prog { display: block; animation: lx-prog linear both; animation-timeline: scroll(root); }
  }
  @media (min-width: 992px) {
    html[data-brand="ib"] .lx .lx-prog { top: calc(80px + var(--onsite-top-bar, 0px)); }
  }
  /* The index is two elements: a native <details> up to tablets, a column on wide screens. */
  html[data-brand="ib"] .lx .lx-toc--side { display: none; }
  html[data-brand="ib"] .lx .lx-toc--fold > summary { list-style: none; cursor: pointer; }
  html[data-brand="ib"] .lx .lx-toc--fold > summary::-webkit-details-marker { display: none; }
  html[data-brand="ib"] .lx .lx-toc--fold[open] > summary svg { transform: rotate(180deg); }
  html[data-brand="ib"] .lx .lx-toc--fold ol { display: block; }
  @container lx (min-width: 700px) {
    html[data-brand="ib"] .lx .lx-toc--fold ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
  }
  @container lx (min-width: 1100px) {
    html[data-brand="ib"] .lx .lx-toc--fold { display: none; }
    html[data-brand="ib"] .lx .lx-toc--side { display: block; top: calc(104px + var(--onsite-top-bar, 0px)); max-height: calc(100vh - 128px - var(--onsite-top-bar, 0px)); overscroll-behavior: contain; scrollbar-width: thin; }
  }
  /* a section reached from the index stops under the header */
  html[data-brand="ib"] .lx .lx-doc [id] { scroll-margin-top: calc(96px + var(--onsite-top-bar, 0px)); }
  html[data-brand="ib"] .lx .lx-doc :is(h2, h3) { text-transform: none; }
  html[data-brand="ib"] .lx .lx-doc :is(dl, dd, dt) { margin: 0; }
  html[data-brand="ib"] .lx .lx-doc small { font-size: .9em; color: var(--muted); }
  html[data-brand="ib"] .lx .lx-doc img { border-radius: 14px; }
  html[data-brand="ib"] .lx .lx-doc ol { margin-top: 12px; padding-left: 22px; list-style: decimal; }
  html[data-brand="ib"] .lx .lx-doc ol li { padding: 4px 0; }
  html[data-brand="ib"] .lx .lx-doc .lx-ck-empty { color: var(--muted); }
  /* a table without header (no column names to show): plain stacked cells on phones */
  html[data-brand="ib"] .lx .lx-doc td:not([data-l]) { display: block; }
  @container lx (min-width: 700px) {
    html[data-brand="ib"] .lx .lx-doc td:not([data-l]) { display: table-cell; }
  }
  /* the site's generic table look (zebra rows, cell rules) stays out of the document */
  html[data-brand="ib"] .lx .lx-doc table :is(tr, th, td):nth-child(n) { background: none; }
  html[data-brand="ib"] .lx .lx-doc table td:nth-child(n) { border: 0; }
  html[data-brand="ib"] .lx .lx-doc table th:nth-child(n) { border: 0; border-bottom: 1.5px solid var(--ink); text-transform: none; letter-spacing: 0; }
  @container lx (min-width: 700px) {
    html[data-brand="ib"] .lx .lx-doc table td:nth-child(n) { border-bottom: 1px solid var(--line); }
  }
  /* The hero runs under the header on desktop (as on /blog, /servicios and /faq). */
  @media (min-width: 992px) {
    html[data-brand="ib"] .lx { top: -80px; margin-bottom: -80px; }
    html[data-brand="ib"] .lx .lx-hero { padding-top: 80px; }
    html[data-brand="ib"]:is([data-ib-marks~="ibp-legaldoc"]) #headerNav:not(.scrolled) { background: transparent !important; box-shadow: none !important; border-color: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
    html[data-brand="ib"]:is([data-ib-marks~="ibp-legaldoc"]) #headerNav:not(.scrolled) :is(.ib-nav-link, .ib-hact__btn, .ib-acc__label) { color: #fff !important; }
    html[data-brand="ib"]:is([data-ib-marks~="ibp-legaldoc"]) #headerNav:not(.scrolled) .ib-hact__btn svg { color: #fff; stroke: #fff; }
    html[data-brand="ib"]:is([data-ib-marks~="ibp-legaldoc"]) #headerNav:not(.scrolled) .ib-nav-link::after { background: #fff !important; }
    html[data-brand="ib"]:is([data-ib-marks~="ibp-legaldoc"]) #headerNav:not(.scrolled) .ib-nav-badge { background: #fff !important; color: #c9156e !important; box-shadow: none !important; }
    html[data-brand="ib"]:is([data-ib-marks~="ibp-legaldoc"]) #headerNav:not(.scrolled) .ib-logo { filter: brightness(0) invert(1); }
    html[data-brand="ib"]:is([data-ib-marks~="ibp-legaldoc"]) #headerNav:not(.scrolled) .ib-hact .ib-acc__avatar--initials { background: #fff !important; color: #e61c72 !important; box-shadow: none; }
    html[data-brand="ib"]:is([data-ib-marks~="ibp-legaldoc"]) #headerNav:not(.scrolled) .ib-hact img.ib-acc__avatar { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85); }
  }
}
