:root {
  --forest: #0b1d17;
  --forest-2: #102b21;
  --green: #194d3d;
  --leaf: #79e64b;
  --leaf-soft: #c8f7ad;
  --paper: #fbfcf8;
  --ink: #142821;
  --muted: #64736c;
  --line: #dce5df;
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .8rem 1rem; color: var(--forest); background: var(--leaf); border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 4px; }

.legal-header { color: white; background: var(--forest); }
.header-inner { width: min(1120px, calc(100% - 40px)); min-height: 82px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: white; text-decoration: none; font-family: "Avenir Next", Inter, sans-serif; font-size: 1.25rem; font-weight: 750; letter-spacing: -.05em; }
.brand > span:last-child > span { color: var(--leaf); }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(121,230,75,.25); border-radius: 12px; color: var(--leaf); background: rgba(121,230,75,.11); }
.header-back { color: #c6d6ce; text-decoration: none; font-size: .88rem; }
.header-back:hover { color: var(--leaf); }

.legal-hero { color: white; background: radial-gradient(circle at 78% 20%, rgba(121,230,75,.13), transparent 32%), var(--forest); }
.legal-hero-inner { width: min(920px, calc(100% - 40px)); margin: auto; padding: 90px 0 96px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: #bfd1c7; font-size: .7rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 23px; height: 1px; background: var(--leaf); }
.legal-hero h1 { max-width: 820px; margin: 0; font: 600 clamp(3rem, 7vw, 5.7rem)/.98 "Avenir Next", Inter, sans-serif; letter-spacing: -.065em; }
.legal-hero h1 em { color: var(--leaf); font-style: normal; }
.legal-lead { max-width: 720px; margin: 28px 0 0; color: #b9c8c0; font-size: 1.08rem; line-height: 1.75; }
.legal-updated { display: inline-flex; margin-top: 34px; padding: 9px 13px; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; color: #9eb2a8; font-size: .72rem; }

.legal-layout { width: min(1120px, calc(100% - 40px)); margin: auto; display: grid; grid-template-columns: 250px minmax(0, 760px); gap: 84px; padding: 82px 0 120px; }
.legal-nav { position: sticky; top: 24px; align-self: start; }
.legal-nav strong { display: block; margin-bottom: 16px; color: #87968e; font-size: .66rem; letter-spacing: .15em; text-transform: uppercase; }
.legal-nav a { display: block; padding: 9px 0; color: var(--muted); font-size: .78rem; line-height: 1.35; text-decoration: none; }
.legal-nav a:hover { color: var(--green); }
.legal-content { min-width: 0; }
.legal-intro { margin: 0 0 54px; padding: 24px 26px; border: 1px solid #cae6bd; border-radius: 18px; color: #2e533f; background: #eff9e9; font-size: .92rem; line-height: 1.7; }
.legal-section { padding: 0 0 48px; margin: 0 0 48px; border-bottom: 1px solid var(--line); scroll-margin-top: 28px; }
.legal-section:last-child { margin-bottom: 0; border: 0; }
.legal-section h2 { margin: 0 0 20px; font: 650 clamp(1.65rem, 3vw, 2.2rem)/1.16 "Avenir Next", Inter, sans-serif; letter-spacing: -.045em; }
.legal-section h3 { margin: 28px 0 10px; font: 700 1rem/1.4 "Avenir Next", Inter, sans-serif; }
.legal-section p, .legal-section li { color: #53665d; font-size: .94rem; line-height: 1.78; }
.legal-section p { margin: 0 0 16px; }
.legal-section ul { margin: 16px 0; padding-left: 22px; }
.legal-section li { padding-left: 6px; margin: 9px 0; }
.legal-section strong { color: var(--ink); }
.legal-section a { color: #176044; text-underline-offset: 3px; }
.data-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 22px 0; }
.data-card { padding: 22px; border: 1px solid var(--line); border-radius: 17px; background: white; }
.data-card h3 { margin: 0 0 9px; }
.data-card p { margin: 0; font-size: .84rem; }
.legal-callout { margin: 24px 0; padding: 22px 24px; border-left: 3px solid var(--leaf); border-radius: 0 14px 14px 0; background: #f0f4ef; }
.legal-callout p:last-child { margin-bottom: 0; }
.action-panel { padding: 30px; border-radius: 22px; color: white; background: var(--forest-2); }
.action-panel h2 { color: white; }
.action-panel p { color: #b3c4bb; }
.action-panel .button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; margin-top: 8px; padding: 0 20px; border-radius: 999px; color: #112b20; background: var(--leaf); font-weight: 750; text-decoration: none; }
.action-panel .button:hover { background: #8cef5e; }
.action-panel small { display: block; margin-top: 15px; color: #849b8f; line-height: 1.55; }

.legal-footer { padding: 48px 20px; color: #9aafa4; background: #081611; }
.footer-inner { width: min(1120px, 100%); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { color: #9aafa4; font-size: .76rem; text-decoration: none; }
.footer-links a:hover { color: var(--leaf); }
.footer-inner p { margin: 0; font-size: .7rem; }

@media (max-width: 820px) {
  .legal-layout { grid-template-columns: 1fr; gap: 42px; padding-top: 55px; }
  .legal-nav { position: static; columns: 2; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
  .legal-nav strong { column-span: all; }
  .data-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .header-inner { min-height: 72px; }
  .header-back { font-size: 0; }
  .header-back::after { content: "Inicio"; font-size: .82rem; }
  .legal-hero-inner { padding: 68px 0 74px; }
  .legal-hero h1 { font-size: clamp(2.75rem, 15vw, 4rem); }
  .legal-nav { columns: 1; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
