html.es-legal-page {
  min-height: 100%;
  background: var(--cd-bg);
}

html.es-legal-page body {
  min-height: 100%;
  margin: 0;
  background: var(--cd-bg-gradient, var(--cd-bg));
  color: var(--cd-text);
  font-family: var(--es-font-sans);
  line-height: 1.65;
}

html.es-legal-page * {
  box-sizing: border-box;
}

html.es-legal-page .wrap {
  width: min(100% - 32px, 1040px);
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 56px) 0 72px;
}

html.es-legal-page .nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  padding: 8px;
  border: 1px solid var(--cd-border-soft);
  border-radius: 999px;
  background: color-mix(in srgb, var(--cd-surface) 82%, transparent);
  box-shadow: 0 16px 36px var(--cd-shadow-soft);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

html.es-legal-page .nav a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 14px;
  color: var(--cd-text-muted);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

html.es-legal-page .nav a:hover,
html.es-legal-page .nav a:focus-visible {
  color: var(--cd-accent-text);
  background: var(--cd-accent-soft);
  outline: none;
}

html.es-legal-page .card {
  overflow: hidden;
  border: 1px solid var(--cd-border);
  border-radius: 28px;
  background: color-mix(in srgb, var(--cd-surface) 94%, transparent);
  box-shadow: 0 24px 70px var(--cd-shadow);
  padding: clamp(24px, 4vw, 42px);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

html.es-legal-page .eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 10px;
  border: 1px solid var(--cd-accent-border);
  border-radius: 999px;
  background: var(--cd-accent-soft);
  padding: 0 11px;
  color: var(--cd-accent-text);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

html.es-legal-page h1,
html.es-legal-page h2 {
  color: var(--cd-text-strong);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

html.es-legal-page h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5vw, 3.6rem);
}

html.es-legal-page h2 {
  margin: 2.2rem 0 0.7rem;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

html.es-legal-page p,
html.es-legal-page li {
  color: var(--cd-text-muted);
}

html.es-legal-page p {
  margin: 0 0 1rem;
}

html.es-legal-page ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

html.es-legal-page li + li {
  margin-top: 0.45rem;
}

html.es-legal-page a {
  color: var(--cd-accent-text);
  font-weight: 800;
  text-decoration: none;
}

html.es-legal-page a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

html.es-legal-page a:focus-visible,
html.es-legal-page button:focus-visible,
html.es-legal-page input:focus,
html.es-legal-page textarea:focus {
  outline: none;
  box-shadow: 0 0 0 4px var(--cd-accent-border);
  border-color: var(--cd-accent-600) !important;
}

html.es-legal-page .note {
  margin: 1.25rem 0;
  border: 1px solid var(--cd-accent-border);
  border-left: 5px solid var(--cd-accent-600);
  border-radius: 18px;
  background: var(--cd-accent-soft);
  padding: 14px 16px;
  color: var(--cd-text-muted);
}

html.es-legal-page .lead {
  max-width: 48rem;
  font-size: 1.05rem;
}

html.es-legal-page .support-form {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
  border-top: 1px solid var(--cd-border-soft);
  padding-top: 1rem;
}

html.es-legal-page .support-form label {
  display: grid;
  gap: 6px;
  color: var(--cd-text-strong);
  font-weight: 800;
}

html.es-legal-page .support-form span {
  color: var(--cd-text-strong);
  font-size: 0.9rem;
}

html.es-legal-page .support-form input,
html.es-legal-page .support-form textarea {
  width: 100%;
  border: 1px solid var(--cd-border);
  border-radius: 16px;
  background: var(--cd-surface);
  color: var(--cd-text);
  padding: 0.8rem 0.9rem;
  font: inherit;
}

html.es-legal-page .support-form input::placeholder,
html.es-legal-page .support-form textarea::placeholder {
  color: color-mix(in srgb, var(--cd-text-muted) 72%, transparent);
}

html.es-legal-page .support-form textarea {
  min-height: 126px;
  resize: vertical;
}

html.es-legal-page .contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

html.es-legal-page .button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--cd-accent-600);
  border-radius: 999px;
  background: var(--cd-accent-gradient);
  padding: 0 16px;
  color: #fff;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

html.es-legal-page .button:hover {
  filter: brightness(0.98);
  text-decoration: none;
}

