/* =========================================================
   VARIABLES Y BASE
   ========================================================= */

:root {
  --navy-1000: #03111c;
  --navy-950: #061a28;
  --navy-900: #09283d;
  --navy-800: #103b55;
  --navy-700: #185675;
  --blue-500: #2c9dcc;
  --blue-300: #78d5ee;
  --red-600: #d7263d;
  --red-500: #ed3f55;
  --red-100: #fff0f2;
  --green-600: #1d9d60;
  --green-500: #35c879;
  --amber-600: #b77900;
  --amber-100: #fff8e5;
  --gray-950: #0e1921;
  --gray-900: #17242e;
  --gray-700: #52616c;
  --gray-500: #80909b;
  --gray-300: #cbd5dc;
  --gray-200: #dfe6eb;
  --gray-100: #f1f5f7;
  --gray-50: #f8fafb;
  --white: #ffffff;
  --shadow-large: 0 36px 90px rgba(3, 20, 31, 0.2);
  --shadow-medium: 0 22px 55px rgba(6, 31, 47, 0.1);
  --radius-large: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--gray-50);
  color: var(--gray-900);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

p,
li {
  text-wrap: pretty;
}

/* =========================================================
   ENCABEZADO
   ========================================================= */

.legal-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(37, 91, 119, 0.12);
  background: rgba(248, 251, 252, 0.9);
  backdrop-filter: blur(18px);
}

.legal-navbar {
  width: min(100%, 1540px);
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: 0 auto;
  padding: 1rem clamp(1.2rem, 5vw, 5rem);
}

.legal-brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  width: fit-content;
}

.legal-brand img,
.footer-brand img {
  width: 43px;
  height: 43px;
  object-fit: contain;
}

.legal-brand span,
.footer-brand span {
  font-size: 1.17rem;
  font-weight: 950;
  letter-spacing: 0.045em;
}

.legal-brand span {
  color: var(--navy-950);
}

.legal-header-actions {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.legal-status {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(53, 200, 121, 0.2);
  border-radius: 999px;
  background: rgba(53, 200, 121, 0.07);
  color: #147347;
  font-size: 0.7rem;
  font-weight: 850;
}

.legal-status > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow:
    0 0 0 5px rgba(53, 200, 121, 0.1),
    0 0 14px rgba(53, 200, 121, 0.42);
}

.legal-back-link {
  color: var(--navy-800);
  font-size: 0.78rem;
  font-weight: 850;
  transition: color 0.2s ease, transform 0.2s ease;
}

.legal-back-link:hover {
  color: var(--red-600);
  transform: translateX(-3px);
}

/* =========================================================
   HERO
   ========================================================= */

.legal-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding:
    clamp(5rem, 9vw, 9rem)
    clamp(1.2rem, 5vw, 5rem)
    clamp(4rem, 7vw, 7rem);
  background:
    radial-gradient(circle at 12% 16%, rgba(53, 164, 207, 0.2), transparent 28%),
    radial-gradient(circle at 88% 72%, rgba(215, 38, 61, 0.17), transparent 26%),
    linear-gradient(145deg, #041521 0%, #092c43 56%, #04141f 100%);
  color: var(--white);
}

.legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(121, 210, 238, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(121, 210, 238, 0.18) 1px, transparent 1px);
  background-size: 54px 54px;
}

.legal-hero::after {
  content: "";
  position: absolute;
  top: -260px;
  right: -220px;
  z-index: -1;
  width: 650px;
  height: 650px;
  border: 1px solid rgba(240, 78, 94, 0.14);
  border-radius: 50%;
  box-shadow:
    0 0 0 90px rgba(240, 78, 94, 0.025),
    0 0 0 180px rgba(240, 78, 94, 0.018);
}

.legal-hero-grid {
  width: min(100%, 1440px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.58fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
  margin: 0 auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.7rem;
  color: var(--blue-300);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 38px;
  height: 3px;
  border-radius: 999px;
  background: var(--red-500);
}

.legal-hero h1 {
  max-width: 15ch;
  margin: 0;
  color: var(--white);
  font-size: clamp(3rem, 5.5vw, 6.1rem);
  font-weight: 950;
  letter-spacing: -0.065em;
  line-height: 0.98;
  text-wrap: balance;
}

.legal-hero h1 strong {
  display: block;
  margin-top: 0.16em;
  color: var(--blue-300);
  font-weight: inherit;
}

.legal-hero-lead {
  max-width: 760px;
  margin: 2rem 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  line-height: 1.75;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.4rem;
}

.legal-meta > span {
  min-width: 145px;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(122, 211, 239, 0.16);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
}

.legal-meta small,
.legal-meta strong {
  display: block;
}

.legal-meta small {
  color: rgba(255, 255, 255, 0.34);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.legal-meta strong {
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.75rem;
}

.legal-identity-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.8rem, 3vw, 2.7rem);
  border: 1px solid rgba(125, 202, 230, 0.23);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(215, 38, 61, 0.13), transparent 35%),
    rgba(3, 22, 35, 0.86);
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.35),
    inset 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
}

