/* Páginas legales Dri-bling: hoja compartida para privacidad y cookies. */
:root {
	--legal-ink: #0b0c10;
	--legal-ink-2: #121318;
	--legal-ink-3: #1c1e25;
	--legal-paper: #f2f2f2;
	--legal-white: #fff;
	--legal-text: #e9ebf3;
	--legal-muted: #a4a7b1;
	--legal-ink-text: #15171d;
	--legal-ink-muted: #5c6170;
	--legal-line: rgba(255,255,255,.14);
	--legal-line-ink: rgba(12,15,29,.14);
	--legal-gold: #ffb70f;
	--legal-gold-2: #ffd257;
	--legal-grad: linear-gradient(100deg, #ffd96a 0%, #ffb70f 44%, #ff8a00 100%);
	--legal-display: "Sora", Inter, Arial, sans-serif;
	--legal-body: Inter, Arial, sans-serif;
	--site-header-h: 76px;
	--site-wrap: 1280px;
	--site-gutter: clamp(20px, 4vw, 48px);
	--site-ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.legal-page { margin: 0; background: var(--legal-paper); color: var(--legal-ink-text); font-family: var(--legal-body); line-height: 1.55; }
body.legal-page a { color: inherit; }
body.legal-page button { font: inherit; cursor: pointer; }
.site-wrap { width: 100%; max-width: var(--site-wrap); margin: 0 auto; padding: 0 var(--site-gutter); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 999; padding: 10px 16px; border-radius: 10px; background: var(--legal-gold); color: var(--legal-ink); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* Encabezado y pie compartidos con la portada comercial. */
body.legal-page .site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--site-header-h); border-bottom: 1px solid var(--legal-line); background: rgba(11,12,16,.92); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); }
body.legal-page .header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
body.legal-page .brand { position: relative; z-index: 3; display: inline-flex; flex: 0 0 auto; align-items: center; }
body.legal-page .brand img { display: block; width: auto; max-width: none; height: 54px; }
body.legal-page .brand-compact img { height: 44px; }
body.legal-page .main-nav { display: flex; align-items: center; gap: 36px; }
body.legal-page .nav-list { display: flex; gap: 30px; margin: 0; padding: 0; list-style: none; }
body.legal-page .nav-list a { position: relative; display: block; padding: 6px 0; color: rgba(255,255,255,.78); font-size: 14px; font-weight: 500; text-decoration: none; transition: color .3s; }
body.legal-page .nav-list a::after { position: absolute; right: 0; bottom: 0; left: 0; height: 1px; background: var(--legal-gold); content: ""; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--site-ease); }
body.legal-page .nav-list a:hover { color: #fff; }
body.legal-page .nav-list a:hover::after { transform: scaleX(1); transform-origin: left; }
body.legal-page .nav-actions { display: flex; align-items: center; }
body.legal-page .btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border-radius: 999px; font-family: var(--legal-display); font-size: 14px; font-weight: 600; text-decoration: none; transition: transform .35s var(--site-ease), box-shadow .35s var(--site-ease); white-space: nowrap; }
body.legal-page .btn-gold { background: var(--legal-grad); color: #120d00; box-shadow: 0 10px 40px -10px rgba(255,170,0,.55); }
body.legal-page .btn-gold:hover { transform: translateY(-2px); box-shadow: 0 18px 50px -12px rgba(255,170,0,.75); }
body.legal-page .nav-toggle { position: relative; display: none; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; }
body.legal-page .nav-toggle .bar { position: absolute; right: 11px; left: 11px; height: 1.5px; background: #fff; transition: transform .4s var(--site-ease), top .4s var(--site-ease); }
body.legal-page .nav-toggle .bar:nth-of-type(1) { top: 18px; }
body.legal-page .nav-toggle .bar:nth-of-type(2) { top: 25px; }
body.legal-page.nav-open .nav-toggle .bar:nth-of-type(1) { top: 21.5px; transform: rotate(45deg); }
body.legal-page.nav-open .nav-toggle .bar:nth-of-type(2) { top: 21.5px; transform: rotate(-45deg); }
.legal-wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.legal-header { position: sticky; z-index: 20; top: 0; background: rgba(11,12,16,.94); border-bottom: 1px solid var(--legal-line); backdrop-filter: blur(14px); }
.legal-header-in { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.legal-brand { display: inline-flex; align-items: center; flex: 0 1 330px; }
.legal-brand img { display: block; width: min(250px, 100%); height: auto; }
.legal-nav { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.legal-nav a { padding: 9px 12px; border-radius: 999px; color: rgba(255,255,255,.75); text-decoration: none; font-size: 14px; transition: color .2s, background .2s; }
.legal-nav a:hover, .legal-nav a[aria-current="page"] { color: #130e00; background: var(--legal-grad); }

.legal-hero { overflow: hidden; position: relative; padding: calc(var(--site-header-h) + clamp(72px, 10vw, 132px)) 0 clamp(66px, 8vw, 100px); color: var(--legal-text); background: radial-gradient(70% 130% at 0% 100%, rgba(255,143,0,.2), transparent 68%), radial-gradient(45% 100% at 92% 15%, rgba(255,183,15,.12), transparent 68%), var(--legal-ink); }
.legal-hero::after { content: ""; position: absolute; inset: auto -20vw -50vw auto; width: 70vw; height: 70vw; border: 1px solid rgba(255,255,255,.06); border-radius: 50%; }
.legal-eyebrow { position: relative; display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; color: var(--legal-gold-2); font-family: var(--legal-display); font-size: 12px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.legal-eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--legal-gold); }
.legal-hero h1 { position: relative; max-width: 820px; margin: 0; color: #fff; font-family: var(--legal-display); font-size: clamp(42px, 7.2vw, 82px); font-weight: 600; letter-spacing: -.06em; line-height: .98; }
.legal-hero h1 span { color: var(--legal-gold-2); }
.legal-intro { position: relative; max-width: 700px; margin: 26px 0 0; color: var(--legal-muted); font-size: clamp(17px, 2vw, 21px); line-height: 1.55; }
.legal-meta { position: relative; display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.legal-chip { display: inline-flex; align-items: center; min-height: 31px; padding: 0 12px; border: 1px solid rgba(255,183,15,.42); border-radius: 999px; color: var(--legal-gold-2); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; letter-spacing: .06em; }
.legal-chip.muted { border-color: var(--legal-line); color: var(--legal-muted); }

.legal-main { padding: clamp(48px, 7vw, 92px) 0; }
.legal-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.5fr); align-items: start; gap: clamp(32px, 6vw, 86px); }
.legal-aside { position: sticky; top: 108px; display: grid; gap: 16px; }
.legal-aside-card { padding: 24px; border: 1px solid var(--legal-line-ink); border-radius: 20px; background: var(--legal-white); }
.legal-aside-card h2 { margin: 0 0 12px; font-family: var(--legal-display); font-size: 18px; letter-spacing: -.025em; }
.legal-aside-card p { margin: 0; color: var(--legal-ink-muted); font-size: 14px; }
.legal-aside-links { display: grid; gap: 4px; margin: 16px 0 0; padding: 0; list-style: none; }
.legal-aside-links a { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--legal-line-ink); color: var(--legal-ink-text); font-size: 14px; font-weight: 600; text-decoration: none; }
.legal-aside-links a::after { content: "→"; color: #bc7300; }
.legal-aside-links a:hover { color: #a46100; }
.legal-contact { background: var(--legal-ink); color: var(--legal-text); }
.legal-contact h2 { color: #fff; }
.legal-contact p { color: var(--legal-muted); }
.legal-contact a { color: var(--legal-gold-2); font-weight: 600; }

.legal-content { min-width: 0; }
.legal-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 42px; }
.legal-summary div { padding: 18px; border-radius: 16px; background: var(--legal-white); border: 1px solid var(--legal-line-ink); }
.legal-summary b { display: block; margin-bottom: 5px; color: #a46100; font-family: var(--legal-display); font-size: 14px; }
.legal-summary span { display: block; color: var(--legal-ink-muted); font-size: 13px; line-height: 1.45; }
.legal-section { padding: 0 0 34px; margin: 0 0 34px; border-bottom: 1px solid var(--legal-line-ink); scroll-margin-top: 120px; }
.legal-section:last-child { margin-bottom: 0; }
.legal-section h2 { margin: 0 0 12px; color: var(--legal-ink-text); font-family: var(--legal-display); font-size: clamp(23px, 3vw, 31px); font-weight: 600; letter-spacing: -.04em; line-height: 1.12; }
.legal-section h3 { margin: 22px 0 7px; color: var(--legal-ink-text); font-family: var(--legal-display); font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.legal-section p { margin: 0 0 13px; color: var(--legal-ink-muted); font-size: 16px; }
.legal-section ul { display: grid; gap: 9px; margin: 14px 0; padding: 0; list-style: none; }
.legal-section li { position: relative; padding-left: 20px; color: var(--legal-ink-muted); font-size: 16px; }
.legal-section li::before { content: ""; position: absolute; left: 0; top: .65em; width: 8px; height: 2px; background: var(--legal-gold); }
.legal-note { margin: 20px 0 0; padding: 17px 19px; border-left: 3px solid var(--legal-gold); border-radius: 0 12px 12px 0; background: rgba(255,183,15,.11); color: #58420d; font-size: 14px; line-height: 1.5; }
.legal-note strong { color: #372700; }
.legal-action { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 8px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--legal-grad); color: #160f00; font-family: var(--legal-display); font-size: 14px; font-weight: 700; text-decoration: none; box-shadow: 0 16px 30px -18px rgba(178,103,0,.75); }
.legal-action:hover { filter: brightness(1.04); transform: translateY(-1px); }

.legal-footer { padding: 48px 0 28px; background: var(--legal-ink); border-top: 1px solid var(--legal-line); color: var(--legal-muted); }
.legal-footer-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.legal-footer .legal-brand { flex-basis: 270px; }
.legal-footer .legal-brand img { width: 220px; }
.legal-footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.legal-footer-links a { color: var(--legal-text); font-size: 14px; text-decoration: none; }
.legal-footer-links a:hover { color: var(--legal-gold); }
.legal-footer-bottom { display: flex; justify-content: space-between; gap: 18px; padding-top: 28px; margin-top: 30px; border-top: 1px solid var(--legal-line); font-size: 12px; }

body.legal-page .site-footer { padding: 80px 0 32px; border-top: 1px solid var(--legal-line); background: var(--legal-ink); color: var(--legal-text); }
body.legal-page .footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; }
body.legal-page .footer-brand .brand img { height: 72px; }
body.legal-page .footer-claim { margin: 28px 0 0; color: #fff; font-family: var(--legal-display); font-size: 26px; font-weight: 300; letter-spacing: -.02em; line-height: 1.2; }
body.legal-page .gold-text { background: var(--legal-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 600; }
body.legal-page .footer-col h3 { margin: 0 0 20px; color: var(--legal-muted); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
body.legal-page .footer-links { margin: 0; padding: 0; list-style: none; }
body.legal-page .footer-links li { margin-bottom: 12px; }
body.legal-page .footer-links a, body.legal-page .footer-links span { display: inline-flex; color: rgba(255,255,255,.78); font-size: 15px; text-decoration: none; transition: color .3s; }
body.legal-page .footer-links a:hover, body.legal-page .to-top:hover { color: var(--legal-gold); }
body.legal-page .footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--legal-line); color: var(--legal-muted); font-size: 13px; }
body.legal-page .footer-meta { display: inline-flex; align-items: center; gap: 10px; margin: 0; flex-wrap: wrap; }
body.legal-page .site-version { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border: 1px solid rgba(255,183,21,.42); border-radius: 999px; color: var(--legal-gold); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; font-weight: 600; letter-spacing: .08em; line-height: 1; }
body.legal-page .to-top { color: var(--legal-muted); text-decoration: none; }

@media (max-width: 900px) {
	body.legal-page .footer-grid { grid-template-columns: 1fr 1fr; }
	body.legal-page .footer-brand { grid-column: 1 / -1; }
	.legal-grid { grid-template-columns: 1fr; }
	.legal-aside { position: static; grid-template-columns: 1fr 1fr; }
	.legal-contact { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
	:root { --site-header-h: 68px; }
	.legal-wrap { width: min(100% - 32px, 1180px); }
	body.legal-page .brand img, body.legal-page .brand-compact img { height: 36px; }
	body.legal-page .nav-toggle { z-index: 2; display: block; }
	body.legal-page .main-nav { position: fixed; inset: var(--site-header-h) 0 0; z-index: 1; display: flex; min-height: calc(100svh - var(--site-header-h)); padding: 36px var(--site-gutter) 48px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 40px; overflow-y: auto; background: var(--legal-ink); box-shadow: 0 28px 48px rgba(0,0,0,.35); opacity: 0; pointer-events: none; transition: opacity .4s, visibility .4s; visibility: hidden; }
	body.legal-page.nav-open .main-nav { opacity: 1; pointer-events: auto; visibility: visible; }
	body.legal-page.nav-open { overflow: hidden; }
	body.legal-page .nav-list { flex-direction: column; gap: 6px; }
	body.legal-page .nav-list a { color: #fff; font-family: var(--legal-display); font-size: 32px; font-weight: 300; letter-spacing: -.02em; }
	body.legal-page .nav-actions { flex-direction: column; align-items: flex-start; }
	.legal-summary, .legal-aside { grid-template-columns: 1fr; }
	body.legal-page .footer-grid { grid-template-columns: 1fr; }
	body.legal-page .footer-bottom { flex-direction: column; margin-top: 40px; }
}