html.es-legal-page .button.secondary {
  background: transparent;
  color: var(--cd-accent-text);
}

html.es-legal-page .button.secondary:hover {
  background: var(--cd-accent-soft);
}

html.es-legal-page .support-status {
  min-height: 1.35rem;
  margin: 0;
  color: var(--cd-text-muted);
  font-size: 0.9rem;
  font-weight: 800;
}

html.es-legal-page .support-status.success {
  color: #047857;
}

html.es-legal-page .support-status.error {
  color: #b91c1c;
}

html.es-legal-page[data-customer-effective-theme="night"] .support-status.success {
  color: #6ee7b7;
}

html.es-legal-page[data-customer-effective-theme="night"] .support-status.error {
  color: #fda4af;
}

@media (max-width: 640px) {
  html.es-legal-page .wrap {
    width: min(100% - 24px, 1040px);
    padding-top: 18px;
  }

  html.es-legal-page .nav {
    border-radius: 22px;
  }

  html.es-legal-page .nav a {
    flex: 1 1 calc(50% - 8px);
  }

  html.es-legal-page .card {
    border-radius: 22px;
    padding: 22px;
  }

  html.es-legal-page .contact-actions .button {
    width: 100%;
  }
}

/* Polished public/legal shell. Shared by Terms, Privacy, and Support. */
html.es-legal-page body {
  background:
    radial-gradient(780px 360px at 12% -8%, rgba(var(--cd-accent-rgb, 15, 118, 110), 0.12), transparent 66%),
    radial-gradient(720px 420px at 92% 2%, rgba(var(--cd-accent-rgb, 15, 118, 110), 0.08), transparent 64%),
    var(--cd-bg-gradient, var(--cd-bg)) !important;
}

html.es-legal-page .wrap {
  width: min(100% - 36px, 1120px);
  max-width: 1120px;
  padding: clamp(22px, 4vw, 48px) 0 80px;
}

html.es-legal-page .nav {
  position: sticky;
  top: 14px;
  z-index: 10;
  width: fit-content;
  max-width: 100%;
  margin-bottom: clamp(22px, 4vw, 34px);
  background: color-mix(in srgb, var(--cd-surface) 80%, transparent);
}

html.es-legal-page .legal-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  margin-bottom: 22px;
  border: 1px solid var(--cd-border-soft);
  border-radius: 32px;
  background:
    radial-gradient(520px 220px at 82% 6%, rgba(var(--cd-accent-rgb, 15, 118, 110), 0.12), transparent 70%),
    color-mix(in srgb, var(--cd-surface) 78%, transparent);
  padding: clamp(26px, 5vw, 46px);
  box-shadow: 0 24px 70px var(--cd-shadow-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

html.es-legal-page .legal-hero-compact {
  max-width: 920px;
}

html.es-legal-page .legal-hero h1 {
  margin-bottom: 12px;
  font-size: clamp(2.3rem, 7vw, 4.5rem);
  letter-spacing: -0.05em;
}

html.es-legal-page .legal-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--cd-text-muted);
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  line-height: 1.75;
}

html.es-legal-page .legal-doc-card {
  max-width: 920px;
}

html.es-legal-page .legal-doc-card h2 {
  padding-top: 1.15rem;
  border-top: 1px solid var(--cd-border-soft);
}

html.es-legal-page .legal-doc-card h2:first-child {
  padding-top: 0;
  border-top: 0;
}

html.es-legal-page .support-page {
  max-width: 1180px;
}

html.es-legal-page .support-hero {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  align-items: stretch;
}

html.es-legal-page .support-hero-card,
html.es-legal-page .support-side-card {
  border: 1px solid var(--cd-border);
  border-radius: 24px;
  background: color-mix(in srgb, var(--cd-surface) 94%, transparent);
  box-shadow: 0 18px 52px var(--cd-shadow-soft);
}

html.es-legal-page .support-hero-card {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 22px;
}

html.es-legal-page .support-card-label {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--cd-accent-border);
  border-radius: 999px;
  background: var(--cd-accent-soft);
  padding: 0 10px;
  color: var(--cd-accent-text);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html.es-legal-page .support-inline-list,
html.es-legal-page .support-check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

