/*
 * TCC Web v1.15.0 · Términos y Condiciones
 * Scope: /terminos-y-condiciones/ only.
 */

.tcc-legal-page {
  --legal-ink: #111;
  --legal-muted: #606060;
  --legal-line: #e8e8e8;
  --legal-soft: #f6f6f6;
  --legal-red: var(--tcc-red, #e52521);
  background: #fff;
  color: var(--legal-ink);
}

.tcc-legal-page :where(h1,h2,h3,p,dl,dd,dt) { margin-top: 0; }
.tcc-legal-page :where(p,li) { color: #3f3f3f; }
.tcc-legal-page a:focus-visible { outline: 3px solid rgba(229,37,33,.28); outline-offset: 4px; }
.tcc-legal-kicker {
  margin: 0 0 16px;
  color: var(--legal-red) !important;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* Hero */
.tcc-legal-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--legal-line);
  background:
    radial-gradient(circle at 80% 18%, rgba(229,37,33,.08), transparent 24%),
    linear-gradient(180deg, #fff 0%, #fafafa 100%);
}
.tcc-legal-hero::after {
  content: "TCC";
  position: absolute;
  right: -35px;
  bottom: -92px;
  color: rgba(17,17,17,.025);
  font-size: clamp(220px, 28vw, 430px);
  line-height: .8;
  font-weight: 900;
  letter-spacing: -.09em;
  pointer-events: none;
}
.tcc-legal-hero-grid {
  position: relative;
  z-index: 1;
  min-height: 590px;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(330px, .78fr);
  align-items: center;
  gap: 72px;
  padding-top: 74px;
  padding-bottom: 74px;
}
.tcc-legal-hero-copy h1 {
  max-width: 760px;
  margin: 0 0 24px;
  font-size: clamp(56px, 6vw, 78px);
  line-height: .96;
  letter-spacing: -.055em;
  font-weight: 850;
}
.tcc-legal-hero-copy h1 span { color: var(--legal-red); }
.tcc-legal-lead {
  max-width: 720px;
  margin: 0 0 34px;
  color: #444 !important;
  font-size: 18px;
  line-height: 1.7;
}
.tcc-legal-meta {
  max-width: 735px;
  display: grid;
  grid-template-columns: .72fr 1.35fr 1fr;
  border: 1px solid #dedede;
  border-radius: 14px;
  background: rgba(255,255,255,.82);
  overflow: hidden;
}
.tcc-legal-meta span {
  min-height: 78px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 15px 20px;
  border-right: 1px solid #e2e2e2;
}
.tcc-legal-meta span:last-child { border-right: 0; }
.tcc-legal-meta small,
.tcc-legal-identity dt,
.tcc-legal-version-card small {
  color: #898989;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.tcc-legal-meta strong { font-size: 13px; line-height: 1.35; }

.tcc-legal-identity {
  position: relative;
  padding: 28px;
  border: 1px solid #dedede;
  border-radius: 20px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 22px 70px rgba(17,17,17,.08);
}
.tcc-legal-identity::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  width: 58px;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: var(--legal-red);
}
.tcc-legal-identity-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--legal-line);
}
.tcc-legal-identity-top span { color: #777; font-size: 10px; font-weight: 850; letter-spacing: .12em; }
.tcc-legal-identity-top b { color: var(--legal-red); font-size: 23px; letter-spacing: -.03em; }
.tcc-legal-identity > p { margin: 22px 0 21px; font-size: 14px; line-height: 1.65; }
.tcc-legal-identity dl { margin: 0; }
.tcc-legal-identity dl div { padding: 13px 0; border-top: 1px solid #eeeeee; }
.tcc-legal-identity dl div:first-child { border-top: 0; }
.tcc-legal-identity dd { margin: 4px 0 0; color: #222; font-size: 13px; font-weight: 700; line-height: 1.45; }
.tcc-legal-identity dd a:hover { color: var(--legal-red); }
.tcc-legal-identity-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 17px;
  color: var(--legal-red);
  font-size: 13px;
  font-weight: 800;
}
.tcc-legal-identity-link span { transition: transform .2s ease; }
.tcc-legal-identity-link:hover span { transform: translateX(4px); }

/* Summary */
.tcc-legal-summary { padding: 88px 0 94px; background: #fff; }
.tcc-legal-summary-head { max-width: 720px; margin-bottom: 38px; }
.tcc-legal-summary-head h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -.04em;
}
.tcc-legal-summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #dfdfdf; border-radius: 18px; overflow: hidden; }
.tcc-legal-summary-grid article { min-height: 220px; padding: 27px 24px 25px; border-right: 1px solid #e2e2e2; background: #fff; }
.tcc-legal-summary-grid article:last-child { border-right: 0; }
.tcc-legal-summary-grid span { display: block; margin-bottom: 28px; color: var(--legal-red); font-size: 12px; font-weight: 850; letter-spacing: .09em; }
.tcc-legal-summary-grid h3 { margin: 0 0 11px; font-size: 18px; line-height: 1.25; letter-spacing: -.02em; }
.tcc-legal-summary-grid p { margin: 0; color: #666 !important; font-size: 13px; line-height: 1.62; }

/* Main legal body */
.tcc-legal-body { padding: 84px 0 112px; border-top: 1px solid var(--legal-line); background: #fafafa; }
.tcc-legal-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 72px; align-items: start; }
.tcc-legal-toc { position: relative; }
.tcc-legal-toc-inner { position: sticky; top: 106px; }
.tcc-legal-toc-inner > p { margin: 0 0 15px; color: #999 !important; font-size: 10px; font-weight: 850; letter-spacing: .14em; }
.tcc-legal-toc nav { display: grid; border-top: 1px solid #ddd; }
.tcc-legal-toc nav a {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 8px;
  align-items: center;
  padding: 9px 5px 9px 0;
  border-bottom: 1px solid #e6e6e6;
  color: #555;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
  transition: color .18s ease, padding-left .18s ease;
}
.tcc-legal-toc nav a span { color: #aaa; font-size: 10px; font-weight: 800; }
.tcc-legal-toc nav a:hover { padding-left: 4px; color: var(--legal-red); }
.tcc-legal-toc-help { margin-top: 24px; padding: 20px; border-radius: 14px; background: #151515; color: #fff; }
.tcc-legal-toc-help > span { color: #ff6966; font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.tcc-legal-toc-help p { margin: 9px 0 14px; color: #cfcfcf !important; font-size: 11px; line-height: 1.55; }
.tcc-legal-toc-help a { color: #fff; font-size: 11px; font-weight: 800; }
.tcc-legal-toc-help a:hover { color: #ff6966; }

.tcc-legal-content { min-width: 0; }
.tcc-legal-notice {
  margin-bottom: 30px;
  padding: 24px 26px;
  border: 1px solid #dedede;
  border-left: 4px solid var(--legal-red);
  border-radius: 14px;
  background: #fff;
}
.tcc-legal-notice strong { display: block; margin-bottom: 5px; font-size: 14px; }
.tcc-legal-notice p { margin: 0; color: #636363 !important; font-size: 13px; line-height: 1.7; }

.tcc-legal-section {
  scroll-margin-top: 112px;
  margin-bottom: 18px;
  padding: 38px 42px 40px;
  border: 1px solid #e2e2e2;
  border-radius: 18px;
  background: #fff;
}
.tcc-legal-section > header {
  display: grid;
  grid-template-columns: 48px minmax(0,1fr);
  gap: 17px;
  align-items: start;
  margin-bottom: 27px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e9e9e9;
}
.tcc-legal-section > header > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 850;
}
.tcc-legal-section header small { display: block; margin: 2px 0 5px; color: var(--legal-red); font-size: 9px; font-weight: 850; letter-spacing: .13em; }
.tcc-legal-section h2 { margin: 0; font-size: clamp(25px, 3vw, 33px); line-height: 1.08; letter-spacing: -.035em; }
.tcc-legal-section > p { margin: 0 0 17px; font-size: 15px; line-height: 1.78; }
.tcc-legal-section > p:last-child { margin-bottom: 0; }
.tcc-legal-section ul { margin: 5px 0 22px; padding: 0; list-style: none; }
.tcc-legal-section li {
  position: relative;
  margin: 0;
  padding: 11px 0 11px 26px;
  border-bottom: 1px solid #eeeeee;
  font-size: 14px;
  line-height: 1.65;
}
.tcc-legal-section li:first-child { border-top: 1px solid #eeeeee; }
.tcc-legal-section li::before { content: ""; position: absolute; top: 20px; left: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--legal-red); }
.tcc-legal-section p > a:not(.tcc-legal-inline-link) { color: var(--legal-red); font-weight: 750; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.tcc-legal-callout { margin: 27px 0 2px; padding: 20px 22px; border-radius: 13px; background: #fff2f1; border: 1px solid #ffd7d4; }
.tcc-legal-callout strong { display: block; margin-bottom: 4px; color: #a91815; font-size: 13px; }
.tcc-legal-callout p { margin: 0; color: #5a3938 !important; font-size: 13px; line-height: 1.65; }
.tcc-legal-callout--dark { background: #151515; border-color: #151515; }
.tcc-legal-callout--dark strong { color: #ff6966; }
.tcc-legal-callout--dark p { color: #d6d6d6 !important; }

.tcc-legal-authority {
  margin-top: 27px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 20px 22px;
  border: 1px solid #dfdfdf;
  border-radius: 13px;
  background: #fafafa;
}
.tcc-legal-authority small { display: block; margin-bottom: 4px; color: #8b8b8b; font-size: 9px; font-weight: 850; letter-spacing: .11em; }
.tcc-legal-authority strong { font-size: 13px; }
.tcc-legal-authority a { flex: 0 0 auto; color: var(--legal-red); font-size: 12px; font-weight: 800; }
.tcc-legal-authority a:hover { text-decoration: underline; text-underline-offset: 3px; }

.tcc-legal-evidence { margin: 24px 0; padding: 22px; border-radius: 14px; background: #f5f5f5; }
.tcc-legal-evidence > strong { display: block; margin-bottom: 13px; font-size: 13px; }
.tcc-legal-evidence > div { display: flex; flex-wrap: wrap; gap: 8px; }
.tcc-legal-evidence span { padding: 7px 10px; border: 1px solid #ddd; border-radius: 999px; background: #fff; color: #555; font-size: 10px; font-weight: 750; }
.tcc-legal-inline-link { display: inline-flex; align-items: center; gap: 10px; color: var(--legal-red); font-weight: 800; }
.tcc-legal-inline-link span { transition: transform .2s ease; }
.tcc-legal-inline-link:hover span { transform: translateX(4px); }

.tcc-legal-version-card { display: grid; grid-template-columns: .8fr 1.2fr; gap: 1px; margin-top: 28px; border: 1px solid #dedede; border-radius: 14px; background: #dedede; overflow: hidden; }
.tcc-legal-version-card > div { padding: 21px 22px; background: #fafafa; }
.tcc-legal-version-card strong { display: block; margin: 6px 0 6px; font-size: 14px; }
.tcc-legal-version-card span { display: block; color: #666; font-size: 11px; line-height: 1.55; }

/* CTA */
.tcc-legal-cta { padding: 94px 0; background: #111; color: #fff; }
.tcc-legal-cta .tcc-legal-kicker { color: #ff6966 !important; }
.tcc-legal-cta-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 60px; align-items: end; }
.tcc-legal-cta h2 { max-width: 770px; margin: 0 0 16px; font-size: clamp(36px, 4.5vw, 54px); line-height: 1.03; letter-spacing: -.045em; }
.tcc-legal-cta p:not(.tcc-legal-kicker) { max-width: 720px; margin: 0; color: #bdbdbd !important; font-size: 15px; line-height: 1.7; }
.tcc-legal-cta-actions { display: flex; flex-direction: column; gap: 11px; min-width: 220px; }
.tcc-legal-cta .tcc-button--secondary { background: transparent; border-color: #555; color: #fff; }
.tcc-legal-cta .tcc-button--secondary:hover { border-color: #aaa; }

@media (max-width: 1050px) {
  .tcc-legal-hero-grid { grid-template-columns: minmax(0,1fr) 330px; gap: 42px; }
  .tcc-legal-hero-copy h1 { font-size: clamp(52px, 7vw, 70px); }
  .tcc-legal-summary-grid { grid-template-columns: repeat(2,1fr); }
  .tcc-legal-summary-grid article { min-height: 190px; border-bottom: 1px solid #e2e2e2; }
  .tcc-legal-summary-grid article:nth-child(2) { border-right: 0; }
  .tcc-legal-summary-grid article:nth-child(3), .tcc-legal-summary-grid article:nth-child(4) { border-bottom: 0; }
  .tcc-legal-layout { grid-template-columns: 235px minmax(0,1fr); gap: 40px; }
  .tcc-legal-section { padding: 34px 34px 36px; }
}

@media (max-width: 860px) {
  .tcc-legal-hero-grid { min-height: auto; grid-template-columns: 1fr; gap: 35px; padding-top: 64px; padding-bottom: 64px; }
  .tcc-legal-identity { max-width: 620px; }
  .tcc-legal-layout { grid-template-columns: 1fr; }
  .tcc-legal-toc-inner { position: static; }
  .tcc-legal-toc nav { grid-template-columns: repeat(2,1fr); gap: 0 18px; }
  .tcc-legal-toc-help { display: none; }
  .tcc-legal-cta-grid { grid-template-columns: 1fr; gap: 32px; align-items: start; }
  .tcc-legal-cta-actions { flex-direction: row; min-width: 0; flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .tcc-legal-page .tcc-container { width: min(calc(100% - 32px), var(--tcc-container)); }
  .tcc-legal-hero::after { display: none; }
  .tcc-legal-hero-grid { padding-top: 44px; padding-bottom: 46px; }
  .tcc-legal-kicker { margin-bottom: 13px; font-size: 10px; }
  .tcc-legal-hero-copy h1 { margin-bottom: 20px; font-size: clamp(44px, 14vw, 60px); }
  .tcc-legal-lead { margin-bottom: 27px; font-size: 16px; line-height: 1.65; }
  .tcc-legal-meta { grid-template-columns: 1fr 1.45fr; }
  .tcc-legal-meta span { min-height: 70px; padding: 13px 15px; }
  .tcc-legal-meta span:nth-child(2) { border-right: 0; }
  .tcc-legal-meta span:nth-child(3) { grid-column: 1 / -1; min-height: 60px; border-top: 1px solid #e2e2e2; border-right: 0; }
  .tcc-legal-identity { padding: 24px 22px; border-radius: 16px; }
  .tcc-legal-identity::before { left: 22px; }

  .tcc-legal-summary { padding: 68px 0 72px; }
  .tcc-legal-summary-head { margin-bottom: 29px; }
  .tcc-legal-summary-head h2 { font-size: 36px; }
  .tcc-legal-summary-grid { grid-template-columns: 1fr; border-radius: 15px; }
  .tcc-legal-summary-grid article { min-height: 0; border-right: 0; border-bottom: 1px solid #e2e2e2 !important; padding: 23px 21px; }
  .tcc-legal-summary-grid article:last-child { border-bottom: 0 !important; }
  .tcc-legal-summary-grid span { margin-bottom: 15px; }

  .tcc-legal-body { padding: 64px 0 76px; }
  .tcc-legal-layout { gap: 30px; }
  .tcc-legal-toc nav { grid-template-columns: 1fr; }
  .tcc-legal-toc nav a { padding-block: 10px; }
  .tcc-legal-notice { padding: 20px 20px; }
  .tcc-legal-section { margin-bottom: 14px; padding: 27px 21px 29px; border-radius: 15px; }
  .tcc-legal-section > header { grid-template-columns: 38px minmax(0,1fr); gap: 12px; margin-bottom: 22px; padding-bottom: 20px; }
  .tcc-legal-section > header > span { width: 36px; height: 36px; }
  .tcc-legal-section h2 { font-size: 27px; }
  .tcc-legal-section > p { font-size: 14px; line-height: 1.76; }
  .tcc-legal-section li { padding-left: 23px; font-size: 13px; }
  .tcc-legal-authority { align-items: flex-start; flex-direction: column; gap: 15px; padding: 18px; }
  .tcc-legal-version-card { grid-template-columns: 1fr; }
  .tcc-legal-cta { padding: 72px 0; }
  .tcc-legal-cta h2 { font-size: 38px; }
  .tcc-legal-cta-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .tcc-legal-cta-actions .tcc-button { width: 100%; }
}

@media print {
  .tcc-site-header,
  .tcc-site-footer,
  .tcc-legal-toc,
  .tcc-legal-cta,
  .tcc-legal-summary { display: none !important; }
  .tcc-legal-hero-grid { min-height: 0; display: block; padding: 20px 0 30px; }
  .tcc-legal-hero::after { display: none; }
  .tcc-legal-identity { box-shadow: none; margin-top: 20px; }
  .tcc-legal-body { padding: 20px 0; background: #fff; }
  .tcc-legal-layout { display: block; }
  .tcc-legal-section { break-inside: avoid; box-shadow: none; }
  .tcc-legal-section > header > span { color: #000; background: #fff; border: 1px solid #000; }
  a { text-decoration: none !important; }
}
