/* Estilos específicos del centro legal. Navegación y footer: styles.css. */
:root {
  --navy: #061a2d;
  --navy-2: #0a2540;
  --blue: #079ffd;
  --blue-soft: #eaf7ff;
  --ink: #0d2238;
  --body: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --paper: #f8fafc;
  --white: #fff;
  --head: "Plus Jakarta Sans",sans-serif;
  --text: "Inter",sans-serif;
  --container: min(1180px,calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 105px;
}

body {
  margin: 0;
  background: #fff;
  color: var(--body);
  font: 400 15px/1.72 var(--text);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.legal-container {
  width: var(--container);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -70px;
  left: 18px;
  z-index: 999;
  padding: 11px 16px;
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
}

.skip-link:focus {
  top: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white;
  font: 700 17px var(--head);
  letter-spacing: -.045em;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(7,159,253,.22));
}

.brand span span {
  color: var(--blue);
}

.legal-hero {
  position: relative;
  overflow: hidden;
  padding: 150px 0 78px;
  background: var(--navy);
  color: white;
}

.legal-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(68,123,196,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(68,123,196,.07) 1px,transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom,#000,transparent);
}

.legal-glow {
  position: absolute;
  width: 660px;
  height: 660px;
  right: -220px;
  top: -380px;
  border-radius: 50%;
  background: rgba(7,159,253,.16);
  filter: blur(70px);
}

.hero-inner {
  position: relative;
}

.legal-kicker {
  color: #59c2ff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
}

.legal-hero h1 {
  max-width: 800px;
  margin: 17px 0 18px;
  font: 700 clamp(42px,5vw,68px)/1.06 var(--head);
  letter-spacing: -.055em;
}

.legal-hero h1 span {
  color: #4dbdff;
}

.legal-hero p {
  max-width: 655px;
  margin: 0;
  color: #a5b6c6;
  font-size: 15px;
}

.document-tabs {
  display: inline-flex;
  gap: 5px;
  margin-top: 36px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: rgba(255,255,255,.06);
}

.document-tabs button {
  padding: 12px 18px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #a8b9c8;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: .25s;
}

.document-tabs button.active {
  background: var(--blue);
  color: white;
  box-shadow: 0 8px 20px rgba(7,159,253,.25);
}

.document-tabs button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.legal-document:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 8px;
  border-radius: 10px;
}

.document-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 37px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
}

.document-meta>span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #879cad;
  font-size: 10px;
}

.document-meta i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4bd398;
  box-shadow: 0 0 8px #4bd398;
}

.pdf-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  color: white;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: .25s;
}

.pdf-button:hover {
  border-color: var(--blue);
  background: rgba(7,159,253,.12);
}

.pdf-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0,790px);
  gap: 86px;
  align-items: start;
  padding: 82px 0 120px;
}

.sidebar-inner {
  position: sticky;
  top: 102px;
}

.sidebar-inner>span {
  display: block;
  margin: 0 0 16px 15px;
  color: #94a3b8;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
}

.table-of-contents {
  padding: 10px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

.table-of-contents a {
  position: relative;
  display: block;
  padding: 9px 16px 9px 20px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  transition: .22s;
}

.table-of-contents a:before {
  content: "";
  position: absolute;
  left: -1px;
  top: 7px;
  bottom: 7px;
  width: 2px;
  border-radius: 2px;
  background: transparent;
}

.table-of-contents a:hover {
  color: var(--navy);
}

.table-of-contents a.active {
  color: var(--blue);
  font-weight: 700;
}

.table-of-contents a.active:before {
  background: var(--blue);
  box-shadow: 0 0 8px rgba(7,159,253,.35);
}

.legal-help {
  margin-top: 18px;
  padding: 18px;
  border-radius: 10px;
  background: var(--navy);
  color: white;
}

.legal-help>span {
  font: 600 12px var(--head);
}

.legal-help p {
  margin: 7px 0 12px;
  color: #8fa3b5;
  font-size: 9px;
  line-height: 1.55;
}

.legal-help a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #65c6ff;
  font-size: 8px;
  font-weight: 600;
}

.legal-document[hidden] {
  display: none;
}