html.es-legal-page .support-inline-list li,
html.es-legal-page .support-check-list li {
  position: relative;
  margin: 0;
  padding-left: 26px;
  color: var(--cd-text-muted);
}

html.es-legal-page .support-inline-list li::before,
html.es-legal-page .support-check-list li::before {
  content: "";
  position: absolute;
  top: 0.48em;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--cd-accent-gradient);
  box-shadow: 0 0 0 4px var(--cd-accent-soft);
}

html.es-legal-page .support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 22px;
  align-items: start;
}

html.es-legal-page .support-form-card {
  min-width: 0;
}

html.es-legal-page .support-section-head {
  display: grid;
  gap: 9px;
  margin-bottom: 18px;
}

html.es-legal-page .support-section-head h2,
html.es-legal-page .support-side-card h2 {
  margin: 0;
  border: 0;
  padding: 0;
}

html.es-legal-page .support-section-head p,
html.es-legal-page .support-side-card p {
  margin: 0;
}

html.es-legal-page .support-form {
  gap: 1rem;
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

html.es-legal-page .support-help {
  margin: 0;
  border: 1px solid var(--cd-accent-border);
  border-radius: 18px;
  background: var(--cd-accent-soft);
  padding: 12px 14px;
  color: var(--cd-text-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

html.es-legal-page .support-field {
  display: grid;
  gap: 7px;
  margin: 0;
}

html.es-legal-page .support-field span {
  color: var(--cd-text-strong);
  font-size: 0.94rem;
  font-weight: 900;
}

html.es-legal-page .support-field small {
  color: var(--cd-text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

html.es-legal-page .support-form input,
html.es-legal-page .support-form textarea {
  min-height: 52px;
  border: 1px solid var(--cd-border);
  border-radius: 18px;
  background: var(--cd-surface);
  color: var(--cd-text);
  padding: 0.9rem 1rem;
  box-shadow: 0 1px 0 color-mix(in srgb, white 54%, transparent) inset;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

html.es-legal-page .support-form textarea {
  min-height: 180px;
  line-height: 1.6;
}

html.es-legal-page .support-form input::placeholder,
html.es-legal-page .support-form textarea::placeholder {
  color: color-mix(in srgb, var(--cd-text-muted) 58%, transparent);
  font-weight: 500;
}

html.es-legal-page .support-form input:focus,
html.es-legal-page .support-form textarea:focus {
  background: var(--cd-surface);
  border-color: var(--cd-accent-600) !important;
  box-shadow: 0 0 0 4px var(--cd-accent-border);
}

html.es-legal-page .contact-actions {
  margin-top: 0.25rem;
}

html.es-legal-page .support-status {
  min-height: 1.4rem;
}

html.es-legal-page .support-sidebar {
  display: grid;
  gap: 16px;
}

html.es-legal-page .support-side-card {
  display: grid;
  gap: 12px;
  padding: 20px;
}

html.es-legal-page .support-email-card .button {
  width: fit-content;
}

html.es-legal-page .support-emergency-card {
  margin-top: 22px;
}

html.es-legal-page .button {
  min-height: 48px;
  border-radius: 999px;
  padding: 0 18px;
  box-shadow: 0 14px 28px var(--cd-accent-glow);
}

html.es-legal-page .button:disabled {
  cursor: not-allowed;
  opacity: 0.66;
}

html.es-legal-page .button.secondary {
  border-color: var(--cd-border);
  background: var(--cd-surface-2);
  box-shadow: none;
}

html.es-legal-page .button.secondary:hover {
  border-color: var(--cd-accent-border);
  background: var(--cd-accent-soft);
}

html.es-legal-page[data-customer-effective-theme="night"] .support-form input,
html.es-legal-page[data-customer-effective-theme="night"] .support-form textarea {
  box-shadow: none;
}

@media (max-width: 860px) {
  html.es-legal-page .support-hero,
  html.es-legal-page .support-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  html.es-legal-page .wrap {
    width: min(100% - 24px, 1120px);
  }

  html.es-legal-page .nav {
    position: static;
    width: 100%;
  }

  html.es-legal-page .legal-hero {
    border-radius: 24px;
    padding: 22px;
  }

  html.es-legal-page .support-email-card .button,
  html.es-legal-page .contact-actions .button {
    width: 100%;
  }
}