.legal-identity-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--red-500), rgba(215, 38, 61, 0.08));
}

.identity-kicker {
  display: block;
  margin-bottom: 1.3rem;
  color: rgba(255, 255, 255, 0.4);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.61rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.legal-identity-card h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.legal-identity-card dl {
  margin: 1.7rem 0 0;
}

.legal-identity-card dl > div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 1rem;
  padding: 0.8rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-identity-card dt {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.67rem;
  font-weight: 800;
}

.legal-identity-card dd {
  min-width: 0;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.72rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.legal-identity-card dd a {
  color: var(--blue-300);
}

.legal-identity-card > p {
  margin: 1.3rem 0 0;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--red-500);
  border-radius: 0 10px 10px 0;
  background: rgba(215, 38, 61, 0.08);
  color: rgba(255, 255, 255, 0.47);
  font-size: 0.67rem;
  line-height: 1.55;
}

/* =========================================================
   TRANSICIÓN LEGAL
   ========================================================= */

.legal-transition {
  width: min(calc(100% - 2.4rem), 1440px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: center;
  margin: clamp(2rem, 4vw, 3.5rem) auto 0;
  padding: 1.25rem 1.4rem;
  border: 1px solid rgba(183, 121, 0, 0.2);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 248, 229, 0.98), rgba(255, 255, 255, 0.98));
  box-shadow: var(--shadow-medium);
}

.transition-icon {
  width: 43px;
  height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(183, 121, 0, 0.2);
  border-radius: 12px;
  background: rgba(183, 121, 0, 0.07);
  color: var(--amber-600);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.65rem;
  font-weight: 900;
}

.legal-transition strong {
  display: block;
  color: var(--gray-950);
  font-size: 0.9rem;
}

.legal-transition p {
  margin: 0.3rem 0 0;
  color: var(--gray-700);
  font-size: 0.75rem;
  line-height: 1.55;
}