.document-title {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.document-title>span {
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
}

.document-title h2 {
  margin: 13px 0 16px;
  color: var(--ink);
  font: 700 clamp(34px,4vw,49px)/1.12 var(--head);
  letter-spacing: -.045em;
}

.document-title p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.tldr {
  display: grid;
  grid-template-columns: 37px 1fr;
  gap: 14px;
  margin: 34px 0 5px;
  padding: 22px;
  border: 1px solid #caeaff;
  border-radius: 11px;
  background: linear-gradient(135deg,#f3faff,#f8fbfd);
}

.info-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 9px;
  background: var(--blue);
  color: white;
  font: 700 15px var(--head);
  box-shadow: 0 7px 17px rgba(7,159,253,.22);
}

.tldr strong {
  color: var(--navy);
  font: 700 13px var(--head);
}

.tldr p {
  margin: 5px 0 0;
  color: #50657a;
  font-size: 12px;
  line-height: 1.65;
}

.legal-document>section {
  position: relative;
  padding: 55px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 100px;
}

.legal-document>section:last-child {
  border-bottom: 0;
}

.section-number {
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
}

.legal-document h3 {
  margin: 0 0 20px;
  color: var(--ink);
  font: 700 25px/1.3 var(--head);
  letter-spacing: -.025em;
}

.legal-document p {
  margin: 0 0 16px;
}

.legal-document strong {
  color: #1e3449;
}

.legal-points {
  display: grid;
  gap: 11px;
}

.legal-points>div {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

.legal-points strong {
  display: block;
  margin-bottom: 7px;
  font: 700 13px var(--head);
}

.legal-points p {
  margin: 0;
  font-size: 13px;
}

.legal-document ol {
  display: grid;
  gap: 9px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.legal-document ol li {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 13px;
}

.legal-document ol li span {
  color: var(--blue);
  font-size: 9px;
  font-weight: 700;
}

.notice {
  margin: 23px 0;
  padding: 19px 20px;
  border-left: 3px solid var(--blue);
  border-radius: 0 9px 9px 0;
  background: var(--paper);
}

.notice strong {
  font: 700 12px var(--head);
}

.notice p {
  margin: 5px 0 0;
  font-size: 12px;
}

.purpose-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.purpose-list li {
  display: grid;
  grid-template-columns: 175px 1fr;
  gap: 20px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}

.purpose-list li:last-child {
  border-bottom: 0;
}

.purpose-list strong {
  font-size: 12px;
}

.purpose-list span {
  color: var(--muted);
  font-size: 12px;
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 23px;
}

.contact-cards>* {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

.contact-cards>a {
  grid-column: 1/-1;
  transition: .2s;
}

.contact-cards>a:hover {
  border-color: var(--blue);
}

.contact-cards small,
.contact-cards strong {
  display: block;
}

.contact-cards small {
  margin-bottom: 5px;
  color: #94a3b8;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.contact-cards strong {
  font: 700 12px var(--head);
}

.contact-cards p {
  margin: 7px 0 0;
  font-size: 10px;
  line-height: 1.55;
}

@media(max-width:900px) {
  .legal-layout {
    grid-template-columns: 210px 1fr;
    gap: 45px;
  }
}

@media(max-width:700px) {
  :root {
    --container: min(calc(100% - 34px),1180px);
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .legal-hero {
    padding: 115px 0 60px;
  }

  .legal-hero h1 {
    font-size: 40px;
  }

  .document-tabs {
    display: grid;
  }

  .document-meta {
    align-items: flex-start;
    gap: 18px;
  }

  .legal-layout {
    display: block;
    padding: 55px 0 80px;
  }

  .legal-sidebar {
    margin-bottom: 42px;
  }

  .sidebar-inner {
    position: relative;
    top: auto;
  }

  .table-of-contents {
    display: flex;
    gap: 3px;
    overflow-x: auto;
    padding: 6px;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
  }

  .table-of-contents a {
    flex: 0 0 auto;
    padding: 9px 12px;
    border-radius: 6px;
    background: white;
  }

  .table-of-contents a:before {
    display: none;
  }

  .table-of-contents a.active {
    background: var(--blue-soft);
  }

  .legal-help {
    display: none;
  }

  .document-title h2 {
    font-size: 33px;
  }

  .legal-document>section {
    padding: 45px 0;
  }

  .purpose-list li {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .contact-cards>a {
    grid-column: auto;
  }
}

@media print {
  .legal-hero .legal-grid,
  .legal-hero .legal-glow,
  .document-tabs,
  .pdf-button,
  .legal-sidebar,
  .skip-link {
    display: none!important;
  }

  .legal-hero {
    padding: 30px 0;
    background: white;
    color: var(--ink);
  }

  .legal-hero h1 {
    font-size: 34px;
  }

  .legal-hero h1 span {
    color: var(--blue);
  }

  .legal-hero p {
    color: var(--body);
  }

  .document-meta {
    border-color: var(--line);
  }

  .document-meta>span {
    color: var(--muted);
  }

  .legal-layout {
    display: block;
    padding: 10px 0;
  }

  .legal-documents {
    max-width: none;
  }

  .legal-document>section {
    break-inside: avoid;
  }

  .tldr,
  .legal-points>div,
  .notice,
  .contact-cards>* {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *:before,
  *:after {
    transition-duration: .01ms!important;
  }
}

@media(min-width:701px) {
  .legal-sidebar {
    position: sticky;
    top: 102px;
    align-self: start;
  }

  .legal-sidebar .sidebar-inner {
    position: static;
    top: auto;
  }
}

@media(max-width:700px) {
  .legal-sidebar {
    position: relative;
    top: auto;
  }

  .legal-sidebar .sidebar-inner {
    position: static;
    top: auto;
  }
}
