/* Páginas legales de la demo DeCa: comparten la base visual de styles.css. */
.legal-page { background: #f4f7f9; }
.legal-header { position: relative; z-index: 2; border-bottom: 1px solid rgb(255 255 255 / 10%); background: #061b2e; }
.legal-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 90px; }
.legal-header-nav { display: flex; align-items: center; gap: 28px; color: #d2e0ea; font-size: .875rem; font-weight: 600; }
.legal-header-nav a { transition: color 180ms ease, border-color 180ms ease, background 180ms ease; }
.legal-header-nav a:hover { color: #fff; }
.legal-header-cta { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 7px 14px; border: 1px solid rgb(255 255 255 / 24%); border-radius: 8px; }
.legal-header-cta:hover { border-color: var(--orange); background: rgb(255 84 22 / 12%); }
.legal-header-cta span { color: var(--orange); }

/* El encabezado aporta identidad visual sin competir con la lectura del texto legal. */
.legal-hero { position: relative; isolation: isolate; overflow: hidden; padding: 92px 0 100px; color: #fff; background: radial-gradient(circle at 74% 24%, #184766 0, transparent 34%), linear-gradient(120deg, #061b2e, #0b2e49 70%, #0a2740); }
.legal-hero::before { position: absolute; inset: 0; z-index: -1; content: ""; opacity: .32; background-image: linear-gradient(rgb(255 255 255 / 6%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 6%) 1px, transparent 1px); background-size: 88px 88px; mask-image: linear-gradient(90deg, transparent, #000 35%, #000); }
.legal-hero::after { position: absolute; top: -235px; right: -135px; z-index: -1; width: 680px; height: 680px; border: 1px solid rgb(255 255 255 / 11%); border-radius: 50%; content: ""; animation: legal-orbit 24s ease-in-out infinite alternate; }
.legal-hero-cookies { background: radial-gradient(circle at 76% 20%, #174864 0, transparent 34%), linear-gradient(120deg, #061b2e, #10334d 70%, #0a2841); }
.legal-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, 335px); align-items: center; gap: clamp(50px, 8vw, 120px); }
.legal-hero .eyebrow { margin-bottom: 23px; color: #d2e4ee; }
.legal-hero h1 { margin-bottom: 24px; font-size: clamp(3.1rem, 6vw, 5.3rem); }
.legal-hero-lead { max-width: 590px; margin-bottom: 23px; color: #c7d9e6; font-size: clamp(1rem, 1.4vw, 1.17rem); line-height: 1.7; }
.legal-revision { margin-bottom: 0; color: #9cb8cb; font-size: .8125rem; }
.legal-hero-card { position: relative; padding: 31px; border: 1px solid rgb(255 255 255 / 23%); border-radius: 20px; background: rgb(255 255 255 / 7%); box-shadow: 0 24px 50px rgb(0 12 27 / 19%); backdrop-filter: blur(12px); }
.legal-hero-card-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 33px; border: 1px solid rgb(255 125 70 / 38%); border-radius: 13px; color: #ff8654; background: rgb(255 84 22 / 11%); }
.legal-hero-card-icon svg { width: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.legal-hero-card > strong { display: block; margin-bottom: 10px; font-size: 1.4rem; letter-spacing: -.03em; line-height: 1.25; }
.legal-hero-card p { margin-bottom: 24px; color: #c6d8e4; font-size: .9375rem; line-height: 1.65; }
.legal-card-foot { display: block; padding-top: 15px; border-top: 1px solid rgb(255 255 255 / 16%); color: #a0bfd2; font-size: .75rem; }
.legal-cookie-zero { display: block; margin-bottom: 13px; color: #ff8956; font-size: 5.5rem; font-weight: 750; letter-spacing: -.09em; line-height: 1; }

/* Índice lateral y tarjetas de lectura, con anclas accesibles y foco visible. */
.legal-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); align-items: start; gap: 64px; width: min(calc(100% - 96px), 1120px); padding-top: 76px; padding-bottom: 100px; }
.legal-index { position: sticky; top: 30px; }
.legal-index > p { margin-bottom: 18px; color: #648095; font-size: .6875rem; font-weight: 750; letter-spacing: .12em; }
.legal-index nav { display: flex; flex-direction: column; gap: 3px; }
.legal-index nav a { padding: 10px 11px; border-left: 2px solid transparent; border-radius: 0 7px 7px 0; color: #4f687a; font-size: .8125rem; line-height: 1.35; transition: border-color 180ms ease, color 180ms ease, background 180ms ease; }
.legal-index nav a:hover { border-color: var(--orange); color: var(--ink); background: #fff; }
.legal-article { min-width: 0; }
.legal-alert { display: flex; align-items: start; gap: 17px; margin-bottom: 25px; padding: 23px 26px; border: 1px solid #f4d3b8; border-radius: 16px; background: #fff6ec; }
.legal-alert > span { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; color: #9a3c10; background: #ffe1c7; font-weight: 750; }
.legal-alert strong { display: block; margin-bottom: 4px; color: #633016; font-size: .94rem; }
.legal-alert p { margin-bottom: 0; color: #684b3b; font-size: .875rem; line-height: 1.65; }
.legal-card { margin-bottom: 18px; padding: 32px 38px; border: 1px solid #e0e8ee; border-radius: 18px; background: #fff; box-shadow: 0 14px 35px rgb(10 41 63 / 3%); scroll-margin-top: 30px; transition: border-color 180ms ease, box-shadow 180ms ease; }
.legal-card:hover { border-color: #cadce8; box-shadow: 0 17px 36px rgb(10 41 63 / 6%); }
.legal-section-number { display: block; margin-bottom: 13px; color: #bf4415; font-size: .6875rem; font-weight: 750; letter-spacing: .1em; }
.legal-card h2 { margin-bottom: 18px; font-size: clamp(1.5rem, 2.4vw, 1.95rem); letter-spacing: -.035em; }
.legal-card h3 { margin: 28px 0 10px; color: var(--ink); font-size: 1.08rem; letter-spacing: -.02em; }
.legal-card p { max-width: 74ch; margin-bottom: 14px; color: #455e71; font-size: .9375rem; line-height: 1.76; }
.legal-card p:last-child { margin-bottom: 0; }
.legal-card a, .legal-source a { color: #ad3910; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.legal-card a:hover, .legal-source a:hover { color: #752706; }
.legal-highlight { margin: 7px 0 18px; padding: 18px 21px; border-left: 3px solid var(--orange); border-radius: 0 11px 11px 0; background: #f1f6fa; }
.legal-highlight strong { color: var(--ink); font-size: .9375rem; }
.legal-highlight p { margin-top: 5px; margin-bottom: 0; }
.legal-data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 22px 0 0; }
.legal-data div { padding: 13px 16px; border: 1px solid #e3ebf0; border-radius: 10px; background: #f8fafb; }
.legal-data dt { margin-bottom: 3px; color: #637d8e; font-size: .75rem; }
.legal-data dd { margin: 0; color: #a44619; font-size: .875rem; font-weight: 650; }
.legal-data dd a { color: inherit; }
.legal-data-wide div:nth-child(3), .legal-data-wide div:nth-child(6) { grid-column: 1 / -1; }
/* Las listas largas de la política mantienen una lectura clara y una jerarquía uniforme. */
.legal-list { display: grid; gap: 9px; max-width: 74ch; margin: 12px 0 22px; padding-left: 21px; color: #455e71; font-size: .9375rem; line-height: 1.68; }
.legal-list li::marker { color: var(--orange); }
.legal-list strong { color: var(--ink); }
.legal-cookie-list { margin: 23px 0; overflow: hidden; border: 1px solid #e0e9ef; border-radius: 12px; }
.legal-cookie-list div { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 11px 16px; color: #344e62; font-size: .875rem; }
.legal-cookie-list div + div { border-top: 1px solid #e7edf1; }
.legal-cookie-list strong { color: #157050; font-size: .8125rem; }
.legal-next { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 30px; padding: 25px 30px; border-radius: 17px; color: #fff; background: linear-gradient(120deg, #092740, #143d58); }
.legal-next div > span { display: block; margin-bottom: 8px; color: #ff9669; font-size: .6875rem; font-weight: 750; letter-spacing: .1em; }
.legal-next strong { font-size: 1.3rem; letter-spacing: -.025em; }
.legal-next p { margin: 5px 0 0; color: #b4cbd9; font-size: .8125rem; }
.legal-next a { flex: 0 0 auto; padding: 9px 0; border-bottom: 1px solid #ff8550; color: #fff; font-size: .8125rem; font-weight: 650; transition: color 180ms ease; }
.legal-next a:hover { color: #ffae88; }
.legal-next a span { color: #ff9669; }
.legal-source { margin: 23px 2px 0; color: #667d8c; font-size: .75rem; line-height: 1.65; }
.legal-site-footer .footer-navigation a[aria-current="page"] { color: #fff; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 5px; }
@keyframes legal-orbit { to { transform: translate(-35px, 45px) scale(1.1); } }

@media (max-width: 960px) {
  .legal-hero { padding: 77px 0 83px; }
  .legal-hero-grid { grid-template-columns: minmax(0, 1fr) 275px; gap: 34px; }
  .legal-layout { grid-template-columns: 1fr; gap: 25px; width: calc(100% - 64px); }
  .legal-index { position: static; }
  .legal-index nav { flex-direction: row; flex-wrap: wrap; gap: 7px; }
  .legal-index nav a { border: 1px solid #dce7ed; border-radius: 7px; background: #fff; }
}
@media (max-width: 640px) {
  .legal-header-inner { min-height: 72px; gap: 12px; }
  .legal-header .brand-image-frame { width: 190px; }
  .legal-header-nav { gap: 10px; font-size: .75rem; }
  .legal-header-nav > a:first-child { display: none; }
  .legal-header-cta { min-height: 36px; padding: 6px 9px; }
  .legal-hero { padding: 60px 0 66px; }
  .legal-hero-grid { grid-template-columns: 1fr; gap: 37px; }
  .legal-hero h1 { font-size: clamp(2.7rem, 11vw, 3.8rem); }
  .legal-hero-card { padding: 24px; }
  .legal-hero-card-icon { margin-bottom: 22px; }
  .legal-layout { width: calc(100% - 40px); padding-top: 45px; padding-bottom: 65px; }
  .legal-index nav a { padding: 8px 10px; font-size: .75rem; }
  .legal-alert { padding: 18px; }
  .legal-card { padding: 26px 22px; }
  .legal-card p { font-size: .875rem; }
  .legal-data { grid-template-columns: 1fr; }
  .legal-data-wide div:nth-child(3), .legal-data-wide div:nth-child(6) { grid-column: auto; }
  .legal-next { align-items: flex-start; flex-direction: column; gap: 11px; padding: 23px; }
}
@media (max-width: 360px) {
  .legal-header .brand-image-frame { width: 170px; }
}
@media (prefers-reduced-motion: reduce) {
  .legal-hero::after { animation: none; }
}