.legal-transition > a {
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(183, 121, 0, 0.2);
  border-radius: 10px;
  color: var(--amber-600);
  font-size: 0.68rem;
  font-weight: 850;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.legal-transition > a:hover {
  background: var(--amber-100);
  transform: translateY(-2px);
}

/* =========================================================
   LAYOUT PRINCIPAL
   ========================================================= */

.legal-layout {
  width: min(calc(100% - 2.4rem), 1440px);
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
  margin: clamp(2.5rem, 5vw, 5rem) auto clamp(5rem, 9vw, 9rem);
}

.legal-index {
  position: sticky;
  top: 102px;
  padding: 1.4rem;
  border: 1px solid rgba(33, 85, 110, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 45px rgba(5, 33, 49, 0.07);
  backdrop-filter: blur(14px);
}

.legal-index > p {
  margin: 0 0 1rem;
  color: var(--gray-500);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.legal-index nav {
  display: grid;
  gap: 0.16rem;
}

.legal-index a {
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
  padding: 0.57rem 0.55rem;
  border-radius: 9px;
  color: var(--gray-700);
  font-size: 0.69rem;
  font-weight: 750;
  line-height: 1.3;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.legal-index a span {
  color: var(--blue-500);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.56rem;
  font-weight: 900;
}

.legal-index a:hover {
  color: var(--navy-900);
  background: rgba(44, 157, 204, 0.06);
  transform: translateX(3px);
}

.legal-document {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(35, 88, 113, 0.12);
  border-radius: var(--radius-large);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-medium);
}

.legal-section {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: clamp(2.7rem, 5vw, 5rem) clamp(1.4rem, 5vw, 5rem);
}

.legal-section + .legal-section {
  border-top: 1px solid var(--gray-200);
}

.section-number {
  width: 55px;
  height: 55px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(35, 112, 149, 0.17);
  border-radius: 15px;
  background: rgba(44, 157, 204, 0.055);
  color: var(--navy-700);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 900;
}

.section-content {
  min-width: 0;
}

.section-label {
  margin: 0 0 0.75rem;
  color: var(--red-600);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.section-content h2 {
  max-width: 21ch;
  margin: 0 0 1.4rem;
  color: var(--navy-950);
  font-size: clamp(2rem, 3.2vw, 3.35rem);
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 1.04;
  text-wrap: balance;
}

.section-content h3 {
  margin: 2rem 0 0.8rem;
  color: var(--navy-900);
  font-size: 1.05rem;
  font-weight: 900;
}

.section-content > p,
.section-content > ul {
  max-width: 84ch;
}

.section-content > p {
  margin: 0 0 1.1rem;
  color: var(--gray-700);
  font-size: 0.94rem;
  line-height: 1.78;
}

.section-content a {
  color: var(--navy-700);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: rgba(24, 86, 117, 0.25);
  text-underline-offset: 0.2em;
}

/* =========================================================
   COMPONENTES LEGALES
   ========================================================= */

.legal-callout {
  max-width: 900px;
  margin-top: 1.6rem;
  padding: 1.15rem 1.25rem;
  border-left: 4px solid var(--blue-500);
  border-radius: 0 13px 13px 0;
  background: rgba(44, 157, 204, 0.055);
}

.legal-callout-safe {
  border-left-color: var(--green-500);
  background: rgba(53, 200, 121, 0.055);
}

.legal-callout strong {
  display: block;
  color: var(--navy-900);
  font-size: 0.82rem;
}

.legal-callout p {
  margin: 0.4rem 0 0;
  color: var(--gray-700);
  font-size: 0.75rem;
  line-height: 1.6;
}

.role-grid,
.commitment-grid,
.security-grid,
.rights-grid,
.retention-grid {
  display: grid;
  gap: 1rem;
  margin: 1.7rem 0 1.5rem;
}

.role-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.role-grid article,
.commitment-grid article,
.security-grid article,
.rights-grid article,
.retention-grid article {
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid var(--gray-200);
  border-radius: 15px;
  background: var(--gray-50);
}

.role-grid article > span,
.security-grid article > span,
.rights-grid article > span {
  width: 35px;
  height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  border: 1px solid rgba(44, 157, 204, 0.18);
  border-radius: 9px;
  color: var(--navy-700);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.6rem;
  font-weight: 900;
}

.role-grid h3 {
  margin: 0;
  color: var(--navy-900);
  font-size: 0.88rem;
}

.role-grid p,
.commitment-grid p,
.security-grid p,
.rights-grid p,
.retention-grid p {
  margin: 0.45rem 0 0;
  color: var(--gray-700);
  font-size: 0.73rem;
  line-height: 1.6;
}

.data-table-wrap {
  overflow-x: auto;
  margin: 1.6rem 0;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

.data-table th,
.data-table td {
  padding: 1rem 1.1rem;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.data-table td {
  border-top: 1px solid var(--gray-200);
  color: var(--gray-700);
  font-size: 0.73rem;
  line-height: 1.6;
}

.data-table td:first-child {
  color: var(--navy-900);
  font-weight: 850;
}

.legal-list {
  display: grid;
  gap: 0.68rem;
  margin: 1.4rem 0;
  padding: 0;
  list-style: none;
}

.legal-list li {
  position: relative;
  padding-left: 1.45rem;
  color: var(--gray-700);
  font-size: 0.9rem;
  line-height: 1.65;
}

.legal-list li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-500);
  box-shadow: 0 0 0 5px rgba(44, 157, 204, 0.08);
}

.legal-list-prohibited li::before {
  background: var(--red-500);
  box-shadow: 0 0 0 5px rgba(215, 38, 61, 0.07);
}

.commitment-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.commitment-grid article {
  border-color: rgba(53, 200, 121, 0.18);
  background: rgba(53, 200, 121, 0.045);
}

.commitment-grid strong {
  color: #117044;
  font-size: 0.8rem;
}

.sensitive-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.7rem 0;
}

.sensitive-panel > div {
  padding: 1.35rem;
  border: 1px solid rgba(215, 38, 61, 0.16);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(215, 38, 61, 0.055), rgba(255, 255, 255, 0));
}

.sensitive-panel span,
.retention-grid span {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--red-600);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.57rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.sensitive-panel strong,
.retention-grid strong {
  display: block;
  color: var(--navy-900);
  font-size: 0.87rem;
  line-height: 1.4;
}

.sensitive-panel p {
  margin: 0.55rem 0 0;
  color: var(--gray-700);
  font-size: 0.73rem;
  line-height: 1.62;
}

.location-rule {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.2rem;
  align-items: center;
  margin: 1.7rem 0;
  padding: 1.35rem;
  border: 1px solid rgba(44, 157, 204, 0.16);
  border-radius: 17px;
  background: rgba(44, 157, 204, 0.045);
}

.location-signal {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(44, 157, 204, 0.18);
  border-radius: 19px;
  background: rgba(44, 157, 204, 0.06);
}

.location-signal > span {
  width: 18px;
  height: 18px;
  border: 4px solid var(--white);
  border-radius: 50%;
  background: var(--red-500);
  box-shadow:
    0 0 0 10px rgba(215, 38, 61, 0.11),
    0 0 25px rgba(215, 38, 61, 0.35);
}

.location-rule strong {
  color: var(--navy-900);
  font-size: 0.9rem;
}

.location-rule p {
  margin: 0.45rem 0 0;
  color: var(--gray-700);
  font-size: 0.76rem;
  line-height: 1.62;
}

.retention-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.retention-grid article {
  background: var(--white);
}

.retention-grid span {
  color: var(--blue-500);
}

.security-grid,
.rights-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.security-grid strong,
.rights-grid strong {
  display: block;
  color: var(--navy-900);
  font-size: 0.8rem;
}

.incident-box,
.critical-warning,
.legal-review-note {
  margin-top: 1.6rem;
  padding: 1.25rem 1.3rem;
  border-radius: 15px;
}

.incident-box {
  border: 1px solid rgba(215, 38, 61, 0.17);
  background: var(--red-100);
}

.incident-box strong,
.critical-warning strong,
.legal-review-note strong {
  display: block;
  color: var(--navy-900);
  font-size: 0.84rem;
}

.incident-box p,
.critical-warning p,
.legal-review-note p {
  margin: 0.4rem 0 0;
  color: var(--gray-700);
  font-size: 0.74rem;
  line-height: 1.62;
}

.scope-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.7rem 0;
}

.scope-comparison article {
  padding: 1.35rem;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
}

.scope-comparison article:first-child {
  border-color: rgba(53, 200, 121, 0.18);
  background: rgba(53, 200, 121, 0.045);
}

.scope-comparison article:last-child {
  border-color: rgba(215, 38, 61, 0.16);
  background: rgba(215, 38, 61, 0.04);
}

.scope-comparison > article > span {
  display: block;
  margin-bottom: 0.9rem;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.59rem;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.scope-comparison article:first-child > span {
  color: var(--green-600);
}

.scope-comparison article:last-child > span {
  color: var(--red-600);
}

.scope-comparison ul {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding-left: 1.1rem;
}

.scope-comparison li {
  color: var(--gray-700);
  font-size: 0.75rem;
  line-height: 1.55;
}

.critical-warning {
  border: 1px solid rgba(183, 121, 0, 0.2);
  background: var(--amber-100);
}

.contact-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.6rem 0;
}

.contact-panel > div {
  padding: 1.3rem;
  border: 1px solid rgba(44, 157, 204, 0.16);
  border-radius: 15px;
  background: rgba(44, 157, 204, 0.045);
}

.contact-panel span,
.contact-panel strong,
.contact-panel a {
  display: block;
}

.contact-panel span {
  color: var(--gray-500);
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.contact-panel strong {
  margin-top: 0.45rem;
  color: var(--navy-900);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.contact-panel a {
  width: fit-content;
  margin-top: 0.7rem;
  color: var(--red-600);
  font-size: 0.7rem;
  font-weight: 850;
}

.law-links {
  display: grid;
  gap: 0.75rem;
  margin: 1.6rem 0;
}

.law-links a {
  display: grid;
  grid-template-columns: minmax(130px, 0.34fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border: 1px solid var(--gray-200);
  border-radius: 13px;
  background: var(--gray-50);
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.law-links a:hover {
  border-color: rgba(44, 157, 204, 0.3);
  background: rgba(44, 157, 204, 0.035);
  transform: translateX(3px);
}

.law-links span {
  color: var(--blue-500);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.63rem;
  font-weight: 900;
}

.law-links strong {
  color: var(--navy-900);
  font-size: 0.76rem;
  line-height: 1.5;
}

.legal-review-note {
  border: 1px solid rgba(215, 38, 61, 0.17);
  background: linear-gradient(135deg, rgba(215, 38, 61, 0.06), rgba(255, 255, 255, 0));
}

/* =========================================================
   FOOTER
   ========================================================= */

.legal-footer {
  padding:
    clamp(3.5rem, 6vw, 5.5rem)
    clamp(1.2rem, 5vw, 5rem)
    1.5rem;
  border-top: 1px solid rgba(125, 194, 223, 0.12);
  background: var(--navy-1000);
  color: var(--white);
}

.legal-footer-main {
  width: min(100%, 1440px);
  display: grid;
  grid-template-columns: minmax(170px, 0.4fr) minmax(260px, 0.8fr) minmax(300px, 0.8fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  margin: 0 auto;
  padding-bottom: clamp(2.5rem, 4vw, 4rem);
}

.footer-brand span {
  color: var(--white);
}

.legal-footer-main > p {
  max-width: 430px;
  margin: 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.8rem;
  line-height: 1.7;
}

.legal-footer-main nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 1.5rem;
}

.legal-footer-main nav a {
  width: fit-content;
  color: rgba(255, 255, 255, 0.63);
  font-size: 0.75rem;
  font-weight: 750;
  transition: color 0.18s ease, transform 0.18s ease;
}

.legal-footer-main nav a:hover {
  color: var(--white);
  transform: translateX(3px);
}

.legal-footer-bottom {
  width: min(100%, 1440px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: 0 auto;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.legal-footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.66rem;
  line-height: 1.55;
}

.legal-footer-bottom p:last-child {
  max-width: 620px;
  text-align: right;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1180px) {
  .legal-hero-grid {
    grid-template-columns: 1fr;
  }

  .legal-hero h1 {
    max-width: 17ch;
  }

  .legal-identity-card {
    width: min(100%, 760px);
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-index {
    position: relative;
    top: auto;
  }

  .legal-index nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .role-grid,
  .security-grid,
  .rights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .legal-transition {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .legal-transition > a {
    grid-column: 2;
    width: fit-content;
  }

  .commitment-grid {
    grid-template-columns: 1fr;
  }

  .legal-footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .legal-footer-main nav {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .legal-status {
    display: none;
  }

  .legal-hero {
    padding: 4.5rem 1.1rem 4rem;
  }

  .legal-hero h1 {
    font-size: clamp(2.7rem, 13vw, 4.2rem);
  }

  .legal-meta {
    display: grid;
    grid-template-columns: 1fr;
  }

  .legal-transition,
  .legal-layout {
    width: min(calc(100% - 1.4rem), 1440px);
  }

  .legal-index nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-section {
    grid-template-columns: 1fr;
    padding: 2.8rem 1.25rem;
  }

  .section-number {
    width: 46px;
    height: 46px;
  }

  .section-content h2 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .role-grid,
  .sensitive-panel,
  .retention-grid,
  .security-grid,
  .rights-grid,
  .scope-comparison,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .location-rule {
    grid-template-columns: 1fr;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table thead {
    display: none;
  }

  .data-table tr + tr {
    border-top: 1px solid var(--gray-200);
  }

  .data-table td {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 1rem;
    border-top: 0;
  }

  .data-table td::before {
    content: attr(data-label);
    color: var(--navy-900);
    font-size: 0.67rem;
    font-weight: 900;
  }

  .law-links a {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .legal-footer-main {
    grid-template-columns: 1fr;
  }

  .legal-footer-main nav {
    grid-column: auto;
  }

  .legal-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }

  .legal-footer-bottom p:last-child {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .legal-navbar {
    min-height: 68px;
    padding-right: 0.9rem;
    padding-left: 0.9rem;
  }

  .legal-brand img {
    width: 37px;
    height: 37px;
  }

  .legal-brand span {
    font-size: 1rem;
  }

  .legal-back-link {
    font-size: 0.7rem;
  }

  .legal-transition {
    grid-template-columns: 1fr;
  }

  .legal-transition > a {
    grid-column: auto;
  }

  .legal-index nav {
    grid-template-columns: 1fr;
  }

  .data-table td {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .legal-footer-main nav {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   IMPRESIÓN
   ========================================================= */

@media print {
  .legal-header,
  .legal-index,
  .legal-transition > a,
  .legal-footer {
    display: none;
  }

  body {
    background: var(--white);
  }

  .legal-hero {
    padding: 2rem;
    background: var(--white);
    color: var(--gray-900);
  }

  .legal-hero::before,
  .legal-hero::after {
    display: none;
  }

  .legal-hero h1,
  .legal-hero h1 strong,
  .legal-hero-lead,
  .legal-meta strong,
  .legal-identity-card h2,
  .legal-identity-card dd {
    color: var(--gray-900);
  }

  .legal-identity-card,
  .legal-meta > span {
    border-color: var(--gray-300);
    background: var(--white);
    box-shadow: none;
  }

  .legal-layout {
    width: 100%;
    display: block;
    margin: 0;
  }

  .legal-document {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .legal-section {
    break-inside: avoid;
  }

  a {
    text-decoration: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
