/* Fintu · estilos compartidos para páginas legales (estética landing) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #000000;
  --surface: #0d0d0f;
  --surface-2: #16161a;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.14);
  --ink: #ffffff;
  --ink-soft: #c7c7cf;
  --muted: #8d8d97;
  --magenta: #e91e8c;
  --magenta-bright: #ff4fa6;
  --maxw: 820px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink-soft);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--magenta-bright); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--magenta); color: #fff; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 2rem); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(0,0,0,.8); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; max-width: 1180px; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 900; font-size: 1.25rem; letter-spacing: -0.02em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand svg { width: 28px; height: 28px; }
.nav-actions { display: flex; gap: .6rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-weight: 700; font-size: .92rem; padding: .6rem 1.15rem; border-radius: 999px; border: 1px solid transparent; transition: transform .2s var(--ease), background .2s var(--ease); }
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.96); }
.btn-primary { background: var(--magenta); color: #fff; }
.btn-primary:hover { background: var(--magenta-bright); }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--ink); border-color: var(--line-strong); }

/* Document */
main { padding: clamp(2.5rem, 7vw, 4.5rem) 0 clamp(3rem, 8vw, 6rem); }
.doc-head { margin-bottom: clamp(2rem, 5vw, 3rem); padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.doc-head .kicker { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--magenta); margin-bottom: .8rem; }
.doc-head h1 { font-size: clamp(2.1rem, 6vw, 3rem); line-height: 1.08; font-weight: 900; letter-spacing: -0.035em; color: var(--ink); text-wrap: balance; }
.doc-head .updated { margin-top: 1rem; font-size: .9rem; color: var(--muted); }

.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem 1.6rem; margin-bottom: clamp(2rem, 5vw, 3rem); }
.toc h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .9rem; }
.toc ol { list-style: none; counter-reset: toc; display: grid; gap: .5rem; }
.toc li { counter-increment: toc; }
.toc a { color: var(--ink-soft); font-weight: 500; }
.toc a::before { content: counter(toc) ". "; color: var(--magenta); font-weight: 700; }

article h2 { color: var(--ink); font-size: clamp(1.3rem, 3vw, 1.6rem); font-weight: 800; letter-spacing: -0.02em; margin: 2.4rem 0 .9rem; scroll-margin-top: 84px; }
article h3 { color: var(--ink); font-size: 1.1rem; font-weight: 700; margin: 1.6rem 0 .6rem; }
article p { margin-bottom: 1rem; }
article ul, article ol { margin: 0 0 1.2rem 1.3rem; display: grid; gap: .5rem; }
article li { padding-left: .2rem; }
article strong, article b { color: var(--ink); font-weight: 700; }
article table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .92rem; }
article th, article td { text-align: left; padding: .7rem .9rem; border: 1px solid var(--line); vertical-align: top; }
article th { background: var(--surface-2); color: var(--ink); font-weight: 700; }

.note { background: rgba(233,30,140,.08); border: 1px solid rgba(233,30,140,.22); border-radius: 14px; padding: 1rem 1.2rem; margin: 1.5rem 0; color: var(--ink-soft); font-size: .92rem; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 2.5rem 0; }
.foot { max-width: 1180px; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; color: var(--muted); font-size: .88rem; }
.foot nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.foot nav a { color: var(--ink-soft); }

:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; border-radius: 4px; }
